Building Espressif BLE Example with Platformio causing linker issue - undefined reference to

I’m trying to build this demo from Espressif with Platformio (no changes) and builiding ends with linking issue.
I’m not very expirenced with CMake, but I think standard components should be linked by default, or?
I’ve activated components in Menuconfig.

Build with: PLATFORM: Espressif 32 (6.4.0) - IDF Framework
Demo from: Espressif BLE Example v5.1
Error: .pio\build\esp32dev\src\main.o:(.literal.gap_event_handler+0x4c): undefined reference to `esp_ble_gap_periodic_adv_create_sync’ - and some more.

Thank you for any hints how to solve this linker issue.

This function depends on CONFIG_BT_NIMBLE_50_FEATURE_SUPPORT being turned on, which requires a Bluetooth 5.0 capable radio.

Are you building for a regular ESP32? Per, that is not supported.


1 Like

Thank you very much @maxgerhardt - changed board to a C3 version and - yes that was the issue.