Questions tagged [st-link]
42 questions
4
votes
1 answer
why am I getting a communication failure when trying to connect with stlink-v2 using openocd
I'm trying to connect to an 'stm32' 'bluepill' using an stlink-v2 to write some code to it
Whenever I run openocd, it fails to connect
My openocd.cfg file looks like this
source [find interface/stlink-v2.cfg]
source [find target/stm32f3x.cfg]
when…

Martin
- 41
- 1
- 3
3
votes
2 answers
GDB Disconnects when trying to debug via openocd
I'm on windows 10 trying to debug my bluepill (STM32f103C8) board using a stlink, openocd, and vscode. I get this pop up: "OpenOCD GDB Server Quit Unexpectedly. See gdb-server output for more details."
And this message in the terminal:
Open…

Ed Pizzella
- 61
- 1
- 6
3
votes
6 answers
Stm32CubeProgrammer not connecting (no error msg) using ST-LINK V2 dongle and Lora E5 mini board
I've tried countless settings in an attempt to program my stm32 board. The main tutorial I followed is https://wiki.seeedstudio.com/LoRa_E5_mini/.
I have connected a USB st-link v2 dongle to my laptop with pins SWDIO, SWCLK, GND correctly wired to…

Cu29p
- 51
- 1
- 4
3
votes
1 answer
STM32 not starting after programming with ST-LINK
I did a program using ST-Link debugger on a custom board. The program is working fine. However, when I program the chip using ST-Link utility, the program is not starting without the ST-Link connected. When the ST-Link is connected, the system…

Adrien
- 79
- 1
- 6
2
votes
1 answer
st-flash - addr too high (STM32CubeProgrammer works)
I have some hardware that has an STM32 chip in it. I normally use an ST Link/V2 USB programmer and STM32CubeProgrammer to flash the firmware file. In this case, it'a 152KB file with the extension .out.
Flashing via STM32CubeProgrammer works fine.…

fistameeny
- 1,048
- 2
- 14
- 27
2
votes
0 answers
"No target connected" in ST-Link Debugger after accidentally removing USB connected to computer without safely ejecting
I am using the Nucleo STM32F446RE board and programming in C in the program Keil for a homework project. Before I start writing the code for any project I would always press the 'configure flash tools' option, go into the 'target' tab change my…

Zianne
- 29
- 5
2
votes
0 answers
How to use openocd to debug stm32h745-disco board?
I am using a dual core board stm32h745-disco, which contains cortex-m7 and cortex-m4.
When I used openocd to set up the gdb server for the board,
$ openocd -f tcl/board/stm32h745i-disco.cfg
Info : The selected transport took over low-level target…

Spencer
- 31
- 1
1
vote
0 answers
Cannot access STM32F103 device with stlink
I'm trying to access a STM32F103 device, via a ST-Link V2 programmer, using st-link but I am not able to do so. More specifically, when I connect the ST-Link V2 programmer in my usb port the device starts flashing (hopefully, that means the wiring…

Sidisyom
- 163
- 5
1
vote
2 answers
ST-LINK error (DEV_USB_COMM_ERR) after changed back from J-Link to St-link
I was trying to convert St-link to J-link, but after the change I want to check if return to St-link working fine. Unfortunately it doesn't work now.
When I am trying to connect with the STM32F769I-Disco I have a message ST-LINK error…

Kamil Hajdukiewicz
- 39
- 1
- 4
1
vote
1 answer
ST-Link V2 -- detected as USB mass storage device
I have a "STM32VLDISCOVERY" board (link) that I connected to my Windows PC.
This board has an integrated "ST-Link V2" programmer / debugger based on the "STM32F103C8" micro controller which actually communicates with the PC. But this micro…

71GA
- 1,132
- 6
- 36
- 69
1
vote
1 answer
Olimax STM32-E407 cannot connect over SWD
Good day
The problem:
I am trying to connect/flash/debug a Olimax STM32-E407 dev board over SWD and I am not able
When trying to connect, using CubeProgrammer, I get: "No STM32 Target Found"
What I have tried:
I have connected a ST-link V3 mini…

Misha
- 556
- 1
- 8
- 25
1
vote
1 answer
How to disable Read Protection Level 2 in stm32l152c series microcontroller?
The STM32 has a read-out protection level 2 feature adjusted from ST-LINK Utility App (Options Bytes) so code cannot be read out via the debug interface (SWD) or any other way.
There was an explanation,ST Electronics website. I tried the proposed…

blacksmithh
- 35
- 6
1
vote
1 answer
Cannot connect to target : STlink V3 not connecting to Nucleo Board using SWD
I am using STLink V3 set to program the F103RB Nucleo board using SWDIO interface. The board works fine when connected to PC using the on-board STlink debugger but when I use external STlink device to program it, it says "Can not connect to…

No Man
- 113
- 6
1
vote
2 answers
ST-LINK could not connect to the target
I'm trying to connect to stm32f401rbt6 with st-link utility.
The MCU has 6 pins connected, as on the image below.
The target is powered by a lab power supply, target GND is connected to the ST-Link GND
When I plug it to the computer, st-link utility…

larts
- 67
- 8
1
vote
1 answer
What is use of RX and TX in ST-LINK/V2
I am using ST-LINK/V2. In this module we have 20 pins:
Pin 4 RX
Pin 6 TX
What is the use of RX and TX Pins? Can I use those pins as serial communication(USART) pins? If it is not possible then what is the use of those pins?

Devilal guguloth
- 11
- 1
- 3