2024-06-13 02:54 AM
I have developed a program that performs IAP (In-Application Programming). I am using single bank mode.
The manual states:
"An on-going Flash memory operation does not block the CPU as long as the CPU does not access the same Flash memory bank."
However, I didn't notice any problem.
My program runs in the address range 0x8000000-0x8010000 and the IAP programs the higher addresses.
If the CPU is blocked what happen? If my program can wait I have to care just about watchdog?
Thank you
Best Regards
Marco
2024-06-16 06:22 AM
Dear @marcopiovesan9 ,
Yes, the CPU will be stalled the time the flash programming/erase operations will complete and should work properly if during the same time ( IAP) no critical Interrupts / ISR should be served in same time , you can move them to SRAM and should run perfectly .
Ciao,
STOne-32
2024-06-16 09:37 AM
With watch-dogs, it's the erase that usually catches you. Check the typical-maximum time for the sector/page erase