4 posts / 0 new
Last post
MichaO
Offline
Last seen:3 months 3 weeks ago
加入:2015-08-11 14:30
WDOG reset issue

Hi.
I have some issue with WDOG reset in our system. Our FW includes secondary boot-loader. Binary image is stored on a flash an has to be uploaded via SPI. I would like to release/disable SPI during application running for the sake of battery saving. Unfortunately, if SPI is disabled then ROM is not able to upload secondary boot-loader application to the RAM after WDOG reset . I believe there is а way to get ROM enable SPI before application upload but I can't find it. Can you help me, please?

Device:
MT_dialog
Offline
Last seen:1 week 13 hours ago
工作人员
加入:2015-06-08 11:34
Hi MichaO,

Hi MichaO,

There is no way to interfiere with the ROM code and power on the SPI flash, that is one of the reasons that there is a secondary bootloader, you have to burn the secondary bootloader into the OTP in order to turn on the FLASH when the booting procedure starts and boot directly from your SPI where your application resides. If you are powering down the flash memory you need to have the sec bootloader in OTP. Perhaps you can try to turn on your SPI from the NMI_Handler but it is something that is not recommended.

Thansk MT_dialog

MichaO
Offline
Last seen:3 months 3 weeks ago
加入:2015-08-11 14:30
Hi,

Hi,
Off course, I tried to turn SPI on from the NMI_Handler, but it just doesn't work.
So, the only way to deal with a issue is to burn the secondary burning to OTP, right?

MT_dialog
Offline
Last seen:1 week 13 hours ago
工作人员
加入:2015-06-08 11:34
Hi MichaO,

Hi MichaO,

Yes, that is what dialog suggests, there is no way to alter the primary bootloader and turn on the flash.

Thanks MT_dialog