NMEA2000 icon indicating copy to clipboard operation
NMEA2000 copied to clipboard

Problem compiling example ActisenseListenerSender on Arduino due board

Open Tur-Thure opened this issue 3 years ago • 2 comments

I try to compile example ActisenseListenerSender in NMEA2000 downloaded from Github. And I get the following error below. What am I doing wrong?

C:\Users\ULundqvist\Documents\Arduino\libraries\NMEA2000_due\NMEA2000_due.cpp: In member function 'virtual bool tNMEA2000_due::CANOpen()': C:\Users\ULundqvist\Documents\Arduino\libraries\NMEA2000_due\NMEA2000_due.cpp:87:39: error: 'class CANRaw' has no member named 'getNumRxBoxes' for (mailbox = 0; mailbox < CANbus->getNumRxBoxes()-1; mailbox++) { ^ C:\Users\ULundqvist\Documents\Arduino\libraries\NMEA2000_due\NMEA2000_due.cpp:91:28: error: 'class CANRaw' has no member named 'getNumRxBoxes' for (; mailbox < CANbus->getNumRxBoxes(); mailbox++) { ^ exit status 1 Error compiling for board Arduino Due (Native USB Port).

Tur-Thure avatar Sep 24 '21 21:09 Tur-Thure

You have wrong due_can library. Remove it and download it from my git and install.

ttlappalainen avatar Sep 25 '21 02:09 ttlappalainen

Thx, now the compilation work :)

Tur-Thure avatar Sep 25 '21 06:09 Tur-Thure