Hi,
We have the following problem:
1.DA14580 boots up and starts executing the code , on power ON
2.Power to DA14580 is controlled through a MOSFET switch, which , on power ON, will be in conducting state
3.After BLE advertising is done, a Port bit is used to switch off the MOSFET switch , to remove power to DA14580
4.NXP RTC IC , which is preprogrammed to generate an interrupt after 1 minute, makes the MOSFET switch ON after 1 minute elapse time
5.We observe that MOSFET switch is working fine and after an elapse time period of 1 minute, DA14580 is getting power
6.But the code in DA14580 is not getting executed. We are not getting control back at arch_main() function
The following have been tried:
a. Include a function inside arch_main() which toggles a port bit
b. On power ON , we observe that this port bit toggles, as expected
c. On RTC switching ON MOSFET, this port bit does not toggle as expected, even though DA14580 came up from 0V to 1.5V
We suspect that DA14580 is not getting properly RESET in the second instance, where as on first POWER ON, it is getting RESET properly and executing the code
Please suggest a remedy
Wed, 2015-02-18 04:47
#1
Problem of DA14580 not restarting

Hi Karun,
I have a few questions first you programmed your code in to OTP of the DA14580? when you say that the MOSFET switch off the power to the DA14580 whivh level do you monitor of the supply just before the power is switch back on after a minute?
Regards
TN_Dialog
Hi,
有上电复位Da14580吗?还是我们娘家姓的d to do that circuit by ourselves? Thanks.
Hi Liang Yun Hao,
Yes there is a power on reset on the 580, it generates a signal that releases the system's flip flops as soon as the VDD voltage crosses the minimum threshold value.
Thanks MT_dialog
hi,
I implement a software I2C with two GPIO (P0_2 and P0_7). I would like to generate an I2C communication with peripheral RTC when it power on. When I press a button that let RST pin to high to reset the system, it would restart a new communication action. But when I switch the power off to on, it do nothing. Does it have power on reset or we have something wrong? Thanks.
Hi Liang Yun Hao,
The power on reset signal is generated when you power the 580, regarding your issue, i dont quite get what what you are trying to do, what i understand is that you have written a fw that will start an I2C transaction right after starting up and apparently you are able to see it operating when you hit the reset but not when you power the board. Anyway in both cases a reset or a power on reset should force the bootloader to start executing, if the fw is located in the OTP it will be downloaded from there otherwise it will start scanning the peripherals in order to download a fw, so check if the bootloader is executing (i suppose that you are testing the 580 and you didn't burn the OTP), and if your code is downloaded into the 580 without any issue (try to toggle a led or set a gpio and track it). After confirming that, check that the I2C operations are executing (with a logic analyser check if the 580 is sending data on the bus and if the RTC is responding).
Thanks MT_dialog
hi,
what is the value of the VDD voltage crosses the minimum threshold ? Thanks.
Hi Liang Yun Hao,
For a POR the Vbat3V voltage must be equal or lower than approximately 0.6V (there's some spread).
Thanks MT_dialog