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

Hoverboard hacking with board AT32F403 [closed]

Anyone has flashed and reprogramed a hoverboard which uses a main board with AT32F403 chip using ST link?
0
votes
1answer
28 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
100 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
1answer
79 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
26 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
91 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
281 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
25 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
30 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
76 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
2answers
68 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
321 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)...
0
votes
0answers
56 views

How to debug Cortex M3 with STLink V2 over SWD?

I have a SAM 32bit cortex 3 board(arduino Due clone) and an STLink V2 mini clone. Supposedly all cortex M3 should be able to be debugged via SWD which the STLink V2 mini clone uses. What's not at all ...
0
votes
0answers
85 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
51 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
119 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 ...
4
votes
1answer
106 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
41 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
30 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
816 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
187 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
28 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
205 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
101 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
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
450 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
97 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
1k 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 ...
4
votes
2answers
5k 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
191 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
101 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
104 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
1k 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
226 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
887 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
112 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
961 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
1answer
137 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 ...
1
vote
1answer
385 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
274 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
2k 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
9k 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 ...
4
votes
0answers
562 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
367 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
2k 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
503 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
260 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
52 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
5k 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 ...
1
vote
0answers
901 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 ...