arduino-CAN icon indicating copy to clipboard operation
arduino-CAN copied to clipboard

Update ESP32SJA1000.cpp

Open ZillKhan opened this issue 8 months ago • 6 comments

Resolving CAN driver issue for ESP32S3 variant as it doesn't have dport register available.

ZillKhan avatar Mar 21 '25 06:03 ZillKhan

Hello, Thank you for the fix

were trying it and the below error throws, would be glad if you help

   10 |     #include "soc/system_reg.h"
      |              ^~~~~~~~~~~~~~~~~~
compilation terminated.

exit status 1

Compilation error: exit status 1```


HenokTZA avatar May 08 '25 18:05 HenokTZA

@HenokTZA Hello, Would be glad to help you. To get better understanding which esp32 vairant are you using?

ZillKhan avatar May 09 '25 04:05 ZillKhan

i'm using esp32 s3

HenokTZA avatar May 09 '25 16:05 HenokTZA

@HenokTZA I have rechecked its working on my side as I am able to compile the code using Arduino IDE. Which version of Arduino are you using also are you using the patch-1 branch that I have fixed? Please recheck once again on your side.

Please try using this branch to verify if its working (able to compile any example) https://github.com/ZillKhan/arduino-CAN/tree/patch-1

ZillKhan avatar May 13 '25 10:05 ZillKhan

@HenokTZA The compilation error you have shown 10 | #include "soc/system_reg.h" Shows that the branch you are using doesn't include my fix. Please use the branch-1 from here and try to compile. (https://github.com/ZillKhan/arduino-CAN/tree/patch-1) Let me know if it works.

ZillKhan avatar May 13 '25 11:05 ZillKhan

@HenokTZA The compilation error you have shown 10 | #include "soc/system_reg.h" Shows that the branch you are using doesn't include my fix. Please use the branch-1 from here and try to compile. (https://github.com/ZillKhan/arduino-CAN/tree/patch-1) Let me know if it works.

It works fine,thanks a lot! QQ20250820-225156

Update: After runing on an esp32-c3 board,shows some erro.

ELF file SHA256: 013cf02d9

Rebooting...
ESP-ROM:esp32c3-api1-20210207
Build:Feb  7 2021
rst:0xc (RTC_SW_CPU_RST),boot:0x8 (SPI_FAST_FLASH_BOOT)
Saved PC:0x40380cdc
SPIWP:0xee
mode:DIO, clock div:1
load:0x3fcd5820,len:0x108c
load:0x403cbf10,len:0x9d8
load:0x403ce710,len:0x2ee0
entry 0x403cbf10
Guru Meditation Error: Core  0 panic'ed (Store access fault). Exception was unhandled.

eastwife avatar Aug 20 '25 14:08 eastwife