STM32CubeProgrammer: Error: Flash loader cannot be loaded
Recently, I bought a clone of ST-Link V2.
I am trying to program a RAK5205 board with an STM32L151CB MCU on it, with a basic program for blinking LEDs.
If I use the STM32 ST-Link Utility v 4.5.0.0, open the file RAK5205_Blink.hex and program the MCU, it ends correctly and the program runs without problems on the board. If I want to completely erase the Flash memory, it does it correctly with this indication:
Device ID: 0x429
Device flash Size: 128KBytes
Device family: STM32L100x8xxA / L15xx8xxA
Flash memory erased.
Now, if I open the STM32CubeProgrammer v2.1.0, open the same file RAK5205_Blink.hex, the ST-Link v2 is recognized and connected correctly, read the memory of the MCU without problems, but when I want to program it in the same way than before, it shows the error, "Flash loader can not be loaded".
What is the difference between the ST-Link Utility and the STM32CubeProgrammer regarding device detection and programming?
What exactly does the error"Flash loader can not be loaded" means?
One difference I noted is that the STM32CubeProgramer, detected the Device as STM32L100x6xxA / STM32L100x8x ... with a Flash Size of 27520 KB instead of 128KB that has the MCU, different from what it is detected with ST-Link Utility.
Sorry if it is an stupid question, I'm a newby trying to lern. I'll appreciate any opinion or suggestion.
My OS is Windows 7 Ultimate.
Thank you
