I got build error using A2DP-SINK/SOURCE example from ESP-IDF

You are right, regenerating the sdkconfig file doesn’t work like I expected – Regenerate sdkconfig.<board> if missing · Issue #588 · platformio/platform-espressif32 · GitHub is open, because I think it should make sense.

When I first create a blank project, put all the files in it (including the sdkconfig.defaults), but before a sdkconfig file is generated, it works just fine and the settings are applied.

And also compiles fine.

..
RAM:   [=         ]  14.6% (used 47996 bytes from 327680 bytes)
Flash: [=======   ]  69.8% (used 732341 bytes from 1048576 bytes)
Building .pio\build\pico32\firmware.bin
esptool.py v3.1
Merged 1 ELF section
============== [SUCCESS] Took 75.07 seconds ==============

When the project has already been created, one can still go into the menuconfig and apply all settings that would have otherwise been applied by the defaults file, as listed above. Using the “/ = Jump to symbol” command in the menuconfig, one can very easily copy-paste the config macro names (without the CONFIG_) prefix and set them accordingly.

Reference project is at GitHub - maxgerhardt/pio-espidf-a2dpsink: From https://github.com/espressif/esp-idf/tree/v4.3/examples/bluetooth/bluedroid/classic_bt/a2dp_sink/main as PIO project.

1 Like