Build the ESP32 IDF Libraries
Using the instructions on the Espressif website.
Download the complete Msys2 enviroment and toolchain and unzip to c:\msys2
Download the required ESP IDF into the nanoClr build default location c:\Esp32_tools\esp-idf-v3.3.1
Set up your Windows environment with the IDF_PATH=c:\Esp32_tools\esp-idf-v3.3.1
Start Msys command shell C:\msys32\mingw32.exe
cd /c/esp32_tools/esp-idf-v3.3.1/examples/get-started/blink/
run:
make menuconfig
Change the following options:
- Esp32 specific/Cpu frquency 240Mhz
- Esp32 specific/Initialize Task Watchdog Timer in startup = OFF
- Esp32 specific/Main XTAL frequency = Autodetect
- LWIP SO RCVbuf
- Component config/Bluetooth enable
- FatFS Long filename support(Heap)
- Psram autodetect 32bit or 64bit
Save and Exit
Run make to build blink project
Exit msys2
Copy the libraries to the Esp32_tools/lib-v3.3.1 directory
Copy the nf-interpreter\targets\FreeRTOS_ESP32\ESP32_WROOM_32\CopyLibs.cmd to the c:\esp32_tools\esp-idf-v3.3.1\examples\get-started\blink directory Open windows command in same directory and run batch file.
This will create and copy all the libraries plus the bootloader.bin to the c:\esp32_tools\libs-v3.3.1 directory
copy the updated build/include/sdkconfig.h to the nf-interpreter\targets\FreeRTOS_ESP32\ESP32_WROOM_32 directory
Check/update build files
In the nf-interpreter repo check/update the following files:
- azure-pipelines-templates\build-esp32.ymlAppveyor.yml
- azure-pipelines-templates\download-install-esp32-build-components.yml
- install-scripts\install-esp32-idf.ps1
- install-scripts\install_esp32-libs.ps1