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

CAN with PIC24

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







CAN with PIC24
PostPosted: Wed Nov 28, 2007 1:03 pm     Reply with quote

Have anyone already used CCS CAN libraries with PIC24?

The PIC Wizard creates a code using:
Code:

#include <can-18xxx8.c >

The function
Code:

can_init()

does not give error,
but the
Code:
can_putd(...)

gives the following error at compilation time:

Function used but not defined: ... can_putd SCR=3120

if i change the parameters, the SCR value changes, but it never works!

any idea/hints?

thanks

Rafael
john7188
Guest







PostPosted: Fri Sep 26, 2008 11:24 am     Reply with quote

I'd like to know about CAN w/ the PIC24 as well....

I'm about to work on the CAN portion of a project and don't want to get started without being sure the CCS CAN libraries will work correctly...
John5788



Joined: 08 Apr 2009
Posts: 9

View user's profile Send private message

PostPosted: Mon May 18, 2009 5:22 pm     Reply with quote

i am curious as well
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Mon May 18, 2009 5:42 pm     Reply with quote

The original poster is attempting to use 18F files for the PIC24 PICs.
Use the driver files for the PIC24 series. Here's the location:
Quote:
c:\program files\picc\drivers\can-pic24.c
c:\program files\picc\drivers\can-pic24.h

These files come with the compiler (vs. 4.092).
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