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
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
Posted: Tue Jul 19, 2005 12:49 pm
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
Posted: Mon Jul 25, 2005 12:39 am
Thank you, for your quick reply ...
I've emailed support and waiting for an answer from them ...
mavbaby
Joined: 19 Jul 2005 Posts: 3
Posted: Thu Jul 28, 2005 2:17 am
With the new version of the sourcefiles can-mcp2510.c and can-mcp2510.h the problem is solved. Thank you for the assistance.
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