Posted: Mon Nov 05, 2007 9:03 pm Post subject: Write hex file in a memory
Dear Friends
I should write an hex file in an external memory.
For do it I should simply read byte to byte from hex file and write in a memory or there are header in hex file that I must skip?
Joined: 16 Jan 2006 Posts: 2483 Location: Queensland
Posted: Tue Nov 06, 2007 12:33 am Post subject:
It depends whether you need the hex file itself in memory, or just the data content. An Intel Hex file contains ascii characters representing a start character, header, address, data and a checksum on each line. To store just the data, you have to strip out all other stuff, and translate the characters representing the data into bytes, then store them at the correct addresses.
Google for the Intel Hex file structure. _________________ Adrian Jansen
Computer language is a framework for creativity
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You cannot download files in this forum