Skip to main content
Rkhan.1
Associate
June 12, 2021
Question

I am using stm32g030k6 mcu with keil microvision5 and stlink V2 2016 debugger. I am not able load the program to flash using keil. ,the error displayed by keil is" unable to load flash file".

  • June 12, 2021
  • 2 replies
  • 683 views

The st link and the MCU are fine since i am able to load the hex file to MCU with STm32CUBE ide. .This error is only faced with KEIL.

also when i load the hex file using stlink utility ,hex files get loaded properly.

This topic has been closed for replies.

2 replies

Tesla DeLorean
Guru
June 12, 2021

Provide all the details from the build pane​

Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
Rkhan.1
Rkhan.1Author
Associate
June 14, 2021

Please find the details of build pane below

"Program Size: Code=5008 RO-data=288 RW-data=16 ZI-data=1088  

FromELF: creating hex file...

"timer_initializations_12_june\timer_initializations_12_june.axf" - 0 Error(s), 0 Warning(s).

Build Time Elapsed: 00:00:17

Load "timer_initializations_12_june\\timer_initializations_12_june.axf" 

Erase Failed!

Error: Flash Download failed - "Cortex-M0+"

Flash Load finished at 10:03:56

Load "timer_initializations_12_june\\timer_initializations_12_june.axf" 

Erase Failed!

Error: Flash Download failed - "Cortex-M0+"

Flash Load finished at 10:04:10"