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
1answer
22 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
32 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
13 views

Connect Nucleo ST-LINK to another Nulceo Board Target

I am having issues displaying serial data, when I connect a Nucleo ST-link to another Target. My Pins Connections are as follows: ST-Link -> Nucleo Board VCC -> From JP1 of ST-link to 3.3V ...
0
votes
0answers
36 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 ...
0
votes
0answers
21 views

STLINK-V3 Windows setup

I am trying to set up an STLINK-V3 in Windows 10. I downloaded and installed the USB drivers from STSW-LINK009, as suggested in TN1235. However, ST-LinkUpgrade (STSW-LINK007) and the ST-LINK Utility (...
1
vote
0answers
99 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
66 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
31 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
105 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 ...
0
votes
0answers
17 views

Are any target bootloaders/chips incompatible with ST-LINK V1/the STM32VLDISCOVERY external SWD?

With limited prior ST experience I bought an STM32VLDISCOVERY board recently to try it out, and program some other boards for a project, without realizing this board was STLINK V1, nor how deprecated ...
1
vote
2answers
498 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
111 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
66 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
46 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 ...
0
votes
3answers
169 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
99 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
171 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 ...
0
votes
1answer
59 views

stm32f429 hardware development

I have built a custom stm32f429 board. It uses SPI, I2C, UART and CAN for communication with various sensors. This is my first stm32f429 board, i've designed boards around stm32f3 and f1 series before....
1
vote
1answer
457 views

Can I use a ST-LINK V2 as a universal JTAG or TTL serial interface?

I have a ST Link V2 as pictured below. I would like to use it as a general purpose JTAG and or Serial TTL USB interface for communicating with a wide variety of devices. The documentation claims it ...
0
votes
0answers
44 views

issues with serial printing with broken stlink using arduino ide for nucleo f411re

I am using stm32 nucleo f411re for a project. I have separated the stlink from the board, and I am using arduino ide extension in vscode to program the nucleo f411re. The issue is I am not receiving ...
0
votes
1answer
97 views

Accessing the STM32L412KB Serial Wire Debugger (SWD) Connections (Novice User) [closed]

I am attempting to program an STM32L412KB device using ST-Link/V2-1, a Raspberry Pi 3B+ and OpenOCD software. To do this however, I require access to the SWDIO connection and the SWDCLK connection of ...
0
votes
1answer
203 views

How to program STM32_F4VE with ST-LINK/V2/01-0 [closed]

I am using keil uvision 5. I haveSTM32_F4VE development board and ST-LINK/V2/01-0. How to program this board with ST-Link v2? If you can suggest some website link also it would be helpful.
1
vote
2answers
110 views

How can I run an STM32L with an unpowered ST-Link connected?

I have an STM32L476RG on a custom board that I have to leave connected to an external ST-Link/V2 so that I can reprogram it without accessing the hardware. I'm also forced to do this via a USB hub due ...
0
votes
3answers
553 views

Programming STM32 Black Pill with ST-LINK/V2 dongle

So I recently bought the STM32F103C8T6 "black pill" dev board along with the ST-LINK/V2 dongle (more probably a Chinese clone). After much struggling I figured out that I need to hold down the dev ...
22
votes
10answers
8k views

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 ...
0
votes
0answers
37 views

Usart2 on STM32F401RE is not working after cutting st-link

As I know, Virtual COM port of ST-Link connection is connected to Usart2 on a STM32F401Re. When, ST-Link part is still attached everything is working fine on Usart2. However, after cutting ST-Link ...
5
votes
0answers
317 views

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'...
0
votes
2answers
202 views

On-board st-link programmer on F411 Discovery board cannot connect

Backstory: I have STM32F411E-DISCO board which has on-board st-link which i used before without problems (also programming external stm's). Today i tried to program STM32F103C8T6 with SWD connector (...
1
vote
1answer
1k views

BOOT0 vs BOOT1 circuit design in STM32f103 (ST-LINK)

I have a question about designing st-link v2. According to the schematics provided by st.com Please help me in analyzing this schematic. Why boot0 was pulldown with a 100k resistor but connected boot1 ...
-1
votes
1answer
291 views

STLink USB communication error when no board is connected

I'm new to using the ST-LINK, and I'm trying to isolate a connection problem, by checking if the ST-Link itself is working well with my computer. I connected the ST-LINK V2 by itself to a Windows 10 ...
1
vote
2answers
163 views

STM32F0 Disco on-board “Cannot connect to target”

So I've already went through these topics: "can-not-connect-to-target-using-stm32f0-discovery-board-as-st-link" "STM32 & ST-LINK - SWD connector not working" I cannot access on-board target with ...
0
votes
1answer
45 views

Unable to resolve ADC conversion error in stm8s105s6

I'm trying to learn ADC on stm8s105s6. But not getting proper adc result. I shorted VCC to analog pin 3 and expected conversion value near 1023 as stm8 has a 10 ...
3
votes
2answers
2k views

Add serial interface to ST-link clone

I recently started studying STM32 microcontrollers (BluePill STM32F103 dev board + ST-link V2 clone). I was wondering if it is possible to add serial communication to ST-Link clone? From what I ...
0
votes
0answers
620 views

STM32CubeProg vs STLINK Utility

There are 2 software tools provided by ST to flash their STM32 MCUs namely STM32CubeProg and STLINK Utility STM32CubeProg Page says: STM32CubeProgrammer (STM32CubeProg) is an all-in-one multi-OS ...
0
votes
1answer
148 views

ST-LINK and PA13,14 Pins on STM32F407

If I use PA13,14 pins for flashing my MCU via ST-LINK programmer then can I also use these pins as GPIO in the same circuit? Will that not disturb the ST-Link if some analog or digital circuit is ...
0
votes
1answer
52 views

Minimal circuit to flash STM32F4 using STLINK

I wonder if I need to put some circuit between STLINK and STM32F4 MCU to flash it or does it simply require to connect the wires 1:1 directly? I cannot find it in the datasheet.
1
vote
1answer
1k views

NRST pin of unpowered STLINK V2

I am using the STLINK from a Nucleo board in order to flash and debug a STM32F7 MCU on a custom board. Everything works fine except when STLINK is connected to my custom board AND unpowered. Indeed, ...
0
votes
1answer
153 views

On-board ST-Link Firmware

There is an on-board ST-Link on STM32F4Discovery board based on STM32F103 MCU. If I have to use this circuit in my design then where could i get the ST-Link firmware for STM32F103 MCU?
2
votes
1answer
376 views

STM32F429I Discovery board - unable to do printf() redirection using SWV/ITM

I am an STM32 newcomer. I recently got an STM32F429 Discovery dev board which I have been playing around with. Currently I'm trying to figure out how to use the debugging functions of this M4 Cortex, ...
2
votes
2answers
1k views

Minimum connections needed between stm32 MCU and the st-link programmer? [duplicate]

My MCU is stm32L432kc. I've concluded that we need a minimum of 4 connections: SWCLK, SWIO, vcc and gnd. Can someone from here confirm that? And another question is I'm confused how to connect the ...
0
votes
1answer
1k views

STLink 3.3V target power

In order to program a target MCU with STLink you need to connect 4 wires - SWCLK, SWDIO, GND and VCC (3.3V). STLink v2 programmer has 3.3V pin already present and ready to use. But let's say I would ...
0
votes
1answer
2k views

STM8 SWIM interface connection problem

I am trying to connect STM8L052C6T6 microcontroller using SWIM interface (STM8 port) on ST-Link/V2 programmer and it just doesn't connect. Power comes from outside power source (target is powered) ...
-1
votes
3answers
4k views

“Can not connect to target!” using STM32F0 discovery board as ST-Link [closed]

(first posting here so bear with!) Hi, I'm a very novice embedded programmer and have hit a wall trying to use an STM32 discovery board as an ST-Link programmer to an external STM32F051K8T. I know ...
1
vote
1answer
361 views

Stm32f103 blue pill and stlink power

When two or more of these modules have their 5v pins hooked up to a common 5v rail (power off) and I connect an 4-pin SWD st-link to the programming pins of one, I'm finding that all modules (and ...
0
votes
1answer
543 views

Programming STM32F407 discovery by the ST-Link V2

I have a STM32F4 Discovery board and a ST-Link/V2 programmer. I want to use my own ST-Link (not the embedded one) for programming and debugging the board. I faced to a problem that i still haven't ...
0
votes
2answers
330 views

How to connect custom stm32 board to debugger

I have a custom STM32 microcontroller board. I have verified all of the electrical connections, and I am able to program the board with Texane's st-flash utility. However, I would like to debug the ...
2
votes
1answer
1k views

USB communication error in ST-LINK v2 [closed]

I have been trying to program my STM32L476RG micro-controller based breakout board using ST-LINK v2 as the programmer. I have hooked every VDD of breakout board to 3.3 V pin of programmer and ...
1
vote
0answers
111 views

OpenOCD debugger in Eclipse Neon 4.6.2 Error in final launch sequence

I have been struggling with OpenOCD debugger under Eclipse Neon 4.6.2. Whenever I run the debug configuration I receive below given error message I have been attempting to debug the STM32F417VGT6 MCU....
1
vote
3answers
3k views

Atollic STM32H7 + ST-LINK Error writing data to flash with math library

I am currently working on a STM32H743VIT6 chip (on a self-designed board), with the Atollic TrueStudio toolchain (ver. 9.0.0), using a ST-LINK debugger on a STM32F4-Discovery board (ST-LINK firmware ...
2
votes
2answers
1k views

Can one program an STM32H7 chip directly using an ST link/V2

I recently bought an STM32H7 chip, soldered onto a breakout board. I have been trying to program it using the ST-link/V2 using system workbench for STM32. I get the error: "Wrong device detected". The ...