We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
hello.. how to generate intel hex file after compiling the program because i wanna to do eeprom through external programmer ?? i changed the options for target - output- generate hex file ..but unable to locate the hex file. generally ..the format what is the format of the file .. thanks .. pruthvi
A Hex file shall not be generated under circunstances where a compiler or linker error is present. If there are no erros and the Generate Hex file option is checked, I presume you know what to do, right? Alex
hi ..everything is fine. i am generating hex file ..but the format is different..can u suggest me any third party tool which simply generates the hex file as below.. =================================== address location | optcode 0x0000 0x23 0x0001 0xfe .... ... =================================== thanks ..pruthvi
Please Check: http://www.keil.com/support/docs/1584.htm Keil is able to generate HEX-80 and HEX-386 ( PK51 ). Alex
Do you mean you want a Binary file? If so, look at HEX2BIN in the downloads section. Can't your programmer do Intel Hex?
0x0000 0x23 That would be a terribly wasteful format for a "hex file". Are you positively sure that this is the format you need? Intel-Hex isn't exactly rocket science, either, but * it's way more efficient than the above * it's the format Keil generates for you, and * it's almost certainly also understood by your Eprom burner --- just about all of them support this format.
=================================== address location | optcode 0x0000 0x23 0x0001 0xfe .... ... =================================== What strange piece of equipment requires that format? Erik
hello ..thanks for the replies .. i am working on single phase meter application ..which has a on chip micro. the system is hardwired to take first system control command ( i.e read or write) to program ram and then length of data and data follows. i am using com port for downloading the prog code .. any way ..i have written my own code for the above to generate hex file .. thanks . pruthvi
You're now contradicting your own original question. There, you explicitly asked about an "external EEPROM burner". Any device falling under that definition would already support the file format Keil generates, so there should be nothing to do. Now you say you've designed your own in-system-programme, using your own, home-grown file format. There's nothing intrinsically wrong with that, but you really shouldn't expect anybody else to generate that home-grown format for you. It's your choice, but also your duty to live with its consequences. You've reinventend the wheel, really, and as so often happens in such cases, you came up with a square one. I would strongly advise to reconsider your "hex file" format design. Intel-Hex is better than that format in just about every imaginable aspect.