Hallo zusammen,

versuche mit Hilfe meines Arduino UNOs und eines CANdiy-Shields die CAN-Daten meines Autos aus-/mitzulesen. Hierzu habe ich das Beispielprogramm vom unten aufgeführten Link heruntergeladen und die Libs entsprechend kopiert. Leider funktioniert das Kompilieren des Quellcodes nicht, die Datei "mcp2515.c" hat Funktionen die mehr Übergabeparameter erwartet.

https://code.google.com/p/mechanic/downloads/list



D:\Programme\Arduino\hardware\arduino\cores\arduin o\can\mcp2515.c:65:18: error: macro "_XRS" requires 2 arguments, but only 1 given
D:\Programme\Arduino\hardware\arduino\cores\arduin o\can\mcp2515.c: In function 'mcp2515_write_register':
D:\Programme\Arduino\hardware\arduino\cores\arduin o\can\mcp2515.c:65: error: '_XRS' undeclared (first use in this function)
D:\Programme\Arduino\hardware\arduino\cores\arduin o\can\mcp2515.c:65: error: (Each undeclared identifier is reported only once
D:\Programme\Arduino\hardware\arduino\cores\arduin o\can\mcp2515.c:65: error: for each function it appears in.)
D:\Programme\Arduino\hardware\arduino\cores\arduin o\can\mcp2515.c:71:16: error: macro "_XS" requires 2 arguments, but only 1 given
D:\Programme\Arduino\hardware\arduino\cores\arduin o\can\mcp2515.c:71: error: '_XS' undeclared (first use in this function)
D:\Programme\Arduino\hardware\arduino\cores\arduin o\can\mcp2515.c:79:18: error: macro "_XRS" requires 2 arguments, but only 1 given
D:\Programme\Arduino\hardware\arduino\cores\arduin o\can\mcp2515.c: In function 'mcp2515_read_register':
D:\Programme\Arduino\hardware\arduino\cores\arduin o\can\mcp2515.c:79: error: '_XRS' undeclared (first use in this function)
D:\Programme\Arduino\hardware\arduino\cores\arduin o\can\mcp2515.c:86:16: error: macro "_XS" requires 2 arguments, but only 1 given
D:\Programme\Arduino\hardware\arduino\cores\arduin o\can\mcp2515.c:86: error: '_XS' undeclared (first use in this function)
D:\Programme\Arduino\hardware\arduino\cores\arduin o\can\mcp2515.c:94:18: error: macro "_XRS" requires 2 arguments, but only 1 given
D:\Programme\Arduino\hardware\arduino\cores\arduin o\can\mcp2515.c: In function 'mcp2515_bit_modify':
D:\Programme\Arduino\hardware\arduino\cores\arduin o\can\mcp2515.c:94: error: '_XRS' undeclared (first use in this function)
D:\Programme\Arduino\hardware\arduino\cores\arduin o\can\mcp2515.c:101:16: error: macro "_XS" requires 2 arguments, but only 1 given
D:\Programme\Arduino\hardware\arduino\cores\arduin o\can\mcp2515.c:101: error: '_XS' undeclared (first use in this function)
D:\Programme\Arduino\hardware\arduino\cores\arduin o\can\mcp2515.c:109:18: error: macro "_XRS" requires 2 arguments, but only 1 given
D:\Programme\Arduino\hardware\arduino\cores\arduin o\can\mcp2515.c: In function 'mcp2515_read_status':
D:\Programme\Arduino\hardware\arduino\cores\arduin o\can\mcp2515.c:109: error: '_XRS' undeclared (first use in this function)
D:\Programme\Arduino\hardware\arduino\cores\arduin o\can\mcp2515.c:114:16: error: macro "_XS" requires 2 arguments, but only 1 given
D:\Programme\Arduino\hardware\arduino\cores\arduin o\can\mcp2515.c:114: error: '_XS' undeclared (first use in this function)
D:\Programme\Arduino\hardware\arduino\cores\arduin o\can\mcp2515.c:124:16: error: macro "_XS" requires 2 arguments, but only 1 given
D:\Programme\Arduino\hardware\arduino\cores\arduin o\can\mcp2515.c: In function 'mcp2515_init':
D:\Programme\Arduino\hardware\arduino\cores\arduin o\can\mcp2515.c:124: error: '_XS' undeclared (first use in this function)
D:\Programme\Arduino\hardware\arduino\cores\arduin o\can\mcp2515.c:125:23: error: macro "_XSO" requires 2 arguments, but only 1 given
D:\Programme\Arduino\hardware\arduino\cores\arduin o\can\mcp2515.c:125: error: '_XSO' undeclared (first use in this function)
D:\Programme\Arduino\hardware\arduino\cores\arduin o\can\mcp2515.c:127:13: error: macro "_XRS" requires 2 arguments, but only 1 given
D:\Programme\Arduino\hardware\arduino\cores\arduin o\can\mcp2515.c:127: error: '_XRS' undeclared (first use in this function)
D:\Programme\Arduino\hardware\arduino\cores\arduin o\can\mcp2515.c:128:14: error: macro "_XRS" requires 2 arguments, but only 1 given
D:\Programme\Arduino\hardware\arduino\cores\arduin o\can\mcp2515.c:129:14: error: macro "_XRS" requires 2 arguments, but only 1 given
D:\Programme\Arduino\hardware\arduino\cores\arduin o\can\mcp2515.c:131:18: error: macro "_XSO" requires 2 arguments, but only 1 given
D:\Programme\Arduino\hardware\arduino\cores\arduin o\can\mcp2515.c:132:19: error: macro "_XSO" requires 2 arguments, but only 1 given
D:\Programme\Arduino\hardware\arduino\cores\arduin o\can\mcp2515.c:133:18: error: macro "_XSI" requires 2 arguments, but only 1 given
D:\Programme\Arduino\hardware\arduino\cores\arduin o\can\mcp2515.c:133: error: '_XSI' undeclared (first use in this function)
D:\Programme\Arduino\hardware\arduino\cores\arduin o\can\mcp2515.c:135:23: error: macro "_XSI" requires 2 arguments, but only 1 given
D:\Programme\Arduino\hardware\arduino\cores\arduin o\can\mcp2515.c:136:17: error: macro "_XS" requires 2 arguments, but only 1 given
D:\Programme\Arduino\hardware\arduino\cores\arduin o\can\mcp2515.c:144:18: error: macro "_XRS" requires 2 arguments, but only 1 given
D:\Programme\Arduino\hardware\arduino\cores\arduin o\can\mcp2515.c:146:16: error: macro "_XS" requires 2 arguments, but only 1 given
D:\Programme\Arduino\hardware\arduino\cores\arduin o\can\mcp2515.c:152:18: error: macro "_XRS" requires 2 arguments, but only 1 given
D:\Programme\Arduino\hardware\arduino\cores\arduin o\can\mcp2515.c:172:16: error: macro "_XS" requires 2 arguments, but only 1 given
D:\Programme\Arduino\hardware\arduino\cores\arduin o\can\mcp2515.c:176:16: error: macro "_XS" requires 2 arguments, but only 1 given
D:\Programme\Arduino\hardware\arduino\cores\arduin o\can\mcp2515.c:201: error: 'for' loop initial declaration used outside C99 mode
D:\Programme\Arduino\hardware\arduino\cores\arduin o\can\mcp2515.c:234:29: error: macro "_XR" requires 2 arguments, but only 1 given
D:\Programme\Arduino\hardware\arduino\cores\arduin o\can\mcp2515.c: In function 'mcp2515_check_message':
D:\Programme\Arduino\hardware\arduino\cores\arduin o\can\mcp2515.c:234: error: '_XR' undeclared (first use in this function)
D:\Programme\Arduino\hardware\arduino\cores\arduin o\can\mcp2515.c:272:18: error: macro "_XRS" requires 2 arguments, but only 1 given
D:\Programme\Arduino\hardware\arduino\cores\arduin o\can\mcp2515.c: In function 'mcp2515_get_message':
D:\Programme\Arduino\hardware\arduino\cores\arduin o\can\mcp2515.c:272: error: '_XRS' undeclared (first use in this function)
D:\Programme\Arduino\hardware\arduino\cores\arduin o\can\mcp2515.c:299:16: error: macro "_XS" requires 2 arguments, but only 1 given
D:\Programme\Arduino\hardware\arduino\cores\arduin o\can\mcp2515.c:299: error: '_XS' undeclared (first use in this function)
D:\Programme\Arduino\hardware\arduino\cores\arduin o\can\mcp2515.c:341:18: error: macro "_XRS" requires 2 arguments, but only 1 given
D:\Programme\Arduino\hardware\arduino\cores\arduin o\can\mcp2515.c: In function 'mcp2515_send_message':
D:\Programme\Arduino\hardware\arduino\cores\arduin o\can\mcp2515.c:341: error: '_XRS' undeclared (first use in this function)
D:\Programme\Arduino\hardware\arduino\cores\arduin o\can\mcp2515.c:372:16: error: macro "_XS" requires 2 arguments, but only 1 given
D:\Programme\Arduino\hardware\arduino\cores\arduin o\can\mcp2515.c:372: error: '_XS' undeclared (first use in this function)
D:\Programme\Arduino\hardware\arduino\cores\arduin o\can\mcp2515.c:377:18: error: macro "_XRS" requires 2 arguments, but only 1 given
D:\Programme\Arduino\hardware\arduino\cores\arduin o\can\mcp2515.c:380:16: error: macro "_XS" requires 2 arguments, but only 1 given



Hatte jemand schon mal das gleiche Problem?

Danke schon mal im Voraus

Viele Grüße
micro5