Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

arduino-esp32 3.1.0-RC2 and ACAN2517 #25

Open
EarlVadim opened this issue Nov 5, 2024 · 1 comment
Open

arduino-esp32 3.1.0-RC2 and ACAN2517 #25

EarlVadim opened this issue Nov 5, 2024 · 1 comment

Comments

@EarlVadim
Copy link

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.

@EarlVadim
Copy link
Author

Hello!! Anybode here??
Final release 3.1.0 also don't work with CAN-bus.

Init Code

void CAN1_INIT() {  
   Serial.println("CAN1");

   SPI.begin (MCP2517_SCK, MCP2517_MISO, MCP2517_MOSI) ;
   Serial.println("SPI started");

  ACAN2517Settings settings2517 (ACAN2517Settings::OSC_40MHz, 500 * 1000) ; // CAN bit rate 125 kb/s
  settings2517.mRequestedMode = ACAN2517Settings::ListenOnly ; // Select loopback mode
  vTaskDelay(50) ;
  const uint32_t errorCode2517 = can.begin (settings2517, NULL) ;
  Serial.println("CAN1 started");

Log

16:51:01.193 -> 
16:51:01.309 -> CAN1
16:51:01.309 -> SPI started
16:51:01.732 -> 
16:51:01.732 -> assert failed: prvInitialiseNewTask tasks.c:1088 (uxPriority < ( 25 ))
16:51:01.732 -> 
16:51:01.732 -> 
16:51:01.732 -> Backtrace: 0x4037687e:0x3fcc34f0 0x40383311:0x3fcc3510 0x4038a039:0x3fcc3530 0x4038534a:0x3fcc3660 0x40386c00:0x3fcc3690 0x4200c9a8:0x3fcc36d0 0x4200ca3e:0x3fcc3710 0x420033bd:0x3fcc3750 0x420034a0:0x3fcc3790 0x403844a6:0x3fcc37d0
16:51:01.732 -> 
16:51:01.732 -> 
16:51:01.732 -> 
16:51:01.732 -> 
16:51:01.732 -> ELF file SHA256: 8c312145b
16:51:01.732 -> 

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant