mirror of
https://github.com/espruino/Espruino.git
synced 2025-12-08 19:06:15 +00:00
ESP32 IDF4 builds
First install the 4.4.7 IDF and have it on your path: https://docs.espressif.com/projects/esp-idf/en/v4.4.7/esp32/get-started/index.html
BOARD=ESP32_IDF4 RELEASE=1 make
STATUS
It builds, but fails as out of RAM.
Pretty sure we need to toggle some flag in sdkconfig which sets the compiler to put all consts in flash
How it works
To enable, in BOARD.py set family to ESP32_IDF4.
make/family/ESP32_IDF4.makeis then called, and creates abuildfolder inbin/buildmake/targets/ESP32_IDF4.makecreates a CMakeFile and callsidf.pyto do the build
Setup
So far we need:
idf.py set-target esp32
idf.py menuconfig
# then
# Component - > FreeRTOS -> Kernel -> CONFIG_FREERTOS_ENABLE_BACKWARD_COMPATIBILITY must be enabled
# ESP NETIF Adapter -> Enable backward compatible tcpip_adapter interface