NMEA2000_esp32 icon indicating copy to clipboard operation
NMEA2000_esp32 copied to clipboard

NMEA2000_esp32.cpp not compiling

Open lurno opened this issue 1 year ago • 0 comments

Using the Adafruit Metro ESP32-S2. On initial attempt got following errors: /home/lasse/Arduino/libraries/NMEA2000_esp32/NMEA2000_esp32.cpp:124:23: error: 'PERIPH_CAN_MODULE' was not declared in this scope; did you mean 'PERIPH_USB_MODULE'? /home/lasse/Arduino/libraries/NMEA2000_esp32/NMEA2000_esp32.cpp:128:27: error: 'DPORT_PERIP_CLK_EN_REG' was not declared in this scope; did you mean 'SYSTEM_PERIP_CLK_EN1_REG'? /home/lasse/Arduino/libraries/NMEA2000_esp32/NMEA2000_esp32.cpp:128:51: error: 'DPORT_CAN_CLK_EN' was not declared in this scope /home/lasse/Arduino/libraries/NMEA2000_esp32/NMEA2000_esp32.cpp:129:29: error: 'DPORT_PERIP_RST_EN_REG' was not declared in this scope; did you mean 'SYSTEM_PERIP_RST_EN1_REG'? /home/lasse/Arduino/libraries/NMEA2000_esp32/NMEA2000_esp32.cpp:129:53: error: 'DPORT_CAN_RST' was not declared in this scope /home/lasse/Arduino/libraries/NMEA2000_esp32/NMEA2000_esp32.cpp:133:30: error: 'CAN_RX_IDX' was not declared in this scope; did you mean 'TWAI_RX_IDX'? /home/lasse/Arduino/libraries/NMEA2000_esp32/NMEA2000_esp32.cpp:194:20: error: 'ETS_CAN_INTR_SOURCE' was not declared in this scope; did you mean 'ETS_MAX_INTR_SOURCE'? /home/lasse/Arduino/libraries/NMEA2000_esp32/NMEA2000_esp32.cpp:201:27: error: 'CAN_TX_IDX' was not declared in this scope; did you mean 'TWAI_TX_IDX'? Compilation error: exit status 1

Compiling successful after correcting following the given sugestions. RGDS

lurno avatar Nov 25 '24 21:11 lurno