SWD programming with ST-Link Utility problem. Sheng 2017-01-06 19:17:37 UTC #1. Hi, I am having a bit of trouble programming my firmware into the P1 module. I am using sparkfun photon RedBoard for the test case. In the ST-Link Utility Program and Verify pop up, once you change the file path for the bin, the start address.
The ST-LINK/V2 is an in-circuit debugger and programmer for the STM8 and STM32 microcontroller families. The single wire interface module (SWIM) and JTAG/serial wire debugging (SWD) interfaces are used to communicate with any STM8 or STM32 microcontroller located on an application board. In addition to provide the same functionalities as the ST-LINK/V2, the ST-LINK/V2-ISOL features digital isolation between the PC and the target application board. It also withstands voltages of up to 1000 V rms. STM8 applications use the USB full-speed interface to communicate with the ST Visual Develop (STVD) or ST Visual Program (STVP) software.
STM32 applications use the USB full-speed interface to communicate with Atollic ®, IAR ™, Keil ®or TASKING integrated development environments. Sample & Buy Part Number General Description Specific features RoHS Compliance Grade Marketing Status Board production status Unit Price (US$). Material Declaration Quantity Third Party link More info Order from ST Order from Distributors ST-LINK/V2-ISOL ST-LINK/V2 in-circuit debugger/programmer for STM8 and STM32 With digital isolation Ecopack1 Active: Product is in volume production Stock available 79.0 - 1 - ST-LINK/V2 ST-LINK/V2 in-circuit debugger/programmer for STM8 and STM32 - Ecopack1 Active: Product is in volume production Stock available 21.0 - 1.
I'm unable to connect to my board using an. I've removed jumpers from CN3, connected the cables correctly but the utility tool won't detect anything. Using the: PIN1 (VAPP) - VDD PIN7 (TMSSWDIO) - PA13 PIN9 (TCKSWCLK) - PA14 PIN20 (GND) - GND Here is the physical connection: And software settings: This is the error message that I get when trying to connect: Here is the log message that I get in trace: ST-Link/V2 device detected Target voltage detected: 0.601975 Driving NRST low Error getting target IDCODE: if SWD, check SWD connection Error (4) while initializing ST-Link in SWD mode Please help, it's driving me mad. Presumably you use the GPIOA port in your source code.
If so, first download program to discovery; your code conflicts with swd pins. When you power your board, your source code changes the pa13 and pa14 pins roles. You must connect swd to your board immediately after reset (and do so after power) before loading your code to the CPU. What should you do? You should erase the flash memory.
First open the STM32 ST-LINK Utility. push and hold discover black button (nrst button),. click target - setting,. select 'connect under reset” option; at the same time click refresh and release discovery board black button,. repeat until STM32 ST-LINK Utility connect your board,.
erase flash memory,. enjoy!