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

Merging code intel records with data intel records

Hi All,

I've got a large project that has unique data for each device (e.g. serial number, params etc).

I can enter the unique data and compile in uVision but this involves linking the whole project each time which takes too long (I have 1000 unique IDs that need to be programmed)...

So I located my unique data at fixed addresses and created data hex files which can then be merged with the code hex file before flashing (using hex2bin, bin2hex) and I was wondering if there is a better or more elegant way to do this?

thanks,

Malcom

Parents
  • Maybe....

    You should be able to make a program to do it. Try by hand first. remove the "end" record from the code intel hex file. Then append the data intel hex file to it.

    This should work with a programmer, but not a boot loader if the first file writes to the data table. This could be fixed if you reserve the area in the linker.

Reply
  • Maybe....

    You should be able to make a program to do it. Try by hand first. remove the "end" record from the code intel hex file. Then append the data intel hex file to it.

    This should work with a programmer, but not a boot loader if the first file writes to the data table. This could be fixed if you reserve the area in the linker.

Children
No data