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

Can bus development kit

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



Joined: 19 Jul 2005
Posts: 3

View user's profile Send private message

Can bus development kit
PostPosted: Tue Jul 19, 2005 6:01 am     Reply with quote

Hi,

I've got a little problem with the can bus development kit. When I want to compile a program (ex_can_ccs_b.c) for the 2nd node (PIC16F876) and the can-mcp2510.c is included; it complains about an error 29 : function definition different from previous version. When I look at can-mcp2510.h the function declaration states an int* in can_get_id and can_set_id. When I change this in can-mcp2510.c, this will generate more errors ???

Excuse me for asking; I'm only an absolute beginner Smile
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Tue Jul 19, 2005 12:49 pm     Reply with quote

You have an older version of the compiler and it has a bug in the CAN
driver files. Here's the version history from can-mcp2510.c that comes
with vs. 3.228:
Quote:
//// Version History ////
//// ////
//// Jul 27 04 - can_init() uses CAN_USE_EXTENDED_ID instead of ////
//// setting all RX filters to extended. ////
//// ////
//// Apr 20 04 - Fixed a compiling problem. ////
//// ////
//// Feb 24 04 - can_get_id() fixed for EID<18:20>. ////
//// ////


I suggest that you email CCS tech support and ask them for the latest
can-*.c and can-*.h files that fix that bug. If you can't get it from CCS
then I can do a file compare on the files and let you know how to fix it,
but try getting it from CCS first.
mavbaby



Joined: 19 Jul 2005
Posts: 3

View user's profile Send private message

PostPosted: Mon Jul 25, 2005 12:39 am     Reply with quote

Thank you, for your quick reply ...
I've emailed support and waiting for an answer from them ...
mavbaby



Joined: 19 Jul 2005
Posts: 3

View user's profile Send private message

PostPosted: Thu Jul 28, 2005 2:17 am     Reply with quote

With the new version of the sourcefiles can-mcp2510.c and can-mcp2510.h the problem is solved. Thank you for the assistance. Smile
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