Skip to main content
Jeroen deBuffel
Associate III
November 22, 2019
Solved

STM32L082 - flash download failed

  • November 22, 2019
  • 1 reply
  • 2510 views

Hi,

We use the STM32L082 which is used in the Murata LoRa ABZ type 078. Somehow the flasing does not work and I am trying to find a way to deal with it.

Programming Failed!
Error: Flash Download failed - "Cortex-M0+"
Flash Load finished at 11:30:08

I am using the Keil environment and flashing the ST LoRa software.

Thanks,

De Buffel

This topic has been closed for replies.
Best answer by Jeroen deBuffel

I just figured out a way how to solve it. I changed the Option Bytes and was able to set Read Out Protection (ROP) to level 0.

After that I was able to use the STM32L0 again

Thanks for your help

1 reply

Jeroen deBuffel
Associate III
November 22, 2019

When connecting with the ST Link utility I get the following message.

12:14:21 : Connected via SWD.

12:14:21 : SWD Frequency = 4,0 MHz.

12:14:21 : Connection mode : Connect Under Reset.

12:14:21 : Debug in Low Power mode enabled.

12:14:21 : Device ID:0x447 

12:14:21 : Device flash Size : 192KBytes

12:14:21 : Device family :STM32L07x/L08x/L010

12:14:21 : Can not read memory!

         Disable Read Out Protection and retry.

Tesla DeLorean
Guru
November 22, 2019

If it really does have read out protection enabled you'll need to mass erase the device before it will be usable again.

Usually these things can be communications errors if you know for example ROP is not enabled.

You can try connecting at lower speeds, or connect-under-reset, if you have the NRST connected to the debug pod.

Strapping BOOT0 high will also stop your FLASH based code running, if that is breaking the debug interface or sleeping the hardware.

Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..
Jeroen deBuffel
Jeroen deBuffelAuthorBest answer
Associate III
November 22, 2019

I just figured out a way how to solve it. I changed the Option Bytes and was able to set Read Out Protection (ROP) to level 0.

After that I was able to use the STM32L0 again

Thanks for your help