erase the entire flash memory inside the main() function ???
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2019-04-08 6:07 PM
in my h/w, i cannot control boot0 pin to high level for dfuse demo program.
however, i find that
When the entire flash memory is erased, st32L4 chip automatically goes to enter usb dfu mode.
hence,
i want to know how to erase the entire flash memory inside the main() function.
please let me know it is possible or not
thanks a lot
Labels:
- Labels:
-
Flash
-
STM32L4 series
This discussion is locked. Please start a new topic to ask your question.
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2019-04-08 8:22 PM
Review library code and reference manual
I would probably add code in Reset Handler, that copied itself to RAM and jump to it. The code would drive the flash peripheral registers to mass erase, then perform a software reset.
Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
Up vote any posts that you find helpful, it shows what's working..
