Hello to all the FreeRTOS and AWS community. Congratulations for this great work.
Kindly, I am asking for support about how to compile AWS FreeRTOS ESP32 projects in VS Code.
I will explain first, all the details about how I’ve compiled, and successfully tested some
demos using the
ESP-IDF Command Prompt
v4.2 of IDF, with the toolchain
git version 2.30.1.windows.1 on Windows 7 Ultimate.
I have been able to compile via ESP-IDF Command Prompt examples from the AWS FreeRTOS Console, and freertos-aws-reference-integrations from Github.
In both cases, the version is
Version 202012.00 with
crosstool-ng-1.22.0-80-g6c4433a used in
The freertos-aws-reference-integrations for Espressif (and other vendors) on Github
The unzipped folder I place it on
C:\esp-idf-v4.2 just for consistency, I keep it as my root folder :
I modified one line of code on
C:/users/username/.espressif/_idf_cmd_init.bat which makes possible to move back and forth to use the native idf v4.2 examples and demos from FreeRTOS just commenting that line.
path configuration, I used the default one which is made from the esp-idf-tools-setup-2.3.exe installation.
And for FreeRTOS, I used the
export.bat present on
In order to execute the
ota examples, I double clicked the
ESP-IDF Command Prompt cmd.exe (generated from toolchain installation), changed directories to FreeRTOS
cd FreeRTOS and issued the next commands:
- coreMQTT demo
cmake -DVENDOR=espressif -DBOARD=esp32_devkitc -DCOMPILER=xtensa-esp32 -GNinja -S . -B demos/coreMQTT/build
python C:/esp-idf-v4.2/FreeRTOS/vendors/espressif/esp-idf/tools/idf.py build -B demos/coreMQTT/build
python C:/esp-idf-v4.2/FreeRTOS/vendors/espressif/esp-idf/tools/idf.py erase_flash flash monitor -p COM4 demos/coreMQTT/build
- ota demo
cmake -DVENDOR=espressif -DBOARD=esp32_devkitc -DCOMPILER=xtensa-esp32 -GNinja -S . -B demos/ota/build
python C:/esp-idf-v4.2/FreeRTOS/vendors/espressif/esp-idf/tools/idf.py build -B demos/ota/build
python C:/esp-idf-v4.2/FreeRTOS/vendors/espressif/esp-idf/tools/idf.py erase_flash flash monitor -p COM4 -B demos/ota/build
All working quite good so far
I want to achieve all that I did for AWS FreeRTOS on cli using VS code. I tested and flashed the
simple_sniffer from IDF 4.2 example using VS code and worked flawlessly.
My issue is trying to do the same with any of the examples on demos folder on FreeRTOS. Probably I am missing some cross-compiling configurations? Some path issues?
My working configurations for VS code are here (the one I used for the simple_sniffer example)
The failing configurations for AWS FreeRTOS ESP32 for VS code are here.
I even checked the link using-visual-studio-code-for-freertos-development.html, but still I can’t make it work.
I would really appreciate your support on this. Thanks in advance.