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

different PICS same code

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








different PICS same code
PostPosted: Mon Oct 23, 2006 5:37 pm     Reply with quote

I have a situation where I have some boards with a PIC18F2620 and other boards with a PIC18F2525. This was an inadvertant manufacturing error. so now i unfortunately have 2 sets of code. One for each PIC. they are identical except for the #include line specifying the processor. The programmer issues a failure if I try to load the 2620 code into a 2525 processor. But no failure is issued if I load the 2525 code into a 2620 processor. It all seems to be working properly but i am wary of loading the 2525 version into the 2620. Is there something I'm missing? I am assuming that because the 2620 has 64K and the 2525 has 48K of memory that the larger memory(2620) will accept the smaller memory program(2525). But the other way around fails because the verify part of programming is expecting 64K of memeory and it only gets to 48K.

I hope i've expalined this well.
any thoughts would be appreciated
Thanks
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Mon Oct 23, 2006 5:50 pm     Reply with quote

Why not just create two HEX files -- one for the 18F2620 and one for the
18F2525. Then program the appropriate file into the each board type.
asmallri



Joined: 12 Aug 2004
Posts: 1635
Location: Perth, Australia

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

PostPosted: Mon Oct 23, 2006 7:49 pm     Reply with quote

Unless you have something in your code that specifically reads the chip ID to see it is a 2620 then you have no problem. These are the same chips differentiated by the amount of program memory. You can use the 2525 image on the 2620.

This is not uncommon.
_________________
Regards, Andrew

http://www.brushelectronics.com/software
Home of Ethernet, SD card and Encrypted Serial Bootloaders for PICs!!
Guest








PostPosted: Tue Oct 24, 2006 7:06 am     Reply with quote

thanks asmaralli. this is what i thought. The 2 separate files is a solution also but these units are sealed and there is no easy/efficient way to identify what chip is on the board.

Thanks for your input guys
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