Skip to main content
MA2
Visitor II
Feb 17, 2019 12:04 PM UTC
Question

flash and CAN conflict?

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
    Feb 17, 2019 12:25 PM UTC

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