MicroController wrote: ↑Sat Aug 12, 2023 6:17 pm
So the build succeeded at one point?
If building from the command line via idf.py works, building via the ESP-IDF extension in VS Code should also work (most of the time).
Some thoughts:
0. "Simple" compiling of source files directly from VS Code often won't work. ESP-IDF uses the cmake build system, so to build, VS Code needs to run cmake.
1. You have the ESP-IDF extension installed in VS Code?
2. Can you build an IDF project via the extension, i.e. via the "ESP-IDF build project" button in the toolbar or F1 -> >ESP-IDF: build your project?
3. Can you build the bt_spp_initiator sample project this way?
4. If not done already, you may want to install the "CMake Extension" into VS code to get some interoperability between IDF's cmake build system and VS Code. This helps VS Code to figure out the paths needed by your project.
So the build succeeded at one point?
Yes, it looks so.
If building from the command line via idf.py works, building via the ESP-IDF extension in VS Code should also work (most of the time).
Some thoughts:
0. "Simple" compiling of source files directly from VS Code often won't work. ESP-IDF uses the cmake build system, so to build, VS Code needs to run cmake.
One question here. I am not with my PC now but there are two options when creating the project. There are two options if I want "Look for kits..." and the second I don't remember exactly but it is something with Cmake. I tried both within my test and both worked. But with the second option there was some error which disappeared within the build.
1. You have the ESP-IDF extension installed in VS Code?
I hope so because I can choose ESP-IDF extensions but then I have to choose some template. Without it I can't move fwd. I could't find anything like empty project.
2. Can you build an IDF project via the extension, i.e. via the "ESP-IDF build project" button in the toolbar or F1 -> >ESP-IDF: build your project?
Yes, as described above. I do everything via those buttons on the bottom bar.
3. Can you build the bt_spp_initiator sample project this way?
Yes, I can with the same error message regarding esp_bt.h. All the tests with bt_spp_initiator, bt_spp_acceptor, bt_ discovery work but the same error message.
Code: Select all
static assertion failed with "please enable bluetooth in menuconfig to use esp_bt.h"
4. If not done already, you may want to install the "CMake Extension" into VS code to get some interoperability between IDF's cmake build system and VS Code. This helps VS Code to figure out the paths needed by your project.
I am not sure how to check if everything is installed correctly.