atanisoft / OpenMRNIDF

OpenMRN ESP-IDF Component
BSD 2-Clause "Simplified" License
2 stars 1 forks source link

TWAI: cache issue? #5

Closed atanisoft closed 4 years ago

atanisoft commented 4 years ago
[HealthMon 00:01:00] Free heap: 143.43kB (max block size: 70.69kB), Free PSRAM: 0.00kB (max block size: 0.00kB), mainBufferPool: 0.59kB
[TWAI] RX:0 (pending:0,overrun:0,discard:0) TX:17 (pending:17,suc:0,fail:0) bus (arb-err:0,err:0,state:Running)
Re-enable cpu cache.
Guru Meditation Error: Core  1 panic'ed (Cache disabled but cached memory region accessed). 

Core  1 register dump:
PC      : 0x400f4674  PS      : 0x00060034  A0      : 0x4008263c  A1      : 0x3ffb0d10  
0x400f4674: _ZL35twai_hal_set_tx_buffer_and_transmitP18twai_hal_context_tP22twai_ll_frame_buffer_t$constprop$11 at OpenMRNLite/src/freertos_drivers/esp32/Esp32TwaiHal.hxx:1285

0x4008263c: _xt_lowint1 at esp-idf/components/freertos/xtensa/xtensa_vectors.S:1105

A2      : 0x00000400  A3      : 0x3ffb46a0  A4      : 0x3ffb3984  A5      : 0x3ffb4698  
A6      : 0xffffffdf  A7      : 0x1300004d  A8      : 0x80082c02  A9      : 0x3ffb0cf0  
A10     : 0x3ffb0d1f  A11     : 0x00000000  A12     : 0x3ffb0d18  A13     : 0x00000001  
A14     : 0x3ffc3e98  A15     : 0x00060021  SAR     : 0x00000000  EXCCAUSE: 0x00000007  
EXCVADDR: 0x00000000  LBEG    : 0x4000c2e0  LEND    : 0x4000c2f6  LCOUNT  : 0xffffffff  

Backtrace:0x400f4671:0x3ffb0d10 0x40082639:0x3ffb0d50 0x4008324a:0x3ffba610 0x400831bc:0x3ffba630
0x400f4671: vfs_fcntl(int, int, int) at OpenMRNLite/src/freertos_drivers/esp32/Esp32Twai.cpp:414
0x40082639: _xt_lowint1 at esp-idf/components/freertos/xtensa/xtensa_vectors.S:1105
0x4008324a: spi_flash_op_block_func at esp-idf/components/spi_flash/cache_utils.c:104
0x400831bc: ipc_task at esp-idf/components/esp_ipc/ipc.c:62