CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to support@ccsinfo.com

invalid hex file

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
dhanawadeamit



Joined: 27 Nov 2009
Posts: 1

View user's profile Send private message

invalid hex file
PostPosted: Mon Nov 30, 2009 7:05 am     Reply with quote

hi,

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. Sad
Is there any one faced the same or one can help me out. Crying or Very sad

The programmer is of uCflash comny......
dyeatman



Joined: 06 Sep 2003
Posts: 1913
Location: Norman, OK

View user's profile Send private message

PostPosted: Mon Nov 30, 2009 7:51 am     Reply with quote

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: 1630
Location: Perth, Australia

View user's profile Send private message Send e-mail Visit poster's website

PostPosted: Mon Nov 30, 2009 9:09 am     Reply with quote

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

http://www.brushelectronics.com/software
Home of Ethernet, SD card and Encrypted Serial Bootloaders for PICs!!
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2005 phpBB Group