On 10/3/2011 9:59 AM, alan.b.pearce@stfc.ac.uk wrote: >>> Anyone know how to flash a hex file? >> First you build or buy a programmer for your target device. >> Then you start at wikipedia to learn the specifications for a hex file. >> >> Next, write a program to read the hex file and send it to the programmer >> in the proper format for the programmer. >> Test, re-write, re-test until it works. >> If it's a PIC you want to program, MPLab has menu selections to load hex >> files. > Yeah, I was going to say the rest of us just load it into MPLAB and progr= am from there, but I assume solarwind is wanting to program a PIC ... don'= t know how one would do it otherwise with a non-microchip product. My first exposure to using hex files was at Bolt Berenek and Newman=20 where I needed to send PowerPC code to a proprietary router board. All=20 custom stuff, the software department had ported gcc, but no linker yet=20 for the PowerPC. The board had a 68HC11 processor to receive the data=20 and put it in the PowerPC memory. I looked up Intel Hex and coff file=20 formats and wrote the software to convert and send the data from a Sun=20 pizza box. Another project was using Ohlin's EmbedInc programmer where=20 I needed to (re)program just 4 bytes of a pre-programmed part to set a=20 serial number. I used custom software to make it quicker in a=20 prodction environment. Joe W --=20 http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist .