芯片采用ESP32 C3,mdf组网和CSI功能单独测试都正常,尝试集成时出现问题,集成方式为:
在wifi设置部分,设置cfg.csi_enable = 1,调用mwifi_start()后,芯片完成组网,之后采用以下代码启动CSI:
Code: Select all
ESP_ERROR_CHECK(esp_wifi_set_csi(1));
wifi_csi_config_t configuration_csi;
configuration_csi.lltf_en = 1;
configuration_csi.htltf_en = 1;
configuration_csi.stbc_htltf2_en = 1;
configuration_csi.ltf_merge_en = 1;
configuration_csi.channel_filter_en = 1;
configuration_csi.manu_scale = 0;
ESP_ERROR_CHECK(esp_wifi_set_csi_config(&configuration_csi));
ESP_ERROR_CHECK(esp_wifi_set_csi_rx_cb(&_wifi_csi_cb, NULL));
_print_csi_csv_header();
assertion "uxCriticalNesting == ~0UL" failed:file---/esp_mdf/esp_idf/commponents/freertos/port/riscv/port.c",line 172,function:prvTaskExitError
abort() was called at PC 0x420c5439 on core 0
0x420c5439: __assert_func at /builds/idf/crosstool-NG/.build/HOST-x86_64-w64-mingw32/riscv32-esp-elf/src/newlib/newlib/libc/stdlib/assert.c:62 (disciminator 8)
Stack dump detected
Core 0 register dump:
……