Hi, i have a rather daunting problem. We want to deploy our firmware in over 300 devices. All devices use the same firmware except for one variable DeviceID. The id has to be different for every device we use. So device 1 would get id 1, device 2 id 2 and so on. I am sure that some of you have already tackled such problems. What would be the best solution? Maybe set the variable to a specific location (DeviceID _at_ Location) and patch the hexfile? or something more elegant? regards Christian
Hi Christian, I just wanted to bring to your attention this flexible tool for manipulating HEX files (as well as many other file formats): http://srecord.sourceforge.net/ The Win32 binary can be downloaded here: http://sourceforge.net/projects/srecord If you decide to patch the HEX file, this tool can very useful. - mike
One possibility would be to make a .bat file. If you use a "%" in the linker commandline and use the .bat loop abilities, you would only have to enter the number once per batch of chips. Of course, you would have to make the .hex filename the device ID as part of the "%" use. Erik
"Of course, you would have to make the .hex filename the device ID as part of the "%" use." Not quite sure what you're getting at there - could you explain a bit more. I think 'for' together with the "S-Record" utilities Mike mentioned should be able to do this. Note that the 'for' on Win-NT and later is far more powerful than Win-9x and before (including "real" MS-DOS).
well, if you are making several .hex files with different serial numbers, you have two options: 1) a different name of the .hex file to disk for each serial number - or - 2) integrate the programming of the chips in the .bat file. Erik