Complier error: check_config.h no such file

This is my first time using Platformio on VSCode. I am trying to compile simple Hello World program but build stops with the following error message:
In file included from /home/ed/.platformio/packages/framework-espidf/components/mbedtls/include/mbedtls/sha256.h:29:0,
from /home/ed/.platformio/packages/framework-espidf/components/bootloader_support/src/bootloader_sha.c:22:
/home/ed/.platformio/packages/framework-espidf/components/mbedtls/port/include/mbedtls/esp_config.h:2665:34: fatal error: mbedtls/check_config.h: No such file or directory

This is my platformio.ini

[env:esp32dev]
platform = espressif32
framework = espidf
board = esp32dev
monitor_speed = 115200

This is my version after running command pio update

pdating tool-scons @ 2.20501.4 [Up-to-date]
Updating tool-unity @ 1.20403.0 [Up-to-date]
Updating contrib-pysite @ 0.3.2 [Up-to-date]
Updating contrib-piohome @ 1.0.2 [Up-to-date]
Updating tool-pioplus @ 1.4.6 [Up-to-date]

Platform Manager
================
Platform Espressif 32
--------
Updating espressif32 @ 1.3.0 [Up-to-date]
Updating tool-esptoolpy @ 1.20500.0 [Up-to-date]
Updating toolchain-xtensa32 @ 2.50200.80 [Up-to-date]
Updating tool-espotapy @ 1.1.2 [Up-to-date]
Updating framework-espidf @ 3.30003.0 [Up-to-date]
Updating tool-mkspiffs @ 2.230.0 [Up-to-date]

Platform Espressif 32
--------
Updating espressif32 @ d06285b [Up-to-date]
Updating tool-esptoolpy @ 1.20500.0 [Up-to-date]
Updating toolchain-xtensa32 @ 2.50200.80 [Up-to-date]
Updating tool-espotapy @ 1.1.2 [Up-to-date]
Updating framework-espidf @ 3.30003.0 [Up-to-date]
Updating tool-mkspiffs @ 2.230.0 [Up-to-date]

This is my simple Hello World program

#include <stdio.h>
#include "freertos/FreeRTOS.h"
#include "freertos/task.h"
#include "esp_system.h"
#include "esp_spi_flash.h"

void hello_task(void *pvParameter)
{
	while(1)
	{
	    printf("Hello world!\n");
	    vTaskDelay(100 / portTICK_RATE_MS);
	}
}


void app_main()
{
    xTaskCreate(&hello_task, "hello_task", 2048, NULL, 5, NULL);
}

Must be something simple I am doing wrong. Any ideas?

Does this example platform-espressif32/examples/espidf-hello-world at develop · platformio/platform-espressif32 · GitHub work for you?

Downloaded zip file.

Change directory to example

> cd platform-espressif32/examples/espidf-hello-world

# Build project
> platformio run

Still had same error.

Thanks

Hm… Try to remove totally ~/.platformio folder and start build again.

Had to exit VSCode and start again. VSCode ran a rebuild and after that I was able the run the Build of project.

This time it compiled successfully.

I assume something got corrupted in /.platformio ???

Thanks for the help

I think, yes! Missed files in packages :frowning: It’s very strange.