|
|
View previous topic :: View next topic |
Author |
Message |
stmarquis
Joined: 30 Apr 2007 Posts: 2
|
Compiling examples for PCB included w/mplab |
Posted: Sun May 13, 2007 11:11 pm |
|
|
I have PCM, but just d/l MPLAB 7.5, and was surprised to see pcb was included. I installed MPLAB, and tried to compile ex_rtc.c using pcb. I got the errors that there is an undefined or undeclared define set_tris_d, in the files lcd.c and kbd.c. sorry I didn't just cut and paste, but I was afraid my pcm was screwed up too, so I went back and setup for pcm to make sure it still worked. I don't understand how I'm supposed to use the pcb compiler. I use pcm, and don't have any problems. has anybody else seen this behavior or can you tell me what I'm doing wrong? It would be nice to use C to program the X56, etc, instead of using assembly. I tried the plug-in program, but I think mplab had already taken care of it, because the suite_ccsc.dll hadn't changed versions, but it is version 1.14 in pcm, but 1.15 in thirdParty/picc under mplab. I sorry if this is a really neewbie question, but I have used pcm and mplab since version 5 or 6 of mplab, and have never had a problem before. If you need more specific info, I'l be happy to recreate my disaster for you, and post it, but I thought I might be just missing something simple, and someone could help. Thanks in advance!
Steve Marquis
Applied Prog & Tech |
|
|
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
|
Posted: Sun May 13, 2007 11:29 pm |
|
|
Quote: |
I got the errors that there is an undefined or undeclared define
set_tris_d, in the files lcd.c and kbd.c |
Before you start, you need to know that most of the chips supported by
PCB don't have a Port D.
If you want to compile those drivers for Port B, then you need to
configure the drivers for Port B by putting the following #define
statement above the #include statement for the driver. Example:
Code: |
#define use_portb_kbd 1
#include <kbd.c>
void main()
{ |
|
|
|
stmarquis
Joined: 30 Apr 2007 Posts: 2
|
PCB Problems |
Posted: Tue May 15, 2007 8:39 pm |
|
|
Thanks for your help! I thought port d was strange, but I figured that the examples files included would compile. I saw that the devices file is shorter than the regular PCB, but again, I assumed... I know, when you assume... Thanks again for the reply, and I'll try somthing that is less i/o intensive
Stephen Marquis
Applied Proramming & Technology |
|
|
|
|
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
|