I'm using PCH compiler V4.102 to compile PIC18f458 code which I have written using MPLAB. The problem is very new to me; the hex generated when I open it with my programmer sw it says the file is invalid.
Is there any one faced the same or one can help me out.
The programmer is of uCflash comny......
dyeatman
Joined: 06 Sep 2003 Posts: 1934 Location: Norman, OK
Posted: Mon Nov 30, 2009 7:51 am
That's interesting. You are using a compiler version that has not released yet! The latest one is 4.101. _________________ Google and Forum Search are some of your best tools!!!!
asmallri
Joined: 12 Aug 2004 Posts: 1635 Location: Perth, Australia
Posted: Mon Nov 30, 2009 9:09 am
The CCS linker no longer produces an initial type 4 intel hex record at the start of the hex file. This may be a problem for your programmer. If this is the case you can prepend the hex file with a type 4 record that sets the high order address to 0x0000
There may be an option to force generation of this record but if there is, I don't know it. _________________ Regards, Andrew
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