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

Passing correct device name to programmer

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



Joined: 09 Dec 2003
Posts: 5

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

Passing correct device name to programmer
PostPosted: Wed Feb 11, 2004 4:56 pm     Reply with quote

I've searched archive but have not seen an answer to this one...

I have a programmer (Melabs Serial Programmer) that needs to be told the device type it's programming (such as "PIC16F628A"). It stops if that type doesn't match what it has in it's socket. I invoke the programmer via it's command line parameters through the CCS compiler's PROGRAM button.

The CCS compiler has device files only for the base names (such as "PIC16F628"), not for the variants such as "A".

So, when I compile a progam for a 628 or 628A, the compiler only passes the 628 to the programmer, and the programmer stops unless I have it set up to skip the check.) I've tried to rename include files, etc, to fool CCS into passing the full device (with "A") but have failed thus far.

Has anyone seen this scenario? Solved it?

Thanks for any help.
_________________
Jon Fick
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Wed Feb 11, 2004 5:15 pm     Reply with quote

Quote:
The CCS compiler has device files only for the base names
(such as "PIC16F628"), not for the variants such as "A".

The current version, 3.184, does have this. What version are you using ?
Code:
Directory of C:\Program Files\PICC\Devices
16F628   H           6,563  01-13-04 11:50a 16F628.h
16F628A  H           6,541  01-13-04 11:50a 16F628A.h

These files have:
#device PIC16F628
and
#device PIC16F628A
respectively.

What program are you using to run your programmer ?
Jon Fick



Joined: 09 Dec 2003
Posts: 5

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

PostPosted: Thu Feb 12, 2004 9:11 am     Reply with quote

I don't have the current version...that's for sure! Looks like it's probably time to bite the bullet and upgrade. It looks like the extra include files as well as the device name variants will do exactly what I'm trying to do. Thanks.

Jon
_________________
Jon Fick
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