Search found 4 matches

by Aleksei
Sat Sep 17, 2022 8:03 am
Forum: IDEs for ESP-IDF
Topic: idf.py build ignores defines in c_cpp_settings.json
Replies: 5
Views: 19320

Re: idf.py build ignores defines in c_cpp_settings.json

Hi ESP_igrr! It seems to me that both of suggested variants are independ of configrations described in c_cpp_properties.json. But at least I can update sdkconfig and add desired define into it. In any case, thank you for your help!
by Aleksei
Wed Sep 14, 2022 5:36 pm
Forum: IDEs for ESP-IDF
Topic: idf.py build ignores defines in c_cpp_settings.json
Replies: 5
Views: 19320

Re: idf.py build ignores defines in c_cpp_settings.json

Hello, ESP_igrr Thank you for your answer. And one more question. I would like to have two configurations in VS Code - Release and Debug. My aim is to compile respective image when I switch between these configurations. So, my question is: how can I pass parameters to CMake from VSCode configuration...
by Aleksei
Tue Sep 13, 2022 5:13 pm
Forum: IDEs for ESP-IDF
Topic: idf.py build ignores defines in c_cpp_settings.json
Replies: 5
Views: 19320

Re: idf.py build ignores defines in c_cpp_settings.json

I've reproduced this problem with example project from Espressif-IDF plugin for VS Code: 1. Eviroment: Windows 10, Visual studio code v1.7.0, Espressif IDF plugin v1.5.0. 2. Create "Hello world" example project (View->Command Pallete->ESP-IDF: Show example projects->hellow_world) 3. In main.c replac...
by Aleksei
Sat Sep 10, 2022 3:32 pm
Forum: IDEs for ESP-IDF
Topic: idf.py build ignores defines in c_cpp_settings.json
Replies: 5
Views: 19320

idf.py build ignores defines in c_cpp_settings.json

Hello I have a problem with compiling my project. I've created some debug configuration for my project in c_cpp_settings.json and there is a "__DEBUG" item in sections defines. But when I try to check it in my main.cpp file I see that no __DEBUG directive has been added (#else branch works): extern ...