cancel
Showing results for 
Search instead for 
Did you mean: 

STM32L082 - flash download failed

Jeroen deBuffel
Associate III

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

1 ACCEPTED SOLUTION

Accepted Solutions

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

View solution in original post

3 REPLIES 3
Jeroen deBuffel
Associate III

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.

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 Venmo
Up vote any posts that you find helpful, it shows what's working..

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