Skip to main content
ABURM
Associate III
December 9, 2020
Question

STM32G031F6P6 programming error.

  • December 9, 2020
  • 5 replies
  • 2209 views

Hi guys.

I'm trying to program "STM32G031F6P6" but it doesn't work. I am using keil and I also tried with stlink utility. I adding the schematic, cubemx project and error screen capture.

0693W000006FBl7QAG.png0693W000006FBlRQAW.png0693W000006FBllQAG.png0693W000006FBkZQAW.png0693W000006FBmZQAW.png0693W000006FBmoQAG.png0693W000006FBn8QAG.png

This topic has been closed for replies.

5 replies

Uwe Bonnes
Chief
December 9, 2020

It is best to describe what you feel what is going wrong and provide textual output. Just dumping pictures and having peopel to load these picture and decipher themself what you might think is wrong is a lazy approach. For Stm32CubeProgrammer, you need a hex or bin file. A googel search for "stm32cubeprogrammer elf-loader" will perhaps the elf file loader.

Uwe Bonnes
Chief
December 9, 2020

I tested, and I can load elf file in 2.4 and 2.6. Is your elf file for the right architecture?

Tesla DeLorean
Guru
December 9, 2020

Use STM32 Cube Programmer, ST-LINK Utilities likely not aware of the G0

Connect NRST to the debugger

Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..
ABURM
ABURMAuthor
Associate III
December 10, 2020

I solved the problem. I changed the programing algorithm. Doesn't work with "STM32G0x1". Do you have any comment?

0693W000006FI2sQAG.png0693W000006FI32QAG.png

Houda GHABRI
ST Employee
January 6, 2021

Hi @ABURM​ ,

STM32G031x is not supported in STLink-Utility , you can switch to STM32CubeProgrammer .

Houda