joeroback / racechrono-canbus

RaceChrono CAN-bus DIY Device
MIT License
14 stars 6 forks source link

Hello, I tried your codes on a esp32-s3 dev module, this came from the serial port, any idea what's wong? #2

Open RayDutchman opened 11 months ago

RayDutchman commented 11 months ago

Starting up on core 1 Bluetooth LE starting... Bluetooth LE MAC: 34:85:18:bc:fd:29

Bluetooth LE started!

Guru Meditation Error: Core 1 panic'ed (Interrupt wdt timeout on CPU1).

Core 1 register dump: PC : 0x403821d5 PS : 0x00060a34 A0 : 0x8037f26f A1 : 0x3fcebe00
A2 : 0x00000002 A3 : 0x3fc9d800 A4 : 0x00000004 A5 : 0x00060a23
A6 : 0x00060a23 A7 : 0x00000001 A8 : 0x00000001 A9 : 0x00000001
A10 : 0x00000001 A11 : 0x00001023 A12 : 0x0000101f A13 : 0x00060a23
A14 : 0x02cec5f0 A15 : 0x00ffffff SAR
: 0x00000018 EXCCAUSE: 0x00000006
EXCVADDR: 0x00000000 LBEG : 0x40056f5c LEND : 0x40056f72 LCOUNT : 0xffffffff

Backtrace: 0x403821d2:0x3fcebe00 0x4037f26c:0x3fcebe40 0x42009829:0x3fcebe70 0x42003331:0x3fcebea0 0x4200336d:0x3fcebf50 0x42003045:0x3fcec030 0x42009f7a:0x3fcec060

Core 0 register dump: PC : 0x420928ae PS : 0x00060834 A0 : 0x82010940 A1 : 0x3fcf4730
A2 : 0x00000000 A3 : 0x4207c21c A4 : 0x00060120 A5 : 0x80000000
A6
: 0x02c98320 A7 : 0x00ffffff A8 : 0x8201047a A9 : 0x3fcf4700
A10 : 0x00000000 A11 : 0x3fc98310 A12 : 0x3fc98310 A13 : 0x00000000
A14 : 0x00060120 A15 : 0x00000000 SAR : 0x0000001d EXCCAUSE: 0x00000006
EXCVADDR: 0x00000000 LBEG : 0x00000000 LEND : 0x00000000 LCOUNT : 0x00000000

Backtrace: 0x420928ab:0x3fcf4730 0x4201093d:0x3fcf4750 0x40380728:0x3fcf4770

ELF file SHA256: 50a3a0a7f18cc6b4

Guru Meditation Error: Core 1 panic'ed (Interrupt wdt timeout on CPU1).

Core 1 register dump: PC : 0x40386ae3 PS : 0x00020534 A0 : 0x8206f96a A1 : 0x3fcebc10
A2 : 0x00020523 A3 : 0xa5a5a5a5 A4 : 0x8206f96a A5 : 0x00060525
A6 : 0xfffbfff0 A7 : 0x00000046 A8 : 0x3fc98c34 A9 : 0x00000001
A10 : 0x60000000 A11 : 0x00000001 A12 : 0x0000000a A13 : 0x3fcebbfc
A14 : 0x00000001 A15 : 0x3fcf4770 SAR : 0x0000000a EXCCAUSE: 0x000 00006
EXCVADDR: 0x00000000 LBEG : 0x400570e8 LEND : 0x400570f3 LCOUNT : 0x00000000

Backtrace: 0x40386ae0:0x3fcebc10 0x4206f967:0x3fcebc20 0x4206ff69:0x3fcebc40 0x42010e1a:0x3fcebc60 0x4201110e:0x3fcebcd0 0x40377331:0x3fcebd20 0x40376cc0:0x3fcebd40 0x00040022:0x3fcebe00 |<-CORRUPTED

Core 0 register dump: PC : 0x420928ae PS : 0x00060834 A0 : 0x82010940 A1 : 0x3fcf4730
A2 : 0x00000000 A3 : 0x4207c21c A4 : 0x00060120 A5 : 0x80000000

A6 : 0x02c98320 A7 : 0x00ffffff A8 : 0x8201047a A9 : 0x3fcf4700
A10 : 0x00000000 A11 : 0x3fc98310 A12 : 0x3fc98310 A13 : 0x00000000
A14 : 0x00060120 A15 : 0x00000000 SAR : 0x0000001d EXCCAUSE: 0x00000006
EXCVADDR: 0x00000000 LBEG : 0x00000000 LEND : 0x00000000 LCOUNT : 0x00000000

Backtrace: 0x420928ab:0x3fcf4730 0x4201093d:0x3fcf4750 0x40380728:0x3fcf4770

ELF file SHA256: 50a3a0a7f18cc6b4

Re-entered core dump! Exc eption happened during core dump! Rebooting... ESP-ROM:esp32s3-20210327 Build:Mar 27 2021 rst:0xc (RTC_SW_CPU_RST),boot:0x2a (SPI_FAST_FLASH_BOOT) Saved PC:0x4201101a SPIWP:0xee mode:DIO, clock div:1 load:0x3fce3808,len:0x44c load:0x403c9700,len:0xbe4 load:0x403cc700,len:0x2a68 entry 0x403c98d4

joeroback commented 11 months ago

hrm, could it be your core settings?

https://github.com/joeroback/racechrono-canbus/blob/trunk/docs/Arduino.md

its important both settings are set to core 1, all the can bus interrupts need to run on core 1, and all the bluetooth interrupts and callbacks need to run on core 0 (the arduino default for BLE is core 0)

--

it could possibly be my latest changes for BMW codes, you could try reverting to the previous commit, https://github.com/joeroback/racechrono-canbus/commit/ef1d9c22a980c49ff87cc0c17591966e93dd0b6a

i was adding those new BMW codes, but at the same time trying to bootstrap porsche 992 support, so maybe i broke something unintentionally