cancel
Showing results for 
Search instead for 
Did you mean: 

Programming .hex generated from CubeIDE to target device using Segger J-Flash

SShid
Associate III

I've produced a .hex file of my program which I want to flash on the target device using Segger J-Flash utility and J-Link Plus device. I'm aware that CubeProgrammer could be a better option, but the people who're going to use the .hex file have access only to the J-Flash.

I created a new project in J-Flash with my micro selection as STM32F103RG.

Connection method set as SWD.

I loaded up the .hex file which I had generated using CubeIDE.

Now when I clicked on the 'Program' button, it gives the following error:

---------------------------------------------------------------------------------------------------------------

Programming Failed @ address 0x08000000 (program error)

Failed to program target.

---------------------------------------------------------------------------------------------------------------

Is there something wrong with the address '0x08000000'?

It got put in automatically by J-Flash.

Should there be some different address put for this particular device?

1 REPLY 1

This is internal FLASH memory for the STM32F1 device, J-Flash would need a suitable driver/applet to support the internal memory. Perhaps read the docs?

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