Skip to content

Conversation

ZillKhan
Copy link

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

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

HenokTZA commented May 8, 2025

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```


@ZillKhan
Copy link
Author

ZillKhan commented May 9, 2025

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

@HenokTZA
Copy link

HenokTZA commented May 9, 2025

i'm using esp32 s3

@ZillKhan
Copy link
Author

@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
Copy link
Author

@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.

@eastwife
Copy link

eastwife commented Aug 20, 2025

@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.

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

Successfully merging this pull request may close these issues.

3 participants