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 CCS Technical Support

;CRC=???? - hex file

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



Joined: 10 Dec 2009
Posts: 5

View user's profile Send private message

;CRC=???? - hex file
PostPosted: Mon Jun 04, 2012 9:34 pm     Reply with quote

Hi!!!

I would like to know how CCS calculates the ;CRC=???? located at the end of the Hex files.
For example:

:10FFC00014FF37000E6DEC00FFFE3700247D0200A9
:10FFD00000000000050037000108A80030C8B30089
:10FFE00016E8B700247D0200000000004F047800EE
:0CFFF000CF0378004F037800CF027800A8
:027FFE00000081
:0200000401F009
:10000000120700003F000000338000000F310000A5
:0C0010000F3300000700000003C00000D8
:00000001FF
;DSPIC30F4013
;CRC=B083 CREATED="04-jun-12 13:29"

Thanks a lot for your help!!

Carlos
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Mon Jun 04, 2012 9:49 pm     Reply with quote

http://www.ccsinfo.com/pdfs/CRC_Source_Code.pdf
Carlos Q



Joined: 10 Dec 2009
Posts: 5

View user's profile Send private message

PostPosted: Mon Jun 04, 2012 10:06 pm     Reply with quote

Thanks PCM.

How execute the code? for all bytes in the hex file including line CRC and CR +LF?

On the other hand, what values are for "unsigned char *mess" and "unsigned
long mess_length" parameters?

Carlos
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Mon Jun 04, 2012 11:23 pm     Reply with quote

I think that's the source code that runs in the CCS compiler when it's
running under Windows (The executable code may be in CCSC.exe
or in some .DLL file). It's not intended that you run it in a PIC. What do
you need it for ?
Carlos Q



Joined: 10 Dec 2009
Posts: 5

View user's profile Send private message

PostPosted: Mon Jun 04, 2012 11:31 pm     Reply with quote

Thanks again PCM.

I have a bootloader for dspic30f but I would like to validate the whole .hex file before program the pic. I already validate the CRC of each line but the CRC of whole file is important to me.

In some cases my pic goes crazy and I would like to program these extra validation.

Smile
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