arduino-CAN
arduino-CAN copied to clipboard
Update ESP32SJA1000.cpp
Resolving CAN driver issue for ESP32S3 variant as it doesn't have dport register available.
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 Hello, Would be glad to help you. To get better understanding which esp32 vairant are you using?
i'm using esp32 s3
@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
@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.
@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-1from 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!
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.