This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

How to (easily) flash a custom .hex file with debugger?

Hello,

I am developping on a firmware using a bootloader which verifies main application's CRC prior to let it start. To do this, I am generating an extra .hex file with data for bootloader added to the .hex file created by Keil. 

I thought I just had to rename my .hex file with data to the name of the one generated by keil... But Keil's debugger is loading the .axf file, not the .hex one :-(

The only workaround I found was to load my .hex with data with another flash programmer, and then start debugging with Keil to have debug symbols. 

Does anyone know how I could do this directly with Keil ?

Thanks a lot in advance!

Parents
  • Hi Pier,

    I am trying to use the LOAD command, but I get the error : "cannot open file". I trhed with the syntax "LOAD Myfile.hex", "LOAD "Myfile.hex"", "LOAD <relative path to my file with and without double quotes and double \\>", but none of these succeeded.

    Any idea of what I am doing wrong?

    Also, I saw that in this case, the debugger is loading .axf file prior to load .hex. Will the debugging informations (included in .axf file) be erased by the loading of the .hex?

Reply
  • Hi Pier,

    I am trying to use the LOAD command, but I get the error : "cannot open file". I trhed with the syntax "LOAD Myfile.hex", "LOAD "Myfile.hex"", "LOAD <relative path to my file with and without double quotes and double \\>", but none of these succeeded.

    Any idea of what I am doing wrong?

    Also, I saw that in this case, the debugger is loading .axf file prior to load .hex. Will the debugging informations (included in .axf file) be erased by the loading of the .hex?

Children