cortex M4 writes to flash
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2019-03-22 9:58 AM
With Cortex M0+ (BLE) running, how Cortex M4 writes data on flash ?
The reference manual says during flash writes all acess are denied.
Solved! Go to Solution.
- Labels:
-
STM32WB series
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2019-03-22 10:21 AM
​Hello,
When a flash write procedure is started, the flash is busy and no CPU ( either CM4 or CM0+) can fetch code or read data from the flash.
You may write data in flash on the CM4 side at any time. As the CM0+ may write data in flash as well, you shall first get Semaphore2 before writing in the flash and release it once you do not need anymore to write in the flash so that the CM0+ may write when needed its own data.
You may check as an example the BLE_Ota application where the flash is written by the CM4 in the file otas_app.c
Regards.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2019-03-22 10:21 AM
​Hello,
When a flash write procedure is started, the flash is busy and no CPU ( either CM4 or CM0+) can fetch code or read data from the flash.
You may write data in flash on the CM4 side at any time. As the CM0+ may write data in flash as well, you shall first get Semaphore2 before writing in the flash and release it once you do not need anymore to write in the flash so that the CM0+ may write when needed its own data.
You may check as an example the BLE_Ota application where the flash is written by the CM4 in the file otas_app.c
Regards.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2019-03-22 10:42 AM
Understood. Any write only stalls the entire flash.
Waiting publication of the semaphore allocation from the BLE side
Thank you Christophe
