cancel
Showing results for 
Search instead for 
Did you mean: 

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".

Rkhan.1
Associate

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.

2 REPLIES 2

Provide all the details from the build pane​

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
Rkhan.1
Associate

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"