Questions tagged [st-link]

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

Filter by
Sorted by
Tagged with
0 votes
2 answers
55 views

STM32 BOOTLOAD and FLASH

I am designing a PCB with stm32f4 controller in it. I was designed arduino boards in my past. I am researching for STM32 flashing a code or bootload in datasheets. If I am not wrong with a only 4 pin (...
MSB's user avatar
  • 33
1 vote
0 answers
22 views

ERF32 programming with SWD

I need some help with programming board with EFR32FG22 (Datasheet). I've always used arduinos or esp32/8266, so I'm new to this type of MCU's. I know that I should use SWD pins (SWDIO and SWCLK) which ...
jasiekk's user avatar
  • 11
0 votes
1 answer
50 views

ST-Link V2 forgets its firmware upgrade

My ST-Link V2 is the low cost memory stick kind from China. It works, but every time I re-power it, it needs to upgrade the firmware and that works too. Is this normal; should it not remember the ...
Peter Laidlaw's user avatar
0 votes
1 answer
101 views

STM32H755ZIT6 STLINK Debug

I've just got new NUCLEO STM32H755ZIT6 board with STLinkV3 on it. I just want to debug simple empty STMCube project and after configuring board According it's Please look in the UM2408 User manual (...
Alatriste's user avatar
  • 150
0 votes
0 answers
80 views

Can I use an ST-LINK of a Nucleo-mini board to program a black pill?

I have a Nucleo-l432kc board that I actually fried by accident touching one of the pins with my power supply probes while they shared the same ground during a risky test of mine. Anyway the problem ...
Mahmoud Salah's user avatar
0 votes
0 answers
158 views

Custom STM32 board can be programmed via USB DFU, but no connection via ST-Link

I have spent a fair bit of time trying to understand why the stlink does not to see the STM chip when conected over serial wire (port is shown under 'Com ports' in the schematic). I have tried the st-...
George kirby's user avatar
1 vote
1 answer
358 views

How can I find which serial port is connected to Nucleo board via ST-LINK?

I have a Nucleo board connected via USB to ST-Link running on Ubuntu Linux. ST-Link works well in that it can program the board. I would like to use the built in virtual serial port, but am not sure ...
SRobertJames's user avatar
0 votes
0 answers
83 views

Why is this ST-link V2 not pairing with the STM8s MCU?

I had connected this circuit like in this schematic using the ST-LINK V2, however I made some changes, I connected the 2 and 3 pins (OSCIN, OSCOUT) to 12pf capacitors (I have no 20pf or higher) and ...
Hazardous Voltage's user avatar
0 votes
2 answers
880 views

ST-LINK v2 to STM32F401CC connection issue [closed]

I was working in small projects on eclipse IDE with the OCD of the MCU and it was working perfectly, till I made configurations on some pins PIN8 to ...
RiadNageh's user avatar
0 votes
1 answer
520 views

ST-Link clones not working, options? [closed]

Clone ST-Links have flooded the market everywhere. I have 4 of these laying around and 2 are dead. A very common problem is not being able to connect to the target mcu through swd using whatever ...
Rajat Mondal's user avatar
0 votes
0 answers
349 views

ST-LINK v2 can't connect

I am having trouble with my ST-LINK V2 clone (USB stick look alike.) Error is : Can not connect to target! If you're trying to connect to an STM32W1xx device, please select Normal or HotPlug mode ...
macak's user avatar
  • 1
1 vote
0 answers
248 views

STLINK-V3 Mini with STM 32 Chip, Failing to enter SWD mode and timing out

I currently have a STLINK-V3 Mini connected to a board with an STM32 Chip. When running st-flash for the first time I receive the following errors 2023-04-17T19:58:38 WARN common.c: NRST is not ...
godsessence's user avatar
1 vote
0 answers
201 views

Nucleo F303RE STLink connection problems in STM32CubeIDE

I have tried to flash/debug Nucleo F303RE using STMCubeIDE and I have encountered several problems. First when trying to start debugging I receive following message: "Starting server with the ...
Filip's user avatar
  • 121
2 votes
1 answer
87 views

Added value of debugging probes (ST-LINK, JLink, ...)

I've been working in embedded programming for a few years now, and there is something I still don't quite understand about debugging protocols and probes. So as I understand it, to program and debug ...
sydpy's user avatar
  • 21
0 votes
1 answer
221 views

Programming a Nucleo 32 board using ST-LINK

I'm using this Nucleo board but unfortunately after I programmed it I have attached it to a base PCB in such a way that I can't access its USB port anymore. If I want to make an update and access its ...
GNZ's user avatar
  • 1,719
0 votes
0 answers
53 views

I have a basic LED circuit with an STM32F030R8T6 which is not working and I cannot figure out why

Apologies as this is a somewhat vague question but I cannot figure out what is wrong with my circuit/program and I have been stuck on this for a couple of weeks now. I have this circuit I put together ...
Brinsby's user avatar
1 vote
1 answer
878 views

Understanding the STM32's power connection to the STLINK-V2

If my STM32 is externally powered with 2.5V at its VDD and I'm connecting it to the STLINK-V2 that is powered by USB, should the VAPP pin on the STLINK-V2 be connected to the STM32's VDD? I thought ...
donut's user avatar
  • 165
0 votes
1 answer
705 views

ST-Link V2 not connecting to STM32F411

I got myself an STM32F411RCT6 and my ST-Link V2 is not detecting it using SWD, but I am able to program other STM32s using an even simpler setup, so I think there is something specific about this MCU ...
Stuyvenstein's user avatar
0 votes
1 answer
241 views

My STM32F407VET6 is no connecting to STM32CubeIDE. what could be the problem?

I would like to say that i was taking Udemy Course related to Embedded C - Absolute Beginners. So everything was firsthand base on tutorial's installation. It was explain how to install IDE but ...
Dreac Leoson's user avatar
0 votes
2 answers
195 views

STLinkV3 debugging on custom hardware

When running a program on my STM32L432 Nucleo board it runs just fine. I recently created a custom PCB that embeds the same MCU and I use an external STLinkV3 to program it. I am able to connect to ...
Jeremy Wolfe's user avatar
0 votes
1 answer
398 views

How to program STM32G071RB with UART?

I'm designing a custom board that contains an STM32G071RBT6. For the burning in the development process, there is an SWD interface connected and the burning will be done through it. For mass ...
Knowledge's user avatar
  • 401
0 votes
2 answers
398 views

STM32F030F4Px MCU NRST pin: missing capacitor

I created a board with a STM32F030F4Px and am trying to connect to my micro over SWD using STM32CubeProgrammer. Each time I try to connect, I keep getting a message saying "Error ST-LINK error (...
Jack Frye's user avatar
  • 145
0 votes
1 answer
253 views

Do we have to set the ST-link v2 before using?

I was using the ST-Link V2 which shown below on the left side. When I connect it to the MCU's I/O, I could install the software and I could confirm that the software installed correctly from the ...
wolyure's user avatar
  • 149
0 votes
1 answer
739 views

Salvaged STM32 programming with ST-Link V2 clone

I bought a ST-Link V2 clone to try and program a STM32 MCU that I salvaged from a hoverboard PCB (STM32F031C6T6). I've been having some difficulty getting it to work. I downloaded STM32CubeIDE and set ...
Stuyvenstein's user avatar
-1 votes
2 answers
229 views

STM32F4 Discovery board

I use STMCubeIDE for the STM32 Discovery board. I start STMCubeIDE and run code then it shows a popup window that there is no ST-Link detected, but I did connect my USB from MCU to the laptop. I ...
dervis's user avatar
  • 11
0 votes
0 answers
113 views

Multiple failed ST-LINK/V2

I have been using a ST-LINK/V2 for a project that uses a STM8 microcontroller. The ST-LINK is connected to the microcontroller using the 4 pin SWIM port. The microcontroller is powered from an ...
user2248702's user avatar
3 votes
2 answers
239 views

Can the STM32F1 used for ST-LINK on the ST discovery boards be used as a normal chip?

I have a STM32F0 Discovery board. I am hoping to desolder and use the STM32F103C8T6 chip (seen at the top, used for st-link on-chip debugger) for a separate project. Would this chip be usable as if ...
Mitch Ostler's user avatar
0 votes
0 answers
618 views

Recovering a "dead" STM32F429VGT6

Recently I lost power on my printer with an BTT SKR 2 board (https://github.com/bigtreetech/SKR-2). I connected my ST-Link v3 to the SWD pins and confirmed I can identify the IC. I am connecting to ...
Jeff's user avatar
  • 201
0 votes
0 answers
144 views

Adafruit ST-Link STM8/STM32 v2 can't connect to STM32F091

I've an Adafruit ST-Link STM8/STM32 v2 which I need to connect to an STM32F091. The MCU is powered from an external source and I have correctly connected the SWCLK and SWDIO as well as GND and 3.3V. ...
NicoCaldo's user avatar
  • 305
1 vote
0 answers
110 views

STM32F407 powering via tlink but not USB and ST-LINK not working

Some background first. I have a custom STM32 board using a F407 MCU. The board takes 12 V and regulates to 5V then to 3.3V to feed the processor. That feed is directly connected to a SWD header using ...
dj_nexxus's user avatar
2 votes
3 answers
1k views

How do I program the STM32F401CCU6?

I am transitioning from Arduino to STM32 development. I just purchased an STM32F401CCU6 board and I cannot get it recognized by my computer. I am running Ubuntu 22.04. I have tried searching ...
Harit's user avatar
  • 73
1 vote
1 answer
150 views

Using a Bluetooth module without MCU

I am making an EEG using an ADS1299. To read the data I want to use a Bluetooth module and send data to a PC (I think this one should be OK) and power both with 2 coin cell batteries. Can I do this ...
elder00's user avatar
  • 11
0 votes
1 answer
2k views

ST-Link doesn't show any data on the serial port

I am working on Nucleo board programming circuits. This board programs like an Arduino, you can compile, run and show data on the serial port. Actually, you can do debugging, too. You just need a USB ...
TA2ERR's user avatar
  • 89
1 vote
0 answers
321 views

STM32G030J6M6 Debug issue

I just bought two STM32G030J6M6 and solder it on my custom board . here is schematic in STM32CubeIde I'm just setting SWDIO/SWCLK pins.. nothing else, Also I ...
Alatriste's user avatar
  • 150
2 votes
1 answer
103 views

Programming STM32F303K8T6 chip removed from Nucleo32

ISSUE: Attempting to read/program MCU mem has not been possible and I would like feedback on my setup. NOTE: Blink program flashed before removing still works. Actual Error on STM32 ST LINK Utility: ...
Mauricio's user avatar
1 vote
1 answer
315 views

Can a ST-LINK/V2 be driven from UART?

I'm developing an automatic test system that needs to send a program to a STM32 chip. In the past, I've done this using the internal bootloader using one of the UARTs. However, in this case I only ...
Marcos's user avatar
  • 73
0 votes
0 answers
968 views

Error in Upgrading ST-link V3 to J-Link

I am getting the following error from the STLinkReglasher program while converting the standalone ST-Link V3 debugger into J-Link. ERROR: Cannot find an ST-LINK, multiple ST-LINKs plugged in, or ST-...
No Man's user avatar
  • 347
2 votes
0 answers
120 views

nrf52-based localization tag flash dump and modification

Lately I've bought a localisation tag (apple airtag alike) When I click a button on my cell phone, the device plays a chiptune-like ringtone. The ringtone is configurable using the app and stored on ...
tomaszu's user avatar
  • 21
1 vote
1 answer
356 views

STM32 custom board debug

I am developing my own board for a basic UART communication to start with and I am unable to flash the microcontroller. I am using STM32F405RT6 and the STLink V3 debugger to program it I have tried to ...
dreamcoder's user avatar
0 votes
1 answer
557 views

UART printing gibberish to the terminal when the STLink Debugger is not connected

Custom board, not an ST development board. MCU: STM32G031J6M6 SO8 package. UART RX/TX are Pins 1 and 8 respectively. Pin 8 is also SWDCLK Pin 7 is SWDIO and not used except for SWD NRST is Pin 4 and ...
Usernamed's user avatar
  • 141
8 votes
1 answer
5k views

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 ...
Dakalaom's user avatar
  • 541
1 vote
1 answer
296 views

STM32F407VG Discovery Board, on board ST Link not recognized, but the pc recognized J Link is connected [closed]

So I have a STM32F407VG Discovery Board, the board has ST Link. But when I connect the usb to my pc, the ide that I used does not recognized it. I used atollic and stm32cube ide. But when I check my ...
LazyEmperor's user avatar
2 votes
0 answers
284 views

What is the correct speed for serial communication?

I am working with an STM32, more specifically a Nucleo-L476RG development board. I used the I2C ports to build a small virtual com port to broadcast some messages back to my computer. The code on the ...
Michael's user avatar
  • 187
1 vote
0 answers
795 views

Nucleo-STM32F401RE + ST-Link problem - cannot connect to the target

I have a problem with the connection. Yesterday my board stopped working (there is a file FAIL.txt: "The interface firmware FAILED to reset/halt the target MC" at board disk). I've done some ...
asiemasz's user avatar
6 votes
2 answers
7k views

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 (...
urhen's user avatar
  • 411
2 votes
1 answer
4k views

STM32 ST-Link Unitily does not have the latest firmware

I am trying to update my ST-Link V2 to the latest firmware, since STM32CubeIDE wont upload code if I don't. STM32CubeIDE wants V2J38S7: But it always fails to update: "Upgrade successful" ...
Christianidis Vasilis's user avatar
3 votes
1 answer
4k views

STM32F3DISCOVERY board using STM32CubeIDE download fails "No ST-LINK detected!" but CubeProgrammer works

Using the STM32CubeIDE with an STM32F3DISCOVERY board I was able to use the Run menu option to download and start running a program. After a Windows Update which involved updating USB drivers, the Run ...
Richard Chambers's user avatar
1 vote
1 answer
4k views

How to fix STM32 Stuck with error ST-LINK error (DEV_TARGET_NOT_HALTED)

I have a custom board with a STM32H7A3ZIT mcu. I'm programming it with a ST-Link V2 via SWD. I'm trying to get an external hyperbus ram working, and immediately after programming the mcu with some ...
Drew's user avatar
  • 6,778
3 votes
0 answers
3k views

ST-Link V2 - Firmware Update Error

I purchased a few ST-LINK V2 debuggers / programmers and they were all clones as expected but I was only able to update a single one past V2.J17.S4. For the rest, I just get the error attached. ...
Lister Remmir's user avatar
4 votes
1 answer
1k views

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 ...
Shravya Boggarapu's user avatar