Collin-
I installed all of the latest libraries, pretty sure I did everything correctly…
due_can-master
can_common-master
mcp2515
Single-Wire-Can_mcp2515
are all in my /libraries folder.
However when I try to compile M2RET, it gives a boatload of compiling errors. I went through carefully and made sure I have the latest, and no duplicate libraries…any ideas? I’d really love to try out SavvyCAN with all three busses working, or at least one high speed and the MCP2515/SWCAN…
thanks again for all of your hard work!
WARNING: Category '' in library CANBus is not valid. Setting to 'Uncategorized'
WARNING: Category '' in library SoftwareSerial is not valid. Setting to 'Uncategorized'
WARNING: Category '' in library Wire is not valid. Setting to 'Uncategorized'
M2RET:388: error: variable or field 'sendFrame' declared void
void sendFrame(CAN_COMMON *bus, CAN_FRAME &frame)
^
M2RET:388: error: 'CAN_COMMON' was not declared in this scope
M2RET:388: error: 'bus' was not declared in this scope
void sendFrame(CAN_COMMON *bus, CAN_FRAME &frame)
^
M2RET:388: error: expected primary-expression before '&' token
void sendFrame(CAN_COMMON *bus, CAN_FRAME &frame)
^
M2RET:388: error: 'frame' was not declared in this scope
void sendFrame(CAN_COMMON *bus, CAN_FRAME &frame)
^
C:\Users\Ben\Dropbox\Arduino\libraries\M2RET\M2RET.ino: In function 'void setup()':
M2RET:282: error: 'class CANRaw' has no member named 'setListenOnlyMode'
Can0.setListenOnlyMode(true);
^
M2RET:284: error: 'class CANRaw' has no member named 'setListenOnlyMode'
Can0.setListenOnlyMode(false);
^
M2RET:294: error: 'class CANRaw' has no member named 'setListenOnlyMode'
Can1.setListenOnlyMode(true);
^
M2RET:296: error: 'class CANRaw' has no member named 'setListenOnlyMode'
Can1.setListenOnlyMode(false);
^
M2RET:310: error: 'class SWcan' has no member named 'setListenOnlyMode'
SWCAN.setListenOnlyMode(true);
^
M2RET:314: error: 'class SWcan' has no member named 'setListenOnlyMode'
SWCAN.setListenOnlyMode(false);
^
C:\Users\Ben\Dropbox\Arduino\libraries\M2RET\M2RET.ino: At global scope:
M2RET:388: error: variable or field 'sendFrame' declared void
void sendFrame(CAN_COMMON *bus, CAN_FRAME &frame)
^
M2RET:388: error: 'CAN_COMMON' was not declared in this scope
M2RET:388: error: 'bus' was not declared in this scope
void sendFrame(CAN_COMMON *bus, CAN_FRAME &frame)
^
M2RET:388: error: expected primary-expression before '&' token
void sendFrame(CAN_COMMON *bus, CAN_FRAME &frame)
^
M2RET:388: error: 'frame' was not declared in this scope
void sendFrame(CAN_COMMON *bus, CAN_FRAME &frame)
^
C:\Users\Ben\Dropbox\Arduino\libraries\M2RET\M2RET.ino: In function 'void sendDigToggleMsg()':
M2RET:614: error: 'sendFrame' was not declared in this scope
sendFrame(&Can0, frame);
^
M2RET:618: error: 'sendFrame' was not declared in this scope
sendFrame(&Can1, frame);
^
C:\Users\Ben\Dropbox\Arduino\libraries\M2RET\M2RET.ino: In function 'void loop()':
M2RET:705: error: no matching function for call to 'SWcan::GetRXFrame(CAN_FRAME&)'
if (SWCAN.GetRXFrame(incoming)) {
^
C:\Users\Ben\Dropbox\Arduino\libraries\M2RET\M2RET.ino:705:34: note: candidate is:
In file included from C:\Users\Ben\Dropbox\Arduino\libraries\Single-Wire-CAN-mcp2515\src/MCP2515_sw_can.h:34:0,
from C:\Users\Ben\Dropbox\Arduino\libraries\M2RET\M2RET.ino:37:
C:\Users\Ben\Dropbox\Arduino\libraries\mcp2515\src/MCP2515.h:67:7: note: bool MCP2515::GetRXFrame(Frame&)
bool GetRXFrame(Frame &frame);
^
C:\Users\Ben\Dropbox\Arduino\libraries\mcp2515\src/MCP2515.h:67:7: note: no known conversion for argument 1 from 'CAN_FRAME' to 'Frame&'
M2RET:957: error: 'sendFrame' was not declared in this scope
if (out_bus == 0) sendFrame(&Can0, build_out_frame);
^
M2RET:958: error: 'sendFrame' was not declared in this scope
if (out_bus == 1) sendFrame(&Can1, build_out_frame);
^
M2RET:959: error: 'sendFrame' was not declared in this scope
if (out_bus == 2) sendFrame(&SWCAN, build_out_frame);
^
Multiple libraries were found for "SPI.h"
Used: C:\Users\Ben\AppData\Local\Arduino15\packages\arduino\hardware\sam\1.6.11\libraries\SPI
Not used: C:\Users\Ben\Dropbox\Arduino\libraries\SPI
Multiple libraries were found for "lin_stack.h"
Used: C:\Users\Ben\Dropbox\Arduino\libraries\LIN
Not used: C:\Users\Ben\AppData\Local\Arduino15\packages\macchina\hardware\sam\0.2.1\libraries\LIN
Not used: C:\Users\Ben\AppData\Local\Arduino15\packages\macchina\hardware\sam\0.2.1\libraries\LIN
Not used: C:\Users\Ben\AppData\Local\Arduino15\packages\macchina\hardware\sam\0.2.1\libraries\LIN
Not used: C:\Users\Ben\AppData\Local\Arduino15\packages\macchina\hardware\sam\0.2.1\libraries\LIN
Multiple libraries were found for "MCP2515_sw_can.h"
Used: C:\Users\Ben\Dropbox\Arduino\libraries\Single-Wire-CAN-mcp2515
Not used: C:\Users\Ben\AppData\Local\Arduino15\packages\macchina\hardware\sam\0.2.1\libraries\Single-Wire-CAN-mcp2515
Not used: C:\Users\Ben\AppData\Local\Arduino15\packages\macchina\hardware\sam\0.2.1\libraries\Single-Wire-CAN-mcp2515
Not used: C:\Users\Ben\AppData\Local\Arduino15\packages\macchina\hardware\sam\0.2.1\libraries\Single-Wire-CAN-mcp2515
Not used: C:\Users\Ben\AppData\Local\Arduino15\packages\macchina\hardware\sam\0.2.1\libraries\Single-Wire-CAN-mcp2515
Multiple libraries were found for "MCP2515.h"
Used: C:\Users\Ben\Dropbox\Arduino\libraries\mcp2515
Not used: C:\Users\Ben\AppData\Local\Arduino15\packages\macchina\hardware\sam\0.2.1\libraries\mcp2515
Multiple libraries were found for "due_can.h"
Used: C:\Users\Ben\AppData\Local\Arduino15\packages\macchina\hardware\sam\0.2.1\libraries\due_can
Not used: C:\Users\Ben\Dropbox\Arduino\libraries\due_can-master
Not used: C:\Users\Ben\Dropbox\Arduino\libraries\arduino_441020
Multiple libraries were found for "Arduino_Due_SD_HSMCI.h"
Used: C:\Users\Ben\Dropbox\Arduino\libraries\M2_SD_HSMCI
Not used: C:\Users\Ben\AppData\Local\Arduino15\packages\macchina\hardware\sam\0.2.1\libraries\M2_SD_HSMCI
Not used: C:\Users\Ben\AppData\Local\Arduino15\packages\macchina\hardware\sam\0.2.1\libraries\M2_SD_HSMCI
Not used: C:\Users\Ben\AppData\Local\Arduino15\packages\macchina\hardware\sam\0.2.1\libraries\M2_SD_HSMCI
Not used: C:\Users\Ben\AppData\Local\Arduino15\packages\macchina\hardware\sam\0.2.1\libraries\M2_SD_HSMCI
Multiple libraries were found for "due_wire.h"
Used: C:\Users\Ben\Dropbox\Arduino\libraries\due_wire
Not used: C:\Users\Ben\AppData\Local\Arduino15\packages\macchina\hardware\sam\0.2.1\libraries\due_wire
exit status 1
variable or field 'sendFrame' declared void