2019-11-22 02:40 AM
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
Solved! Go to Solution.
2019-11-22 04:12 AM
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
2019-11-22 03:17 AM
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.
2019-11-22 04:02 AM
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.
2019-11-22 04:12 AM
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