cancel
Showing results for 
Search instead for 
Did you mean: 

STM32G031F6P6 programming error.

ABURM
Associate III

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

5 REPLIES 5
Uwe Bonnes
Principal II

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
Principal II

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

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 Venmo Up vote any posts that you find helpful, it shows what's working..
ABURM
Associate III

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

Hi @ABURM​ ,

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

Houda