ESP-IDF 5.1.1 gatt_server identifier "CONFIG_BT_LE_LL_RESOLV_LIST_SIZE" is undefined

caetanowagner
Posts: 4
Joined: Sat May 04, 2019 8:28 pm

ESP-IDF 5.1.1 gatt_server identifier "CONFIG_BT_LE_LL_RESOLV_LIST_SIZE" is undefined

Postby caetanowagner » Tue Sep 26, 2023 5:48 pm

Hi guys, just got an error.
I did a fresh install from Espressif extension and created a new project based on gatt_server and I left all default config.

Get this erros
  1. identifier "CONFIG_BT_LE_LL_RESOLV_LIST_SIZE" is undefined
from
gatts_demo.c line 687
  1. esp_bt_controller_config_t bt_cfg = BT_CONTROLLER_INIT_CONFIG_DEFAULT();
Os: Ubuntu 22.04.3 LTS
Any ideia how to fix it?
Thanks.

Doctor command:
  1. ---------------------------------------------- ESP-IDF Extension for Visual Studio Code report ---------------------------------------------
  2. OS linux x64 6.2.0-33-generic
  3. System environment variable IDF_PYTHON_ENV_PATH
  4.  undefined
  5. System environment variable PATH
  6.  <HOMEPATH>/.local/bin:<HOMEPATH>/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/snap/bin:<HOMEPATH>/dev/flutter/bin
  7. System environment variable PYTHON
  8.  undefined
  9. Visual Studio Code version 1.82.2
  10. Visual Studio Code language en
  11. Visual Studio Code shell /usr/bin/bash
  12. ESP-IDF Extension version 1.6.4
  13. Workspace folder <HOMEPATH>/esp/workspace/medidor_de_pasto
  14. ---------------------------------------------------- Extension configuration settings ------------------------------------------------------
  15. ESP-ADF Path (idf.espAdfPath) ${env:ADF_PATH}
  16. ESP-IDF Path (idf.espIdfPath) <HOMEPATH>/esp/esp-idf
  17. ESP-MDF Path (idf.espMdfPath) ${env:MDF_PATH}
  18. ESP-Matter Path (idf.espMatterPath) ${env:ESP_MATTER_PATH}
  19. Custom extra paths (idf.customExtraPaths) <HOMEPATH>/.espressif/tools/xtensa-esp-elf-gdb/12.1_20221002/xtensa-esp-elf-gdb/bin:<HOMEPATH>/.espressif/tools/riscv32-esp-elf-gdb/12.1_20221002/riscv32-esp-elf-gdb/bin:<HOMEPATH>/.espressif/tools/xtensa-esp32-elf/esp-12.2.0_20230208/xtensa-esp32-elf/bin:<HOMEPATH>/.espressif/tools/xtensa-esp32s2-elf/esp-12.2.0_20230208/xtensa-esp32s2-elf/bin:<HOMEPATH>/.espressif/tools/xtensa-esp32s3-elf/esp-12.2.0_20230208/xtensa-esp32s3-elf/bin:<HOMEPATH>/.espressif/tools/riscv32-esp-elf/esp-12.2.0_20230208/riscv32-esp-elf/bin:<HOMEPATH>/.espressif/tools/esp32ulp-elf/2.35_20220830/esp32ulp-elf/bin:<HOMEPATH>/.espressif/tools/openocd-esp32/v0.12.0-esp32-20230419/openocd-esp32/bin:<HOMEPATH>/.espressif/tools/esp-rom-elfs/20230320
  20. Custom extra vars (idf.customExtraVars)
  21.     OPENOCD_SCRIPTS: <HOMEPATH>/.espressif/tools/openocd-esp32/v0.12.0-esp32-20230419/openocd-esp32/share/openocd/scripts
  22.     ESP_ROM_ELF_DIR: <HOMEPATH>/.espressif/tools/esp-rom-elfs/20230320/
  23. Virtual env Python Path (idf.pythonBinPath) <HOMEPATH>/.espressif/python_env/idf5.1_py3.10_env/bin/python
  24. Serial port (idf.port) /dev/ttyUSB1
  25. OpenOCD Configs (idf.openOcdConfigs) board/esp32-wrover-kit-3.3v.cfg
  26. ESP-IDF Tools Path (idf.toolsPath) <HOMEPATH>/.espressif
  27. Git Path (idf.gitPath) git
  28. -------------------------------------------------------- Configurations access -------------------------------------------------------------
  29. Access to ESP-ADF Path (idf.espAdfPath) false
  30. Access to ESP-IDF Path (idf.espIdfPath) true
  31. Access to ESP-MDF Path (idf.espMdfPath) false
  32. Access to ESP-Matter Path (idf.espMatterPath) false
  33. Access to ESP-IDF Custom extra paths
  34. Access to <HOMEPATH>/.espressif/tools/xtensa-esp-elf-gdb/12.1_20221002/xtensa-esp-elf-gdb/bin: true
  35. Access to <HOMEPATH>/.espressif/tools/riscv32-esp-elf-gdb/12.1_20221002/riscv32-esp-elf-gdb/bin: true
  36. Access to <HOMEPATH>/.espressif/tools/xtensa-esp32-elf/esp-12.2.0_20230208/xtensa-esp32-elf/bin: true
  37. Access to <HOMEPATH>/.espressif/tools/xtensa-esp32s2-elf/esp-12.2.0_20230208/xtensa-esp32s2-elf/bin: true
  38. Access to <HOMEPATH>/.espressif/tools/xtensa-esp32s3-elf/esp-12.2.0_20230208/xtensa-esp32s3-elf/bin: true
  39. Access to <HOMEPATH>/.espressif/tools/riscv32-esp-elf/esp-12.2.0_20230208/riscv32-esp-elf/bin: true
  40. Access to <HOMEPATH>/.espressif/tools/esp32ulp-elf/2.35_20220830/esp32ulp-elf/bin: true
  41. Access to <HOMEPATH>/.espressif/tools/openocd-esp32/v0.12.0-esp32-20230419/openocd-esp32/bin: true
  42. Access to <HOMEPATH>/.espressif/tools/esp-rom-elfs/20230320: true
  43. Access to Virtual env Python Path (idf.pythonBinPath) true
  44. Access to CMake in environment PATH true
  45. Access to Ninja in environment PATH true
  46. Access to ESP-IDF Tools Path (idf.toolsPath) true
  47. -------------------------------------------------------- Configurations has spaces -------------------------------------------------------------
  48. Spaces in system environment Path false
  49. Spaces in ESP-ADF Path (idf.espAdfPath) false
  50. Spaces in ESP-IDF Path (idf.espIdfPath) false
  51. Spaces in ESP-MDF Path (idf.espMdfPath) false
  52. Spaces in ESP-Matter Path (idf.espMatterPath) false
  53. Spaces in ESP-IDF Custom extra paths
  54. Spaces in <HOMEPATH>/.espressif/tools/xtensa-esp-elf-gdb/12.1_20221002/xtensa-esp-elf-gdb/bin: false
  55. Spaces in <HOMEPATH>/.espressif/tools/riscv32-esp-elf-gdb/12.1_20221002/riscv32-esp-elf-gdb/bin: false
  56. Spaces in <HOMEPATH>/.espressif/tools/xtensa-esp32-elf/esp-12.2.0_20230208/xtensa-esp32-elf/bin: false
  57. Spaces in <HOMEPATH>/.espressif/tools/xtensa-esp32s2-elf/esp-12.2.0_20230208/xtensa-esp32s2-elf/bin: false
  58. Spaces in <HOMEPATH>/.espressif/tools/xtensa-esp32s3-elf/esp-12.2.0_20230208/xtensa-esp32s3-elf/bin: false
  59. Spaces in <HOMEPATH>/.espressif/tools/riscv32-esp-elf/esp-12.2.0_20230208/riscv32-esp-elf/bin: false
  60. Spaces in <HOMEPATH>/.espressif/tools/esp32ulp-elf/2.35_20220830/esp32ulp-elf/bin: false
  61. Spaces in <HOMEPATH>/.espressif/tools/openocd-esp32/v0.12.0-esp32-20230419/openocd-esp32/bin: false
  62. Spaces in <HOMEPATH>/.espressif/tools/esp-rom-elfs/20230320: false
  63. Spaces in Virtual env Python Path (idf.pythonBinPath) false
  64. Spaces in ESP-IDF Tools Path (idf.toolsPath) false
  65. ----------------------------------------------------------- Executables Versions -----------------------------------------------------------
  66. Git version 2.34.1
  67. ESP-IDF version 5.1.1
  68. Python version 3.10.12
  69. Python's pip version 23.2.1
  70. -------------------------------------------------- Project configuration settings ----------------------------------------------------------
  71. -------------------------------------------------- Python packages in idf.pythonBinPath ----------------------------------------------------
  72. bitarray version: 2.8.1
  73. bitstring version: 4.1.2
  74. CacheControl version: 0.13.1
  75. certifi version: 2023.7.22
  76. cffi version: 1.15.1
  77. charset-normalizer version: 3.2.0
  78. click version: 8.0.4
  79. colorama version: 0.4.6
  80. construct version: 2.10.68
  81. contextlib2 version: 21.6.0
  82. cryptography version: 39.0.2
  83. ecdsa version: 0.18.0
  84. esp-coredump version: 1.7.0
  85. esp-debug-backend version: 1.0.3
  86. esp-idf-kconfig version: 1.2.0
  87. esp-idf-monitor version: 1.2.1
  88. esp-idf-panic-decoder version: 0.1.0
  89. esp-idf-size version: 0.4.2
  90. esptool version: 4.7.dev1
  91. filelock version: 3.12.4
  92. freertos-gdb version: 1.0.2
  93. gcovr version: 6.0
  94. idf-component-manager version: 1.4.0
  95. idna version: 3.4
  96. Jinja2 version: 3.0.3
  97. kconfiglib version: 14.1.0
  98. lxml version: 4.9.3
  99. MarkupSafe version: 2.1.3
  100. msgpack version: 1.0.5
  101. packaging version: 23.1
  102. pip version: 23.2.1
  103. pycparser version: 2.21
  104. pyelftools version: 0.29
  105. pygdbmi version: 0.9.0.2
  106. Pygments version: 2.16.1
  107. pyparsing version: 3.0.9
  108. pyserial version: 3.5
  109. PyYAML version: 6.0.1
  110. reedsolo version: 1.7.0
  111. requests version: 2.31.0
  112. requests-file version: 1.5.1
  113. requests-toolbelt version: 1.0.0
  114. schema version: 0.7.5
  115. setuptools version: 68.2.2
  116. six version: 1.16.0
  117. tqdm version: 4.66.1
  118. urllib3 version: 1.26.16
  119. websocket-client version: 1.6.3
  120. ---------------------------------------------------- Check ESP-IDF python requirements.txt -------------------------------------------------
  121. Check ESP-IDF Python packages Python requirements are satisfied.
  122. ---------------------------------------------------- Check extension requirements.txt ------------------------------------------------------
  123. Check Extension Python packages Python requirements are satisfied.
  124. ---------------------------------------------------- Check ESP-IDF debug adapter requirements.txt ------------------------------------------
  125. Check Debug AdapterPython packages Python requirements are satisfied.
  126. ---------------------------------------------------- Visual Studio Code launch.json --------------------------------------------------------
  127. {
  128.   "version": "0.2.0",
  129.   "configurations": [
  130.     {
  131.       "type": "espidf",
  132.       "name": "Launch",
  133.       "request": "launch"
  134.     }
  135.   ]
  136. }
  137. ---------------------------------------------------- Visual Studio Code c_cpp_properties.json ----------------------------------------------
  138. {
  139.     "configurations": [
  140.         {
  141.             "name": "ESP-IDF",
  142.             "compilerPath": "<HOMEPATH>/.espressif/tools/xtensa-esp32-elf/esp-12.2.0_20230208/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc",
  143.             "includePath": [
  144.                 "${config:idf.espIdfPath}/components/**",
  145.                 "${config:idf.espIdfPathWin}/components/**",
  146.                 "${config:idf.espAdfPath}/components/**",
  147.                 "${config:idf.espAdfPathWin}/components/**",
  148.                 "${workspaceFolder}/**"
  149.             ],
  150.             "browse": {
  151.                 "path": [
  152.                     "${config:idf.espIdfPath}/components",
  153.                     "${config:idf.espIdfPathWin}/components",
  154.                     "${config:idf.espAdfPath}/components/**",
  155.                     "${config:idf.espAdfPathWin}/components/**",
  156.                     "${workspaceFolder}"
  157.                 ],
  158.                 "limitSymbolsToIncludedHeaders": false
  159.             }
  160.         }
  161.     ],
  162.     "version": 4
  163. }
  164.  
  165. --------------------------------------------------------------------------------------------------------------------------------------------

aurxine
Posts: 1
Joined: Tue Jun 11, 2024 6:05 am

Re: ESP-IDF 5.1.1 gatt_server identifier "CONFIG_BT_LE_LL_RESOLV_LIST_SIZE" is undefined

Postby aurxine » Tue Jun 11, 2024 6:35 am

I faced the similar problem. Clicking on "BT_CONTROLLER_INIT_CONFIG_DEFAULT();" took me to esp32h4/include/bt.h instead of esp32c3/include/bt.h, which means vscode was replacing the default config to that of esp32h4 instead of esp32c3 (which I'm actually working on).

Adding "compileCommands": "${workspaceFolder}/build/compile_commands.json" in "configurations" of my c_cpp_configurations.json did fix this error but added more include errors in gatts_demo.c file. So I did a fullclean on my project and built the project using the ESP-IDF extension. This fixed all my problems.

Who is online

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