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

CCS Ver 3.249 and PIC 18F2523

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



Joined: 28 Apr 2004
Posts: 14

View user's profile Send private message

CCS Ver 3.249 and PIC 18F2523
PostPosted: Sun Jun 17, 2007 4:37 am     Reply with quote

Hi !

I have an old CCS compiler version (3.249) and I need to compile a code for a PIC 18F2523, but in the list of supported PIC this model there isn't.

Is it possibile use this version of compiler or I have to upgrade ?

If it's possibile how I can do it ?

thanks
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Sun Jun 17, 2007 1:26 pm     Reply with quote

If you have the full CCS IDE (PCWH), then you could use the Device
Editor to create an entry for the 18F2523. You could make a copy
of a PIC that is very similar to that one and rename it to 18F2523.
Then edit the new database entry to incorporate the features of the
18F2523. I looked at the PICs on Microchip's website and it looks
like the 18F2510 would be a good choice to use as a base for the new
entry. It's very similar to the 18F2523 and it exists in PCH vs. 3.249.

I don't have the full IDE, so I can't help you to use the Device Editor.

-----

Actually, maybe I do have it. I started up the CCS PCWH demo
(vs. 4.032d) and it does have the Device Editor in it. There may be
some difference between this version and 3.249, but I was easily able
to make a copy of the 18F2510 entry and save it as a new entry for
the 18F2523.
Guest








PostPosted: Wed Apr 15, 2009 2:56 am     Reply with quote

hi

I'd like to use this chip 18F2523 with 3.249, also.

Would you copy the header file 18F2510.h and rename it 18F2523.h and then edit it for 2523?

Thanks
Ttelmah
Guest







PostPosted: Wed Apr 15, 2009 4:09 am     Reply with quote

The 'header file', has little to do with allowing support for a chip. Changing entries in it, will do little, except stop code from working....
Key is that compiler uses a '.dat' file, to contain the details of peripherals, memory configuration, fuses etc., for a chip. The device editor in the windows vrsion, allows you to edit this file, adding entries or updating them. Since large amounts of the entries are 'common' to similar chips, this allows a chip to be added, by loading the entry for a 'similar' chip. then saving it under the new name, and editing the details required. Only once this is done, do you touch the header file, changing it's entries to match the changes made.
Options are:
1) For very similar chips, if one exists with _extra_ features, use this, without any changes, but avoid these extras. Then on the final hex file, edit the device name. This works with any compiler.
2) On the Windows compiler only (see PCM programmers comment about the IDE), copy the entry from one, preferably with extra features, and turn these off. Then remove the corresponding lines from the header.
3) Again on the Windows compiler only, find a chip with features missing, but as close as possible. Find another with the 'extra' features. Turn on all the features in the device editor, on a 'new' entry, copying the settings from both chips. Do a similar 'merge' in the header files adding the missing parts from the second.

Best Wishes
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