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
  • Why? What is the point of that?

    Surely, your programming tool already has a 'Verify' facility??

    "The data in the ADU320 flash differs from HEX file"

    So how, exactly, does it differ?

    Are you sure that the chip was actually programmed with the same code in the first place?

    Note that a Hex file typically only contains data for the locations that actually need to be programmed - so there may be "gaps" ...

    Does the code use Flash for any data storage?

    Maybe you have bugs in your python converter and/or your comaprison tool?

Reply
  • Why? What is the point of that?

    Surely, your programming tool already has a 'Verify' facility??

    "The data in the ADU320 flash differs from HEX file"

    So how, exactly, does it differ?

    Are you sure that the chip was actually programmed with the same code in the first place?

    Note that a Hex file typically only contains data for the locations that actually need to be programmed - so there may be "gaps" ...

    Does the code use Flash for any data storage?

    Maybe you have bugs in your python converter and/or your comaprison tool?

Children