2013-06-06 08:10 AM
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-bootloader2013-06-17 03:21 AM
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.
2013-06-18 05:41 AM
Thank you for the answer.