flash and CAN conflict?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2019-02-17 4: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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2019-02-17 4: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.
Up vote any posts that you find helpful, it shows what's working..
