cancel
Showing results for 
Search instead for 
Did you mean: 

flash and CAN conflict?

MA2
Associate

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.

1 REPLY 1

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.​

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..