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?
Keywords:
Device:
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
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?
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