Example projects in VSCode don't build

aestetix
Posts: 9
Joined: Fri Apr 10, 2020 4:46 pm

Example projects in VSCode don't build

Postby aestetix » Sun Jun 07, 2020 3:05 pm

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.

aestetix
Posts: 9
Joined: Fri Apr 10, 2020 4:46 pm

Re: Example projects in VSCode don't build

Postby aestetix » Mon Jun 08, 2020 11:48 am

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.

Who is online

Users browsing this forum: No registered users and 22 guests