AnsweredAssumed Answered

Programming a Nucleo board using SWD connector and STM32 ST-LINK Utility

Question asked by Stefano Minconetti on May 2, 2017
Latest reply on May 3, 2017 by Clive One

Hi everyone,

 

I'm facing some troubles trying to program the STM32L073 micro on a NUCLEO-L073RZ Nucleo board using
the STM32 ST-LINK Utility and the ST-LIN/V2 ISOL debugger/programmer attached to the SWD connector
(named CN2 on the Nucleo board).

I powered the Nucleo board via USB using an AC/USB converter (the JP5 jumper is set on the U5V position
- the one to select when the power is applied via the USB cable).

Also I left connected both the jumpers on CN4 connector to allow the SWD signals to be applied to the STM32 core
(on the Nucleo board user manual expressly STM people say to disconnect them, but I'm afraid that doing so I only
will program the STM32F103 that make STLINK-V2-1 features possible).

Another thing I made it was to connect the 3,3V of the Nucleo board to the pin 1 of SWD connector to allow the
ST-LIN/V2 ISOL to detect the Vdd of the targed board: without this action the STM32 ST-LINK Utility will no able
to detect and to connect to the STM32 core of the Nucleo board.

With these changes I was also able to erase and then program a binary image that simply blinking the green user led
(LD2): the flash memory checksum and the binary file checksum matched and also the target memory compare 
operation against the binary file contents was successful.

The problem is that after disconnecting the ST-LIN/V2 ISOL programmer and resetting the Nucleo board the green
user led does not blink..

Then if I program again the same binary file using the SW4STM32 IDE (by right clicking on the project and then
selecting the voice "Target->Program chip..") I can program and run successfully the project.

 

I do not understand what operation I made wrong or if I missed some passage.

Someone has experienced the same kind of problems?

 

Thanks in advance for any helps.

Stefano M.

Outcomes