【已解决】S2 SPI MASTER assert(desired_dev) 问题
Posted: Tue May 23, 2023 2:31 am
idf master 5.2
driver/spi_master.c 729 行
assert(desired_dev)出错
驱动lcd,大概4月份git更新master代码后,发生错误,将assert(desired_dev)注销,错误消失。
assert failed: spi_intr spi_master.c:729 (desired_dev)
Backtrace: 0x400254a2:0x3ffc3b50 0x4002b519:0x3ffc3b70 0x400317b9:0x3ffc3b90 0x40027df3:0x3ffc3cb0 0x40026f91:0x3ffc3ce0 0x4001a8d1:0x3ffe4140 0x4002d985:0x3ffe4150 0x400260e4:0x3ffe4170 0x40027bb9:0x3ffe4190 0x40028321:0x3ffe41b0 0x400283d5:0x3ffe41e0 0x40027f0b:0x3ffe4200 0x400a1b9b:0x3ffe4220 0x400a18fe:0x3ffe4270 0x4008b369:0x3ffe42a0 0x400962eb:0x3ffe42c0 0x400963e2:0x3ffe4300 0x4008d7af:0x3ffe4330 0x40094e5a:0x3ffe4370 0x4002d86d:0x3ffe43a0
0x400254a2: panic_abort at D:/Espressif/frameworks/esp-idf-master/components/esp_system/panic.c:452
0x4002b519: esp_system_abort at D:/Espressif/frameworks/esp-idf-master/components/esp_system/port/esp_system_chip.c:90
0x400317b9: __assert_func at D:/Espressif/frameworks/esp-idf-master/components/newlib/assert.c:81
0x40027df3: spi_intr at D:/Espressif/frameworks/esp-idf-master/components/driver/spi/gpspi/spi_master.c:729 (discriminator 1)
0x40026f91: _xt_medint2 at D:/Espressif/frameworks/esp-idf-master/components/xtensa/xtensa_vectors.S:1315
0x4002d985: vPortClearInterruptMaskFromISR at D:/Espressif/frameworks/esp-idf-master/components/freertos/FreeRTOS-Kernel/portable/xtensa/include/freertos/portmacro.h:568
(inlined by) vPortExitCritical at D:/Espressif/frameworks/esp-idf-master/components/freertos/FreeRTOS-Kernel/portable/xtensa/port.c:532
(inlined by) vPortExitCritical at D:/Espressif/frameworks/esp-idf-master/components/freertos/FreeRTOS-Kernel/portable/xtensa/port.c:517
0x400260e4: vPortExitCriticalSafe at D:/Espressif/frameworks/esp-idf-master/components/freertos/FreeRTOS-Kernel/portable/xtensa/include/freertos/portmacro.h:604
(inlined by) esp_intr_enable at D:/Espressif/frameworks/esp-idf-master/components/esp_hw_support/intr_alloc.c:804
0x40027bb9: spi_bus_intr_enable at D:/Espressif/frameworks/esp-idf-master/components/driver/spi/gpspi/spi_master.c:576
0x40028321: bg_enable at D:/Espressif/frameworks/esp-idf-master/components/driver/spi/spi_bus_lock.c:324
(inlined by) acquire_end_core at D:/Espressif/frameworks/esp-idf-master/components/driver/spi/spi_bus_lock.c:450
0x400283d5: spi_bus_lock_acquire_end at D:/Espressif/frameworks/esp-idf-master/components/driver/spi/spi_bus_lock.c:737 (discriminator 2)
0x40027f0b: spi_device_release_bus at D:/Espressif/frameworks/esp-idf-master/components/driver/spi/gpspi/spi_master.c:1031 (discriminator 15)
0x400a1b9b: panel_io_spi_tx_color at D:/Espressif/frameworks/esp-idf-master/components/esp_lcd/src/esp_lcd_panel_io_spi.c:388
0x400a18fe: esp_lcd_panel_io_tx_color at D:/Espressif/frameworks/esp-idf-master/components/esp_lcd/src/esp_lcd_panel_io.c:29 (discriminator 2)
0x4008b369: lcd_fill_rect at D:/ZMZ/Project/ESP32S2/S2_MIN_CW/main/lcd/lcd.c:232
0x400962eb: gui_draw_region at D:/ZMZ/Project/ESP32S2/S2_MIN_CW/main/gui/gui_com.c:50
0x400963e2: gui_draw_rect at D:/ZMZ/Project/ESP32S2/S2_MIN_CW/main/gui/gui_com.c:26
0x4008d7af: transcribe_custom_refresh at D:/ZMZ/Project/ESP32S2/S2_MIN_CW/main/cw/transcribe_custom.c:179
0x40094e5a: gui_svc_run at D:/ZMZ/Project/ESP32S2/S2_MIN_CW/main/gui/gui_svc.c:147
0x4002d86d: vPortTaskWrapper at D:/Espressif/frameworks/esp-idf-master/components/freertos/FreeRTOS-Kernel/portable/xtensa/port.c:162
driver/spi_master.c 729 行
assert(desired_dev)出错
驱动lcd,大概4月份git更新master代码后,发生错误,将assert(desired_dev)注销,错误消失。
assert failed: spi_intr spi_master.c:729 (desired_dev)
Backtrace: 0x400254a2:0x3ffc3b50 0x4002b519:0x3ffc3b70 0x400317b9:0x3ffc3b90 0x40027df3:0x3ffc3cb0 0x40026f91:0x3ffc3ce0 0x4001a8d1:0x3ffe4140 0x4002d985:0x3ffe4150 0x400260e4:0x3ffe4170 0x40027bb9:0x3ffe4190 0x40028321:0x3ffe41b0 0x400283d5:0x3ffe41e0 0x40027f0b:0x3ffe4200 0x400a1b9b:0x3ffe4220 0x400a18fe:0x3ffe4270 0x4008b369:0x3ffe42a0 0x400962eb:0x3ffe42c0 0x400963e2:0x3ffe4300 0x4008d7af:0x3ffe4330 0x40094e5a:0x3ffe4370 0x4002d86d:0x3ffe43a0
0x400254a2: panic_abort at D:/Espressif/frameworks/esp-idf-master/components/esp_system/panic.c:452
0x4002b519: esp_system_abort at D:/Espressif/frameworks/esp-idf-master/components/esp_system/port/esp_system_chip.c:90
0x400317b9: __assert_func at D:/Espressif/frameworks/esp-idf-master/components/newlib/assert.c:81
0x40027df3: spi_intr at D:/Espressif/frameworks/esp-idf-master/components/driver/spi/gpspi/spi_master.c:729 (discriminator 1)
0x40026f91: _xt_medint2 at D:/Espressif/frameworks/esp-idf-master/components/xtensa/xtensa_vectors.S:1315
0x4002d985: vPortClearInterruptMaskFromISR at D:/Espressif/frameworks/esp-idf-master/components/freertos/FreeRTOS-Kernel/portable/xtensa/include/freertos/portmacro.h:568
(inlined by) vPortExitCritical at D:/Espressif/frameworks/esp-idf-master/components/freertos/FreeRTOS-Kernel/portable/xtensa/port.c:532
(inlined by) vPortExitCritical at D:/Espressif/frameworks/esp-idf-master/components/freertos/FreeRTOS-Kernel/portable/xtensa/port.c:517
0x400260e4: vPortExitCriticalSafe at D:/Espressif/frameworks/esp-idf-master/components/freertos/FreeRTOS-Kernel/portable/xtensa/include/freertos/portmacro.h:604
(inlined by) esp_intr_enable at D:/Espressif/frameworks/esp-idf-master/components/esp_hw_support/intr_alloc.c:804
0x40027bb9: spi_bus_intr_enable at D:/Espressif/frameworks/esp-idf-master/components/driver/spi/gpspi/spi_master.c:576
0x40028321: bg_enable at D:/Espressif/frameworks/esp-idf-master/components/driver/spi/spi_bus_lock.c:324
(inlined by) acquire_end_core at D:/Espressif/frameworks/esp-idf-master/components/driver/spi/spi_bus_lock.c:450
0x400283d5: spi_bus_lock_acquire_end at D:/Espressif/frameworks/esp-idf-master/components/driver/spi/spi_bus_lock.c:737 (discriminator 2)
0x40027f0b: spi_device_release_bus at D:/Espressif/frameworks/esp-idf-master/components/driver/spi/gpspi/spi_master.c:1031 (discriminator 15)
0x400a1b9b: panel_io_spi_tx_color at D:/Espressif/frameworks/esp-idf-master/components/esp_lcd/src/esp_lcd_panel_io_spi.c:388
0x400a18fe: esp_lcd_panel_io_tx_color at D:/Espressif/frameworks/esp-idf-master/components/esp_lcd/src/esp_lcd_panel_io.c:29 (discriminator 2)
0x4008b369: lcd_fill_rect at D:/ZMZ/Project/ESP32S2/S2_MIN_CW/main/lcd/lcd.c:232
0x400962eb: gui_draw_region at D:/ZMZ/Project/ESP32S2/S2_MIN_CW/main/gui/gui_com.c:50
0x400963e2: gui_draw_rect at D:/ZMZ/Project/ESP32S2/S2_MIN_CW/main/gui/gui_com.c:26
0x4008d7af: transcribe_custom_refresh at D:/ZMZ/Project/ESP32S2/S2_MIN_CW/main/cw/transcribe_custom.c:179
0x40094e5a: gui_svc_run at D:/ZMZ/Project/ESP32S2/S2_MIN_CW/main/gui/gui_svc.c:147
0x4002d86d: vPortTaskWrapper at D:/Espressif/frameworks/esp-idf-master/components/freertos/FreeRTOS-Kernel/portable/xtensa/port.c:162