Questions tagged [st-link]

The ST-LINK is an in-circuit debugger and programmer for the STM8 and STM32 microcontroller families.

The SWIM and JTAG/SWD interface is used to communicate with the STM8 or STM32 microcontroller located on your own application board.

STM8 applications use the USB full speed interface to communicate with STMicroelectronics’ 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.

140 questions
22
votes
10 answers

STM Microcontroller burns every time

I have some experience working with stm32 but I only ever used them on dev boards. I recently tried to solder stm32 and stm8 on a simple break-out board and program them with my st-linkv2 clone. On first power up, the mcu makes some little noises…
NXP
  • 391
  • 2
  • 10
21
votes
5 answers

Can I use ST-Link programmer for non-ST chips?

Can I program all kinds of SWD-programmable chips (ARM-MCUs) with ST-Link?
Meylis Cherkezov
  • 211
  • 1
  • 2
  • 3
21
votes
8 answers

STM32 & ST-LINK - Cannot connect to MCU after successful programming

I have built my own board with STM32F7-45VGT6. I have successfully programmed it with ST-LINK v2 (not the original one though) and now I cannot even connect with MCU. I use ST-Link Utility from ST and SWD interface. It can be the case that I use SWD…
zupazt3
  • 1,567
  • 4
  • 17
  • 27
18
votes
2 answers

How to use external ST-Link to debug/program STM32F103 MCU?

I'm using STM32F103 MCU for my own project and want to use the ST-Link of STM32F411 Nucleo board for external debugging / programming purposes. I've set the CN2 jumpers OFF and my actual question is in the pinouts of SWO (CN2). How I proceed on this…
baqx0r
  • 311
  • 1
  • 4
  • 13
8
votes
3 answers

What is the use of NRST pin in STM32F401RCT6?

What is the use of the NRST pin in STM32F401RTC microcontroller. I am using the SWD interface to program and debug flash memory of the controller. I am finding NRST pins in both microcontroller as well as stlink debugger. I am confused, what is the…
Muthu
  • 557
  • 2
  • 6
  • 16
7
votes
0 answers

Is JTAG faster than SWD for debugging on an STM32F with STLINK-V3SET programmer?

There is a new STLINK-V3SET programmer that someone dropped off on my desk today. It supports USB 2.0. My thinking is that if SWD is the bandwidth limiter in the signal chain then a new programmer isn't very useful. Is SWD or JTAG faster with…
Voltage Spike
  • 75,799
  • 36
  • 80
  • 208
7
votes
4 answers

Do I really need to put stm32 microcontroller into bootloader mode to program it?

I have started learning stm32 microcontroller for a while using a very small development board "stm32f103c8t6" (or blue pill). when I started, I learnt from some tutorials that I have to switch a jumper in order to program it. (The photo is a…
iMohaned
  • 1,491
  • 5
  • 24
  • 44
6
votes
1 answer

STDC14 connector pinout for ST-Link V3 for SWD debugging

I have a quick question: In the ST-Link V3 datasheet the pinout of the STDC14 connector is mentioned as follows: I have a question regarding: Pin 3: Should I connect the 3.3V signal from the target power supply? As far as I know, this is not for…
Dakalaom
  • 511
  • 4
  • 14
6
votes
2 answers

Programming RP2040 with ST-LINK

Disclaimer: This is my first time using OpenOCD and programming ARM microcontroller, so I really don’t know what I am doing. I’m trying to program Raspberry Pi Pico (RP2040) board using ST-LINK/V2 (mini) from Waveshare and OpenOCD. This programmer…
urhen
  • 411
  • 4
  • 8
6
votes
1 answer

How to make SMT32 chip programmable while it stuck in Standby mode?

From my mislead I put HAL_PWR_EnterSTANDBYMode() in the code whithout any wakeup behaviour, which made my chip unable to debug via SWD interface. So I can not either erase, upload new code or do anything with this chip. I have an Aliexpress ST-Link…
Roman Matveev
  • 2,942
  • 7
  • 32
  • 75
4
votes
1 answer

Cannot connect to STM32 after programming without activating SWD pins

We were testing the STM32 on a custom board. We were able to program it through SWD pins and an external ST link. Unfortunately, we didn't activate the SWD pins in the .ioc file. Now we cannot connect to it and we are not able to erase the board…
4
votes
2 answers

STM32 SWO & OpenOCD with Variable SysClock

I have been using SWO with STM32 chips for debugging for a number of years. I have managed to side-step this issue until now. I would like to be able to use SWO for debugging while varying the SysClock frequency. This is an issue because OpenOCD…
Colorado.Rob
  • 148
  • 8
4
votes
1 answer

Error when using debugging under Atollic TrueStudio / STM32

I'm using STM32F103C8T6 Atollic TrueStudio STLink2.1 Error I get when debugging: Debug configuration set in TrueStudio: What worked before was in SW4STM32/Eclipse, with the following settings. I always had to change the reset mode from Connect…
Michel Keijzers
  • 13,867
  • 18
  • 69
  • 139
4
votes
1 answer

Programming a new STM32 chip

I am new to STM32 and recently trying to make a custom board with STM32F103RB. But I am a bit confused by the available methods to program the chip. Let's say I use ST-Link via SWD, does it mean that I do not need to burn bootloader to the chip on…
Penthrite
  • 53
  • 1
  • 5
4
votes
2 answers

Problems connecting ST-Link V2 and STM32F4 discovery board

I'm unable to connect to my STM32F4Discovery board using an ST-Link/v2. I've removed jumpers from CN3, connected the cables correctly but the utility tool won't detect anything... Using the ST-Link/v2 manual: PIN1 (VAPP) -> VDD PIN7 …
StjepanV
  • 255
  • 2
  • 4
  • 14
1
2 3
9 10