wifi_prov_mgr example / IDF v5.2 , vscode / build time error

sangk82
Posts: 6
Joined: Wed Mar 13, 2024 6:20 am

wifi_prov_mgr example / IDF v5.2 , vscode / build time error

Postby sangk82 » Wed Apr 24, 2024 4:20 am

Hi
I have problem with wifi_prov_mgr example.
I have ran wifi_prov_mgr example using IDF v5.2.1 and it works but not IDF v5.2

I tried to run it as BLE mode and it works.
I also tried to run it as SOFTAP mode but it failed.

problem is only SOFTAP mode.

here's terminal log

Code: Select all

Bootloader binary size 0x6850 bytes. 0x7b0 bytes (7%) free.
[1026/1028] Linking CXX executable wifi_prov_mgr.elf
FAILED: wifi_prov_mgr.elf
cmd.exe /C "cd . && D:\esp\espressif\tools\xtensa-esp-elf\esp-13.2.0_20230928\xtensa-esp-elf\bin\xtensa-esp32-elf-g++.exe -mlongcalls -Wno-frame-address -Wl,--cref -Wl,--defsym=IDF_TARGET_ESP32=0 -Wl,--Map=D:/{my_address}/provisioning/wifi_prov_mgr/build/wifi_prov_mgr.map -Wl,--no-warn-rwx-segments -fno-rtti -fno-lto -Wl,--gc-sections -Wl,--warn-common -T esp32.peripherals.ld -T esp32.rom.ld -T esp32.rom.api.ld -T esp32.rom.libgcc.ld -T esp32.rom.newlib-data.ld -T esp32.rom.syscalls.ld -T esp32.rom.newlib-funcs.ld -T memory.ld -T sections.ld @CMakeFiles\wifi_prov_mgr.elf.rsp -o wifi_prov_mgr.elf  && cd ."
D:/esp/espressif/tools/xtensa-esp-elf/esp-13.2.0_20230928/xtensa-esp-elf/bin/../lib/gcc/xtensa-esp-elf/13.2.0/../../../../xtensa-esp-elf/bin/ld.exe: D:/esp/v5.2/esp-idf/components/esp_coex/lib/esp32/libcoexist.a(coexist_hw.o):(.iram1.17+0x0): undefined reference to `btdm_rf_bb_reg_init'
D:/esp/espressif/tools/xtensa-esp-elf/esp-13.2.0_20230928/xtensa-esp-elf/bin/../lib/gcc/xtensa-esp-elf/13.2.0/../../../../xtensa-esp-elf/bin/ld.exe: D:/esp/v5.2/esp-idf/components/esp_coex/lib/esp32/libcoexist.a(coexist_hw.o):(.iram1.17+0x16): undefined reference to `btdm_rf_bb_reg_init'
collect2.exe: error: ld returned 1 exit status
ninja: build stopped: subcommand failed.
I believe

Code: Select all

D:/esp/espressif/tools/xtensa-esp-elf/esp-13.2.0_20230928/xtensa-esp-elf/bin/../lib/gcc/xtensa-esp-elf/13.2.0/../../../../xtensa-esp-elf/bin/ld.exe: D:/esp/v5.2/esp-idf/components/esp_coex/lib/esp32/libcoexist.a(coexist_hw.o):(.iram1.17+0x0): undefined reference to `btdm_rf_bb_reg_init'
D:/esp/espressif/tools/xtensa-esp-elf/esp-13.2.0_20230928/xtensa-esp-elf/bin/../lib/gcc/xtensa-esp-elf/13.2.0/../../../../xtensa-esp-elf/bin/ld.exe: D:/esp/v5.2/esp-idf/components/esp_coex/lib/esp32/libcoexist.a(coexist_hw.o):(.iram1.17+0x16): undefined reference to `btdm_rf_bb_reg_init'
this part is the trouble maker.
I googled "btdm_rf_bb_reg_init", there was only one post, and checked it.
I used [ $ git describe --tags && git status && git submodule status ] this command and checked it's b0f132f1.
not much of information on internet I need help.

it's possible to run it using v5.2.1 but not v5.2 and problem is my team uses v5.2 only.

thank you so much.

sangk82
Posts: 6
Joined: Wed Mar 13, 2024 6:20 am

Re: wifi_prov_mgr example / IDF v5.2 , vscode / build time error

Postby sangk82 » Wed May 22, 2024 6:02 am

Thank you for helping me guys
I just fingured it out lol

idk which point makes differences but on IDF v5.2.1 it will disable BLE functions when I choose SoftAP mode.
IDF v5.2, you should turn off Component conifg-Bluetooth- Bluetooth check box from sdkconfig.
i wish i can post pictures but good luck guys

Who is online

Users browsing this forum: Baidu [Spider] and 54 guests