View previous topic :: View next topic |
Author |
Message |
Jon Fick
Joined: 09 Dec 2003 Posts: 5
|
Passing correct device name to programmer |
Posted: Wed Feb 11, 2004 4:56 pm |
|
|
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
|
|
Posted: Wed Feb 11, 2004 5:15 pm |
|
|
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
|
|
Posted: Thu Feb 12, 2004 9:11 am |
|
|
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 |
|
|
|