Skip to main content
Aatif Shaikh1
Associate III
November 6, 2020
Solved

STM32G030K6T6 is not programming!

Hello,

I'm working on a small scale project. In my earlier design, I've used the STM32F100x series. Now as the STM introduced a new set of controllers, the STM32G series ( which is less in cost and much higher efficiency than STM32F series), I've migrated to STM32G030K6T6.

AT present in my custom-made board, I've only placed a micro-controller along with some essential circuitry component and trying to program the micro-controller, but unfortunately, the micro-controller is not getting programmed. Currently, I'm using the ST-Link V2. I even tried to program with the ST-link of the NUCLEO-G070RB board, but the results are still the same.

Error Message :
 
14:09:32: Can not connect to target!
Please select "Connect Under Reset" mode from Target->Settings menu and try again. 
If you're trying to connect to a low-frequency application, please select a lower SWD Frequency mode from Target->Settings menu.
14:09:34: No target connected.

This topic has been closed for replies.
Aatif Shaikh1
Aatif Shaikh1Best answer
Associate III
November 6, 2020

Hello, thanks for the tip, but after changing some ST-link Configuration, I'm successfully able to do the programming of my board now. Under "Reset Mode" I've selected "Software System Reset".

8 replies

Tesla DeLorean
Guru
November 6, 2020

Means the chip is not running or you've got something else wired up wrong.

Check level of NRST.

Check VDDA.

For external ST-LINK make sure pin 1 or 2 has voltage applied, for Nucleo that local target is disconnected.​

Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
Aatif Shaikh1
Aatif Shaikh1AuthorBest answer
Associate III
November 6, 2020

Hello, thanks for the tip, but after changing some ST-link Configuration, I'm successfully able to do the programming of my board now. Under "Reset Mode" I've selected "Software System Reset".

wenbang zheng
Associate II
June 24, 2022

Hi Aatif Shaikh 

​

i think NRST PIN need 10k to VCC

STM32 is low level reset,you Schematic NRST connect a CAP to gnd, so NRST PIN is alse LOW, so mcu is also IN RESET

see my Schematic。my board work well

0693W00000Nsh3SQAR.png

Piranha
Principal III
June 27, 2022

No, you are wrong. The 100 nF capacitor is the only thing required and an additional pull-up resistor only makes things worse. Stop copying the Chinese copy-paste "engineers" and read the datasheet and AN5096.

wenbang zheng
Associate II
June 28, 2022

:), i do not think so, tie NRST pin to vcc so it is HIGH level and will not reset in nomal