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

Using Keil Hex file for programming

Hi,

I'd like to use the .hex output of the Keil compiler to program ADU320 flash.

After reading thu http://www.keil.com/support/docs/1584/ i created a python which turns the hex file to c sructure
Then I read the ADU320 flash to compare FLASH content with Hex output

The data in the ADU320 flash differs from HEX file

so what needs to be programmed ?

Thank you
Yaron

Parents Reply Children
  • .HEX file do not have to be linear, or describe all memory. You'd do better converting each to a binary image for the ROM(s) in question and doing a binary compare. If you normalize the files you might be able to do a diff/compare, but if you understood the data and what it is describing you'd appreciate there are more effective ways to do that.

    The Keil tools send programming code into RAM, and then send blocks of binary data in to RAM, and execute the programming code. They don't send the .HEX or .AXF files directly.

  • Hi,

    Thank you for the links actually I looked for these kind of tools but then wrote them..
    Now I verified with my program again and after reading the KEIL programming process I reset my module before creating the dump from within my design, so that I was not running with debugger, and now indeed the Keil output and memory dump look identical.

    I also dumped from within the Keil using the save command and received the same file.

    So I think we can close the support case

    Thank you