Skip to main content
33 votes

STM Microcontroller burns every time

VDDA is not connected. Application note AN4325 Getting started with STM32F030xx and STM32F070xx series hardware development says, The VDDA supply can be equal to or higher than VDD. This allows VDD ...
followed Monica to Codidact's user avatar
17 votes

STM Microcontroller burns every time

Have you looked at your power supply waveform with an oscilloscope? The LF33 linear low-dropout voltage regulator you seem to be using requires a minimum of 2µF of added output capacitance for ...
Edgar Brown's user avatar
  • 8,476
11 votes
Accepted

Programming a new STM32 chip

The bootloader is in ROM, it is not user-modifiable (ie: you can't "burn" a new bootloader). This appnote describes the bootloader features for different STM32 parts. On the all the STM32 parts that ...
Synchrondyne's user avatar
  • 3,764
11 votes

What is the use of NRST pin in STM32F401RCT6?

Is it used to reset the program which we flash and allow us to program it again? It seems you are confused about what reset actually resets. It does not "reset the program", it resets the MCU. The ...
Maple's user avatar
  • 12.8k
9 votes

Can I use ST-Link programmer for non-ST chips?

You could also flash the st-link and convert it to a Black Magic Probe. The same image will also convert a Blue Pill into a BMP. I've done both. The Blue Pill has the advantage that the usb-rs232 ...
GB - AE7OO's user avatar
  • 1,083
9 votes

STM Microcontroller burns every time

In my professional experience I have found the STM32 to extremely sensitive transient voltages on the power rails and GPIO. Make sure that your power supplies aren't over-shooting on startup. On thing ...
Ryan Vasquez's user avatar
9 votes

Programming RP2040 with ST-LINK

It's true that the original ST-LINK firmware does not support multi-drop SWD debug protocol. RP2040 has two CPU cores, and multi-drop SWD support seems to be required even when you only want to ...
jpa's user avatar
  • 8,773
8 votes

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

Right below Figure 10 of AN2586 it mentions: Resistor values are given only as a typical example. These pins can be tied directly to VDD or GND, but it is common practice to use resistors for a ...
calcium3000's user avatar
  • 2,516
7 votes
Accepted

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

All STM32 and STM8 chips can be debugged and programmed by an ST Link V2. However, you might need to update the ST Link firmware. See if it works with the ST Link Utility: STSW-LINK004. If yours ...
Jeroen3's user avatar
  • 23.1k
7 votes

Can I use ST-Link programmer for non-ST chips?

To add to the existing answer; some chips are known not to work properly with ST-LINK and OpenOCD. In particular, if your target is from the Atmel SAMD21 family of MCUs, you are likely to run into ...
minexew's user avatar
  • 249
7 votes

STM Microcontroller burns every time

Let's take a look into LF33 datasheet: https://www.st.com/resource/en/datasheet/cd00000546.pdf ...
Mikołaj Tutak's user avatar
7 votes

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

Yes you can use them as a normal chip. You can also desolder them and put a different pin compatible STM32 chip on the dev board (if you need one with more ROM or memory. Or if you accidentally smoke ...
Voltage Spike's user avatar
  • 84.6k
6 votes
Accepted

Error when using debugging under Atollic TrueStudio / STM32

I found the answer elsewhere but I will repeat it here for other people: Close Atollic TrueStudio (not sure if this is needed) Startup ST Utility Press the Reset button and keep it pressed Select ...
Michel Keijzers's user avatar
6 votes

STM Microcontroller burns every time

Where have you got the uC? Are they genuine? I have worked with lots o f stmf1 and had no problems with esd nor higher temp soldering Have you tried not flashing device? Just leave it on for some ...
Eduardo A Sugai's user avatar
6 votes

Generic ST-Link V2 Not Resetting Target?

I had the same problem! If you take a look at the PCB you see the NRST signal is messed up, meaning it is not connected to PB0 of the stm32F103 MCU in the programmer - instead it is connected to the "...
zoltan.jehn's user avatar
6 votes
Accepted

How to make SMT32 chip programmable while it stuck in Standby mode?

Connecting the SWD with NRST asserted, halting the core, releasing reset and doing a mass erase will work. The problem is NRST. A lot of software tools default to commanding reset via an SWD ...
Chris Stratton's user avatar
5 votes

STM32 & ST-LINK - Cannot connect to MCU after successful programming

if you're using stmcubemx, u need to configure the serial wire on stmcube pinout tab. on pinout tab, click SYS and change debug option to serial wire. it fix my problem, and maybe your problem too.
dili's user avatar
  • 51
5 votes
Accepted

STM32F4 without ST Link module

While you can use the serial or (on the `407 USB or several other interfaces) bootloader, realistically, you should get a cheap SWD adapter. You can even use a Discovery board for any SMT32 variant ...
Chris Stratton's user avatar
5 votes
Accepted

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

Although Blargian already gave his answer as a comment, I thought I should formally answer in case anyone has the same problem. I will refer to the document "STM32F429ZI Discovery Kit User Manual" (...
drojf's user avatar
  • 166
5 votes

STM Microcontroller burns every time

Check the data sheet for the maximum current the F030 will draw and set the current limit on your bench supply to deliver a little less than that amount to protect the micro. I've not checked the ...
Rex's user avatar
  • 51
5 votes

STM Microcontroller burns every time

Stability of the regulator is the trick here. Light loads are harder to keep stable, without added capacitance. I had a similar thing happen once with an LM317. The voltage in that circuit went ...
Andrew Perkins's user avatar
5 votes
Accepted

STM Microcontroller burns every time

I finally found what was causing all these. Seems i had some problems in my grounding circuitry and some high voltage AC was appearing on the device during soldering and powerup and there wasn't a ...
NXP's user avatar
  • 391
5 votes

ST-LINK/V2 repairing issue

You need to upload ST Link firmware onto the MCU. It might be possible with some soldering/desoldering involved. I am not sure if the original firmware is available freely, but there is STSW-LINK007 ...
Maple's user avatar
  • 12.8k
5 votes
Accepted

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

I would verify that you have a good ground from the DUT to the FTDI converter cable. You could have a situation where the ST-Link is ground referencing your system to the host PC.
Luke Gary's user avatar
  • 1,085
4 votes

Do I really need to put stm32 microcontroller into bootloader mode to program it?

There are possibly many ways to program the board, using different tools. One of them, which seems quite easy is to use the ST-Link V2 (google it) and OpenOCD. Leave both boot jumpers to "0". Connect ...
A.K.'s user avatar
  • 352
4 votes

Do I really need to put stm32 microcontroller into bootloader mode to program it?

If you're using an ST-Link (SWD) programmer, then you don't need to put the board into "programming mode". A bootloader is what allows the chip to "download" and run a new program. The "programming ...
youtooth's user avatar
  • 709
4 votes
Accepted

ST-Link connection suddenly stops responding

It seems that in the HAL project the SYS / Debug was not set to Serial Wire (this is not default). However, the first time it was possible to debug, but not afterwards anymore. The reason is that the ...
Michel Keijzers's user avatar
4 votes
Accepted

STM32 & ST-LINK - SWD connector not working

The SWD connector on a Discovery board (CN2) is not for programming the on-board Target MCU. Rather, it is to allow the on-board ST-LINK to be used to program an external target. If you want to ...
Chris Stratton's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible