title: Unable to compile ESP-IDF example project
body: <p>I'm trying to compile my first ESP32 example project.
  I set up Visual Studio Code with all the latest tools. (Python, toolschain, etc).
  I'm not sure what exactly I need as I'm new in this environment, so maybe I missed something.</p>
  <p>I followed the user guide on how to create and compile the first project, I used the Blink project from the example folder.</p>
  <p>Here is what I get.</p>
  <pre><code>&gt; Executing task: cmake -G Ninja .. &lt;
  
  -- Project is not inside a git repository, or git repository has no commits; will not use 'git describe' to determine PROJECT_VER.
  -- Building ESP-IDF components for target esp32s2
  -- Checking Python dependencies...
  Python requirements from C:\Users\dmitryke\esp\esp-idf\requirements.txt are satisfied.
  -- Project sdkconfig file C:/ESP32_projects/blink/sdkconfig
  Loading defaults file C:/ESP32_projects/blink/sdkconfig.defaults...
  -- Components:
  -- Component paths:
  -- Configuring done
  -- Generating done
  -- Build files have been written to C:/ESP32_projects/blink/build
  
  The terminal will be reused by tasks, press any key to close it.
  
  &gt; Executing task: cmake --build . &lt;
  
  [1/1] Linking C executable blink.elf
  FAILED: blink.elf 
  cmd.exe /C &quot;cd . &amp;&amp; C:\Users\dmitryke\.espressif\tools\xtensa-esp32s2-elf\esp-2020r3-8.4.0\xtensa-esp32s2-elf\bin\xtensa-esp32s2-elf-gcc.exe -mlongcalls   CMakeFiles/blink.elf.dir/project_elf_src.c.obj  -o blink.elf  -Wl,--cref -Wl,--Map=C:/ESP32_projects/blink/build/blink.map  -fno-rtti  -fno-lto &amp;&amp; cd .&quot;
  c:/users/dmitryke/.espressif/tools/xtensa-esp32s2-elf/esp-2020r3-8.4.0/xtensa-esp32s2-elf/bin/../lib/gcc/xtensa-esp32s2-elf/8.4.0/../../../../xtensa-esp32s2-elf/bin/ld.exe: c:/users/dmitryke/.espressif/tools/xtensa-esp32s2-elf/esp-2020r3-8.4.0/xtensa-esp32s2-elf/bin/../lib/gcc/xtensa-esp32s2-elf/8.4.0/../../../../xtensa-esp32s2-elf/lib/no-rtti/crt0.o:(.literal+0x0): undefined reference to `main'
  collect2.exe: error: ld returned 1 exit status
  ninja: build stopped: subcommand failed.
  The terminal process &quot;C:\windows\System32\WindowsPowerShell\v1.0\powershell.exe -Command cmake --build .&quot; terminated with exit code: 1.
  
  Terminal will be reused by tasks, press any key to close it.
  </code></pre>
  <p>I removed everything from the blink.c to avoid code errors.</p>
  <p>blink.c</p>
  <pre><code>#include &lt;stdio.h&gt;
  #include &quot;freertos/FreeRTOS.h&quot;
  #include &quot;freertos/task.h&quot;
  #include &quot;driver/gpio.h&quot;
  #include &quot;sdkconfig.h&quot;
  
  /* Can use project configuration menu (idf.py menuconfig) to choose the GPIO to blink,
     or you can edit the following line and set a number here.
  */
  #define BLINK_GPIO 0x01
  
  void app_main(void)
  {
      while(1) {    }
  }
  
  </code></pre>
  <p>Another issue, there is an option to run <code> idf.py menuconfig</code>.
  Sometimes it works and sometimes it says:</p>
  <pre><code>C:\ESP32_projects\blink&gt;idf.py menuconfig
  'idf.py' is not recognized as an internal or external command,
  operable program or batch file.
  </code></pre>
  <p>Any help will be appreciated!</p>