Skip to main content
MA2
Visitor II
February 17, 2019
Question

flash and CAN conflict?

  • February 17, 2019
  • 1 reply
  • 726 views

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.

    This topic has been closed for replies.

    1 reply

    Tesla DeLorean
    Guru
    February 17, 2019

    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 (See Profile) Up vote any posts that you find helpful, it shows what's working..