Mass erase with bootloader on STM32L162
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2013-06-06 8:10 AM
Posted on June 06, 2013 at 17:10
I have a problem doing mass erase of a STM32L162 when using the bootloader.
When i use the ''Flash Loader Demonstrator'', it give me the error ''FAIL: Unable to erase flash''. The bootloader version is 3.1. The pages erase work correctly. Anyone know where this problem coming from ? #stm32l162-mass-erase-bootloader
Labels:
- Labels:
-
Bootloader
This discussion is locked. Please start a new topic to ask your question.
2 REPLIES 2
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2013-06-17 3:21 AM
Posted on June 17, 2013 at 12:21
Hello Nicolas,
The mass erase isn't available for STM32L1xx devices and this is confirmed in the AN2606 in the section 7.4 (Important considerations):Mass erase command is not supported by STM32L15xxx medium-density devicebootloader firmware. To perform a mass erase operation, two options are available:
– Erase all sectors one by one using the Erase command
– Set protection level to Level 1. Then, set it to Level 0 (using the Read protect
command and then the Read Unprotect command). This operation results in a
mass erase of the internal Flash memory (refer to Programming Manual PM0062
for more details).
You can get this AN from this . ST.MCU
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2013-06-18 5:41 AM
Posted on June 18, 2013 at 14:41
Thank you for the answer.
