BLE causes NVS read to abort at locks.c

jonking
Posts: 8
Joined: Wed Dec 04, 2019 1:36 pm

BLE causes NVS read to abort at locks.c

Postby jonking » Thu Jan 16, 2020 9:30 pm

Hello, see here for related Github issue: https://github.com/espressif/esp-idf/issues/4638

My issue is that when I initialize BLE on my device and try and perform NVS readonly actions my code aborts and reports the following stack:

Code: Select all

abort() was called at PC 0x40082ea6 on core 0
0x40082ea6: lock_acquire_generic at /home/jonhunterking/esp/esp-idf/components/newlib/locks.c:143


ELF file SHA256: 2c555354eae80897190f2aa4a36e05c7391336d369383d1c1006baaae9f0a0e6

Backtrace: 0x400966ed:0x3ffd8f90 0x40096a75:0x3ffd8fb0 0x40082ea6:0x3ffd8fd0 0x40082fc9:0x3ffd9000 0x4019b5f9:0x3ffd9020 0x40193c69:0x3ffd92e0 0x40193bf1:0x3ffd9330 0x4009abb5:0x3ffd9360 0x400d897c:0x3ffd9380 0x400df1d6:0x3ffd93a0 0x400df2c9:0x3ffd93d0 0x400e126f:0x3ffd9400 0x4011ac1e:0x3ffd9420 0x40099745:0x3ffd9450
0x400966ed: invoke_abort at /home/jonhunterking/esp/esp-idf/components/esp32/panic.c:157

0x40096a75: abort at /home/jonhunterking/esp/esp-idf/components/esp32/panic.c:174

0x40082ea6: lock_acquire_generic at /home/jonhunterking/esp/esp-idf/components/newlib/locks.c:143

0x40082fc9: _lock_acquire_recursive at /home/jonhunterking/esp/esp-idf/components/newlib/locks.c:171

0x4019b5f9: _vfiprintf_r at /builds/idf/crosstool-NG/.build/xtensa-esp32-elf/src/newlib/newlib/libc/stdio/vfprintf.c:853 (discriminator 2)

0x40193c69: fiprintf at /builds/idf/crosstool-NG/.build/xtensa-esp32-elf/src/newlib/newlib/libc/stdio/fiprintf.c:48

0x40193bf1: __assert_func at /builds/idf/crosstool-NG/.build/xtensa-esp32-elf/src/newlib/newlib/libc/stdlib/assert.c:58 (discriminator 8)

0x4009abb5: vPortCPUAcquireMutexIntsDisabledInternal at /home/jonhunterking/esp/esp-idf/components/freertos/portmux_impl.inc.h:105
 (inlined by) vPortCPUAcquireMutexIntsDisabled at /home/jonhunterking/esp/esp-idf/components/freertos/portmux_impl.h:100
 (inlined by) vTaskEnterCritical at /home/jonhunterking/esp/esp-idf/components/freertos/tasks.c:4200

0x400d897c: periph_module_enable at /home/jonhunterking/esp/esp-idf/components/driver/periph_ctrl.c:33 (discriminator 2)

0x400df1d6: esp_phy_rf_init at /home/jonhunterking/esp/esp-idf/components/esp_wifi/src/phy_init.c:163

0x400df2c9: esp_modem_sleep_exit at /home/jonhunterking/esp/esp-idf/components/esp_wifi/src/phy_init.c:324

0x400e126f: btdm_sleep_exit_phase3_wrapper at /home/jonhunterking/esp/esp-idf/components/bt/controller/bt.c:873

0x4011ac1e: btdm_controller_task at ??:?

0x40099745: vPortTaskWrapper at /home/jonhunterking/esp/esp-idf/components/freertos/port.c:143
Removing the bleInit function results in no issues.

My code in question is in the Github issue. But I can repost it if people want it here. I am guessing all can access Github however.

Cheers,

Jon

Who is online

Users browsing this forum: Bing [Bot] and 42 guests