pierremolinaro / acan2517

Arduino CAN driver for MCP2517FD CAN Controller (in CAN 2.0B mode)
MIT License
22 stars 11 forks source link

arduino-esp32 3.1.0-RC2 and ACAN2517 #25

Open EarlVadim opened 2 weeks ago

EarlVadim commented 2 weeks ago

A-IDE 2.3.3, ESP32-S3 I have a project using an external CAN controller MCP2518. On the current version 3.0.7 everything compiles and works, but on the RC2 version the same project compiles, but when trying to initialize the CAN, the controller reboots abnormally.

`

define MCP2517_CS 10

define MCP2517_MOSI 11

define MCP2517_SCK 12

define MCP2517_MISO 13

void CAN1_INIT() { SPI.begin (MCP2517_SCK, MCP2517_MISO, MCP2517_MOSI) ; Serial.println("SPI started"); ACAN2517Settings settings2517 (ACAN2517Settings::OSC_40MHz, 500 * 1000) ; settings2517.mRequestedMode = ACAN2517Settings::ListenOnly ; const uint32_t errorCode2517 = can.begin (settings2517, NULL) ;

Here ERROR without any messages and reboot `

I don't have any logs. I deleted RC2 and reinstalling is quite complicated. I just want to let you know that you have seriously messed something up in the new version A-esp32.