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
1 vote
2 answers
94 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 ...
user avatar
0 votes
1 answer
44 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 ...
user avatar
0 votes
0 answers
49 views

Flashing an independently powered MCU-based device with ST-Link dongle

So far I've been toying with a Blue Pill (STM32F103C8T6) dangling in the air on four wires from an ST-Link dongle. No problem experienced or expected. Now I consider a breadboard with its own power ...
user avatar
0 votes
1 answer
314 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 ...
user avatar
  • 89
1 vote
0 answers
82 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 ...
user avatar
  • 121
2 votes
1 answer
60 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: ...
user avatar
1 vote
1 answer
97 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 ...
user avatar
  • 29
0 votes
0 answers
242 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-...
user avatar
  • 327
2 votes
0 answers
49 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 ...
user avatar
  • 21
0 votes
0 answers
94 views

ST-LINK/V2 in-circuit debugger/programmer for STM8 and STM32 issue with IAR Embedded workbench

I've been working with ST link v2 programmer/debugger for a while with IAR embedded workbench. Recently, each time I start a debug session or I appoint a break point and I arrive at the breakpoint, ...
user avatar
1 vote
1 answer
116 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 ...
user avatar
0 votes
1 answer
187 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 ...
user avatar
  • 131
3 votes
0 answers
435 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 ...
user avatar
  • 375
1 vote
1 answer
92 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 ...
user avatar
2 votes
0 answers
79 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 ...
user avatar
  • 185
1 vote
0 answers
283 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 ...
user avatar
4 votes
2 answers
2k 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 (...
user avatar
  • 361
1 vote
1 answer
1k 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" ...
user avatar
3 votes
1 answer
1k 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 ...
user avatar
1 vote
1 answer
955 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 ...
user avatar
  • 4,923
3 votes
0 answers
2k 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. ...
user avatar
3 votes
1 answer
352 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 ...
user avatar
0 votes
0 answers
203 views

flash at32f403 with st-link using openocd

I'm trying to flash my hoverboard which has the at32f403 chip and the procedure to do that according to the github is describe in the link below: https://github.com/cloidnerux/hoverboard-firmware-hack ...
user avatar
1 vote
2 answers
614 views

Why is there a difference between ARM 10 pin (JTAG) debug pinout and the STLINK V-2 debugger pinout?

I've just completed a custom board that uses an STM32 F4 chip and to program it I have implemented the JTAG 10-pin connecter as seen here: Now, this works fine and I can program the chip with it ...
user avatar
  • 581
2 votes
1 answer
342 views

Can't connect to STM32 chip

I have soldered a STM32F103VF chip (LQFP100) on a breakout board, which I want to connect to via my ST-Link (clone). However, ST-Util (and STM32CubeProgrammer) cannot connect to the chip. MCU ...
user avatar
0 votes
1 answer
367 views

Reprogram AT32F403 Hoverboard with ST-Link

I'm trying to reprogram my Hoverboard in order to build some projects. It has a board which uses an AT32F403 chip. I'm using the info of https://github.com/cloidnerux/hoverboard-firmware-hack and a ...
user avatar
0 votes
0 answers
87 views

Is this port a Cortex Debug?

The following is a board with an STM32F103 MCU. Is it possible to tell if the marked port on the top left (JK1) is a Cortex Debug port that may be connectable with an ST-Link V2 or similar ? According ...
user avatar
  • 101
0 votes
1 answer
73 views

openocd using linux [-Werror=implicit-fallthrough=] error - hoverboard - AT32f403 chip

I'm trying to reprogram my hoverboard which has the AT32f403 and using st link with openocd and ubuntu. I started to do the steps presented in the video: https://www.youtube.com/watch?v=l0KIMjl1BoU&...
user avatar
0 votes
1 answer
127 views

ATmega644P programming via STLINK v2

I want to upload program/debug ATmega644P using STlinkV2(JTAG). Is it possible? Which IDE support make debug ATmega644 using STlinkV2.
user avatar
1 vote
0 answers
2k views

STM32CubeProgrammer Error: No STM32 target found!

I have a nucleo board but no mini-USB B so I hooked it up to an external STLink V2 programmer(related post). The problems: At first it was working as expected but after a while STM32CubeProgrammer ...
user avatar
1 vote
2 answers
1k views

How can I program a STM32 Nucleo board without using the on-board ST-LINK?

I don't have any prehistoric mini-USB cable and nor can I find one in nearby stores. The board doesn't come with one either. Can I still use my Nucleo board? How? I should add that I have a STLink V2 ...
user avatar
2 votes
1 answer
122 views

Can I use the STLink on a Nucleo to program a 5V board

I want to use the STLinkV2 on the nucleo board I have to program an external STM32f4, and I have the SWD pins connected according to section 6.2.4 in the documentation.An earlier unsuccessful attempt ...
user avatar
0 votes
4 answers
265 views

Analog switches able to send bi directional digital information?

I'm trying to send digital signals from an ST-Link V2 programmer connected to my computer to a blue pill STM32 microcontroller, but I want it to go through a DG412 Quad SPST CMOS Analog Switch. As far ...
user avatar
  • 221
0 votes
2 answers
1k views

Keil Error: Not a genuine ST Device! Abort connection

I am using ST-link V2 for programming/ debugging my STM32F103C8t MCU using Keil. So the problem is that when I try to program the STM32 controller it shows a popup error Not a genuine ST Device! Abort ...
user avatar
  • 76
1 vote
0 answers
42 views

Understand how to integrate STM32F407VG MCU on custom PCB and program it

I have been messing around with the STMF407VG for a few weeks now using a discovery board. Been the steep learning curve but I think I have made significant progress on learning firmware development ...
user avatar
  • 121
0 votes
1 answer
873 views

Program STM32 MCU with SWD by default as alternate function

I want to use my first STM32 MCU in the project. The project involves a few peripherals (UART/SPI/I2C) and has a bit of math to do here and there, mainly bit shifting and/or integer computations, so I ...
user avatar
  • 3,328
0 votes
3 answers
250 views

STM32 runtime Variable value manipulation

So basically I am not an expert, altho I think I have a good basis of knowledge. I am using an STM32 Cortex 4 (discovery) for a hobby CNC machining application. So lets assume we have a SW under ...
user avatar
0 votes
1 answer
2k views

ST-Link cannot software reset my STM32 MCUs over SWD

I've been working on a problem with two different boards (one using an STM32F7 and the other using STM32F3). When attempting to program the boards (using an ST-Link provided on Nucleo/Discovery boards)...
user avatar
  • 3
1 vote
2 answers
970 views

STM32F401 failed the search for probes ensure that the usb drivers are installed

I have a stm32f401vc discovery card, I can't download and debug the code you can find the error in this picture when I connected the card to my pc here is what I found in Device manager I worked on ...
user avatar
0 votes
0 answers
142 views

Wiring JTAG correctly

I'm a bit confused how to correctly wire JTAG input and output. I have my ST-Link and my STM32 microcontroller. Which of the configurations is correct? Pinout St Link || STM32 TDI-----------------&...
user avatar
  • 39
0 votes
0 answers
182 views

Could a china ST-Link have bricked my STM32F4?

I have built several boards with STM32F405 on them and I have been flashing them with a cheap china ST-Link knock-off from eBay which worked perfectly for many months now. However, I now noticed, that ...
user avatar
5 votes
1 answer
233 views

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 ...
user avatar
1 vote
1 answer
126 views

STM8 ST-Link high power consuption & unable to connect

I have a ST-Link V2 and I am trying to connect with SWIM. So, i simply connect the pins, but the power consuption is very high (80 mA!), so high that che voltage regulator gets warn. In ...
user avatar
  • 31
0 votes
1 answer
43 views

STLINK V3 and Signal Integrity Considerations for a Debug Connector Which is Not Near the Processor

We have a target designed to use SWDIO SWCLK SWO (and NRST). We have to move this connector to a location 6 inches away from the STM32F uC. I cannot find any documentation about signal rise and fall ...
user avatar
  • 135
0 votes
1 answer
2k views

FTDI and ST LINK devices together to STM32

I have an STM32 board (blue pill) that I am programming with the Arduino IDE. I couldn't program it using an FTDI adapter because I couldn't make the Arduino IDE communicate trough the USART for ...
user avatar
  • 29
0 votes
1 answer
473 views

Can I use the embedded ST-LINK/V2-1 USB of an STM32 Nucleo board to create a USB mass storage application?

I want to create an application that can act as a USB mass storage device in order to provide its output to other devices. Mostly results from A/D conversion of signals. I have an STM32L412 Nucleo-32 ...
user avatar
0 votes
0 answers
666 views

How to verify ST Link V2 original or fake?

I need your help to identify the product is original or not? I ordered the ST-Link V2 from one of the local and reputed online website. The product I received has an outer box that looks like original ...
user avatar
1 vote
1 answer
3k views

OpenOCD: enabling SWD on STLINK-V3

I am starting with a simple STM32 board that has only SWD (i.e., SWDIO, SWCLK, SWO, and NRST) and 3V power supply. (Yes, I have double-checked the connections of all of the above pins, both on the ...
user avatar
1 vote
2 answers
990 views

STLink cannot connect, unless VDD is connected

I have made my own board with an stm32g474 on it. Unfortunately I have some problem with connecting to it with ST-link. The board has it's own power supply. If I connect the SWDIO, SWCLK, NRST and GND ...
user avatar
  • 47
0 votes
0 answers
303 views

Can I use ST-LINK (or clone) for programming non-ST ARM{7,9} and Cortex A chips?

Can I program non-ST ARM926 or ARM7TDMI and Cortex-A chips using ST-LINK and ST-LINK clone? I've searched ST's website and I haven't found anything about this. If no, what is the cheapest way to do ...
user avatar
  • 3