Monday, May 24, 2010

How do i open a compiled c program?

I am using MPLAB IDE and the MPLAB C18 compiler. i'm trying to learn how to program in c, so i need to compile and test codes. But i dont know how to open the hex file that it was compiled into. can you help me figure out how to open this? thanks.

How do i open a compiled c program?
The MPLAB C18 compiler creates a hex file that you can load into a microcontroller. In your code, you would have specified what 'model' it is (ie. 18F452, 16F677 etc). The hex file is only compatible with that specific model.





To load the file into the microcontroller, you use a device called In-Circuit Debugger (ICD) or In-circuit Serial Programmer (ICSP). You may purchase these devices from Microchip.





For testing, you can download PIC Simulators and 'emulate' a PIC microcontroller on your PC.
Reply:You'll need a hex editor to view the binary as hex. Here is a complete list from Wikipedia.





http://en.wikipedia.org/wiki/Comparison_...

yu gi oh cards

No comments:

Post a Comment