cancel
Showing results for 
Search instead for 
Did you mean: 

Howto flash my board with a STM32L151CBU6 using STM32CubeProgrammer and a STLINK/V2 (B 2016 25) dongle?

RMend.1
Associate

I installed STM32CubeProgrammer and connected my STLINK/V2 (B 2016 25) to my target board which uses an STM32L151CBU6 and tried to flash my code. I get the following result:

09:45:21:779 : Size : 9152 Bytes

09:45:21:779 : Address : 0x08000000 

09:45:21:780 : Erasing Segment <0> Address <0x08000000> Size <9152>Bytes

09:45:21:780 : Erasing memory corresponding to segment 0:

09:45:21:850 : Memory erase...

09:45:21:850 : Error: Flash loader cannot be loaded

09:45:21:888 : Error: failed to erase memory

11:20:24:677 : Warning: Connection to device 0x429 is lost

11:20:25:154 : Disconnected from device.

11:20:25:156 : STLinkUSBDriver.dll loaded

I can flash the board with the STM32 ST-LINK Utility without problems.

What could be wrong?

1 REPLY 1

Hi @Community member​ 

This will be internally checked, I'll give you an update as soon as possible.

Best Regards,

Nesrine