2019-02-17 04:04 AM
Hello everybody
I was trying to store some data into flash and every time the erase page failed, the write completed if the memory was empty.
I then found out that the erase is working until I send something over the CAN ( receive seems to not trip it). The erase still fails even if I call CAN stop and/or deinit.
Is this a bug or am I doing something wrong?
I'm using STM32L432KB and TrueStudio
Any help would be greatly appreciated.
2019-02-17 04:25 AM
If you erase/write to the flash array while reading/executing it will stall until the operation completes. This will be an issue if real-time service deadlines are missed.
To avoid this all the code needs to be run out of RAM, or you need a dual bank flash arrangement.