Samara
Rookie

How do I change the embedded serial number?


I have a Serial number string 1080910 embedded in a programmable device which has been downloaded to a binary file using the ALL-100 programmer. This is my master file as it were. I need to change this serial number to that of the unit that I need to re-flash using the Master file - the ALL-100 programmer uses XACCESS User Interface which has Edit feature showing Address location, Hex data field and Ascii field. Somewhere in this file is the serial number string - can anybody assist me in how to locate and edit the serial number string as I have been unable to locate it using the search function and have not been able to visually pick up the sequence of numbers. Kindly help. Well do I need the google sites gadgets?
4 months ago
Respond to this discussion
Cecelia Cannon | Jan 6 2012


If your data has one symbolic address in your source code, and it is not a local variable, its address will then appear in your map file generated by your linker. If it is the local variable initialized with one literal constant, then just data will exist in your static initialization data the location of which should even be identified in your map file. Another possibility is that the application image which is compressed and just start up code expands it into RAM at the run time. This will then be obvious in your map file if the data and code addresses are in RAM rather than the ROM. If this is your case then what you are not attempting will be very much difficult. You would just have to know the compression algorithm used, and which part of your image is the compressed part (part of it will be the decompression code which runs from ROM). You would then have to just decompress the image, modify the string, and then re-compress it. Further, if your decompression performs any kind of the check sum on your compressed or the decompressed data, you will then have to recalculate and modify that too.

© 2012, Instamedia. Some rights reserved. Powered by Instapress and Instacheckin.