I have developed a software, compiled and ran. In the end the output file is a HEX intel file. My arrange of the memory is 2 AM29F040 (512k x 8) but as we all know the C167 micro has a 16 bit address and data bus, so I am using 2 Flash ROMs connected accordingly. I've been breaking my head trying to figure out how am I going to program this 2 memories. As I said, when I create the HEX file it is only one. I would like to cut this hex file in 2 so that in the end I have High.hex and Low.hex files and then program the memories one by one. Can this be done? Is there a program that allows me to cut this hex file into high and low parts? Every program or recommendation I've read are directed to an 8 bit address and data bus which is not the case here. Please help... Ernesto Garcia
I had the same problem once: I had to use a programmer which wasn't able to split a HEX file into two. I ended up writing my own program in C which did the trick. The HEX file format specification is available, so it isn't a problem: http://www.keil.com/support/docs/1584.htm There is this project on SourceForge called SRecord: http://srecord.sourceforge.net/ If I had known about it I wouldn't have had to write my own tool. - mike
Thanks for the help Mike. GREAT TOOL!! It has everything for this file manipulation. Thanks again, Ernesto