BF512 is connected to SRAM 1M by EBIU. For SPI slave mode boot (BMODE = 100), the BF512 is consuming boot data from an external SPI host device (STM32). SPI0 is configured as an SPI slave device.
After power on, BF512 boot (BMODE = 100) from STM32. When boot finished, the boot mode is changed to From external SRAM (BMODE=001).The rest of the time, BF512 enter in hibernation and restart from external SRAM per second.
I have succeed in entering the hibernate mode (with the bFrom_SysControl function) and exiting it (with the RTC), but the program is not relaunched.
1 How to write the initialization code.
2 How to restart BF512 from hibernate and relaunched successful.
Thanks and regards!
Please have a look at the below discussion, which would be helpful
BF518: Restart after hibernation
Thanks to Jithul_Janardhanan !
From the application point of view, SDRAM boot is a completely different scheme. Since SDRAM is volatile memory, BMODE = 110 is not a valid setting when the processor and the memories have just been powered up. This mode can only be used as a dynamically applied BMODE setting to install warm boot scenarios.When supported by the system in warm boot scenarios, the boot source can also be SRAM or SDRAM.
First power on, the BF512 boot (BMODE = 100) from STM32 has finished. Then the BF512 enter HIBERNATION and change BMODE from 100 to 001. The rest of the time, BF512 exit from hibernation and warm boot from external SRAM per second.
How to warm boot BF512 from external SRAM?