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
0answers
18 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, ...
1
vote
1answer
59 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 ...
0
votes
1answer
60 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 ...
2
votes
0answers
67 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 ...
1
vote
1answer
56 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 ...
2
votes
0answers
64 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 ...
1
vote
0answers
53 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 ...
1
vote
1answer
279 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 (...
-1
votes
1answer
217 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" ...
2
votes
1answer
310 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 ...
1
vote
1answer
174 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 ...
1
vote
0answers
550 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. ...
3
votes
1answer
118 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 ...
0
votes
0answers
45 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 ...
1
vote
2answers
106 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 ...
2
votes
1answer
144 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 ...
0
votes
1answer
130 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 a at32f403 chip. I'm using the info of https://github.com/cloidnerux/hoverboard-firmware-hack and ...
0
votes
0answers
74 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 ...
0
votes
1answer
36 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&...
0
votes
1answer
41 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.
0
votes
0answers
1k 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 ...
0
votes
2answers
529 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 ...
2
votes
1answer
45 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 ...
0
votes
4answers
164 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 ...
0
votes
0answers
779 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 ...
0
votes
0answers
76 views

ST Motor Profiler and STEVAL-ESC001V1 + ST-Link Connection Error

I am new to the ST ecosystem. I have a STEVAL-ESC001V1 demo board and the firmware STSW-ESC001V1 (via STSW-STM32100 which includes Motor Control Workbench v5.4.5). I also have the ST-LINK v2 ...
1
vote
0answers
35 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 ...
0
votes
1answer
397 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 ...
0
votes
3answers
152 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 ...
0
votes
1answer
1k 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)...
1
vote
1answer
489 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 ...
0
votes
0answers
79 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-----------------&...
0
votes
0answers
141 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 ...
5
votes
1answer
137 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 ...
1
vote
1answer
66 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 ...
0
votes
1answer
33 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 ...
0
votes
1answer
1k 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 ...
0
votes
1answer
312 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 ...
0
votes
0answers
351 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 ...
1
vote
1answer
2k 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 ...
0
votes
2answers
709 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 ...
0
votes
0answers
165 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 ...
0
votes
1answer
2k views

How to fix: ST-LINK device status: RUN_MODE Failed to initialize external memory!

Problem: I cannot upload/debug my STM32 application. I'm using STM32F103C8T6 (BluePill development board) ST-Link V2.1 STM32CubeIDE. I tried another elf which ...
5
votes
2answers
9k views

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 ...
1
vote
1answer
254 views

St link v2 and stm32f401rbt

Hi i am designing my stm32f401rbt6 board i have stlink v2 which is common and cheap : I used blue pill (stm32f103),programming is done with 3.3v,gnd,swclk and swdio.So can i do same process with ...
0
votes
1answer
114 views

STM8 microcontroller burns when i plug in the ST-LINK (v1 or v2) programmer

I am working on a project/PCB that contains the STM8S003F3 microcontroller. Every time I do the following steps, the microcontroller gets burned. The steps are: I program the STM8S003F3 by using the ...
2
votes
1answer
174 views

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 ...
2
votes
3answers
2k views

ST-LINK/V2 repairing issue

My original ST-LINK/V2 has been broken. There was the Short circuit between VDD and GND pins. I changed the MCU(STM32F103C8T6) and the voltage regulator(LD3985M33R) with new ones. Short Circuit ...
1
vote
0answers
320 views

Why would an STM32 not execute its program after upload?

I am attempting to breadboard an STM32F401 using a 64-pin breakout board. I am able to both connect and upload my program successfully (via ST-LINK V2 SWD pins), but once uploaded, the program seizes ...
0
votes
2answers
1k views

Generic ST-Link V2 Not Resetting Target?

I bought a generic ST Link online, hooked it up to my target correctly (using SWDIO, SWCLK, GND, and RST), and tried to Target => Connect in the STM32 ST-LINK ...