zauberzeug / lizard

Domain-specific language to specify behaviour of microcontroller managed hardware
MIT License
15 stars 5 forks source link

Bootloop #57

Closed Johannes-Thiel closed 1 week ago

Johannes-Thiel commented 4 months ago

When the following script is configured, the esp will Bootloop.

!+s1 = Serial(26,27,115200,1)
!+s2 = Serial(13,4,115200,2)
!+can = Can(32,33,1000000)

When the can is initialized before the Serial, the esp will not Bootloop.

!+can = Can(32,33,1000000)
!+s1 = Serial(26,27,115200,1)
!+s2 = Serial(13,4,115200,2)

Before the the Bootloop follwing error is thrown:

ESP_ERROR_CHECK failed: esp_err_t 0x105 (ESP_ERR_NOT_FOUND) at 0x40093110
file: "IDF/components/driver/twai.c" line 465
func: twai_driver_install
expression: esp_intr_alloc(ETS_TWAI_INTR_SOURCE, g_config->intr_flags, twai_intr_handler_main, NULL, &p_twai_obj->isr_handle)
abort() was called at PC 0x40093113 on core 0
falkoschindler commented 4 months ago

@Johannes-Thiel Do you, by any chance, see a stack trace when abort() is called?

JensOgorek commented 4 months ago

@falkoschindler yes. Backtrace: 0x40081d8a:0x3ffdaaa0 0x4009311d:0x3ffdaac0 0x40098642:0x3ffdaae0 0x40093113:0x3ffdab50 0x40146f78:0x3ffdab70 0x4010ba4a:0x3ffdab90 0x400e6815:0x3ffdadc0 0x400dccee:0x3ffdb670 0x400dea7b:0x3ffdbc20 0x400deeb6:0x3ffdbd00 0x401e61bb:0x3ffdbdb0 0x40093561:0x3ffdbdd0

Johannes-Thiel commented 1 week ago

I tested this issue again. Our update tho ESP IDF 5.3.1 has fixed this issue. The ESP does not bootloop with both configs.