Page 1 of 1

Example projects in VSCode don't build

Posted: Sun Jun 07, 2020 3:05 pm
by aestetix
I've tried the blink and Hello World example projects in VSCode and neither build out of the box. Both have unresolved defines, e.g. CONFIG_FREERTOS_HZ. Trying to run idf.py from the terminal fails (unknown command).

I am on Windows 8.1. Does it work properly on Linux? Seems like maybe a path issue.

Re: Example projects in VSCode don't build

Posted: Mon Jun 08, 2020 11:48 am
by aestetix
Fixed it. The issue is that build/config/sdkconfig.h is added by the build system but the IDE doesn't realize that and so flags up the defines in there as missing. You can either ignore it or add it via #include and it will build OK either way.