-
To generate the MicroPython (ESP32) firmware on a Windows 10 system, I installed ESP-IDF (v5.2.2) and successfully tested idf.py build with the example (esp-idf-v5.2.2\examples\get-started\hello_world). However, when I tried to generate the firmware using idf.py build in the MicroPython ESP32 port directory (micropython\ports\esp32), it consistently failed at the last step. I wonder if generating the firmware for micropython\ports\esp32 requires first building micropython\mpy-cross using make. However, Windows 10 lacks the necessary toolchain (e.g., make, Cmake, etc.) for this purpose. After setting up the toolchain correctly in Windows 10 using MSYS2, I successfully built micropython\mpy-cross with make. I also tested successfully make CROSS=1 in the MicroPython minimal port (micropython\ports\minimal). However, when attempting make CROSS for the MicroPython ESP32 (micropython\ports\esp32), it required idf.py from ESP-IDF. Unfortunately, idf.py cannot be executed in the MSYS2 command window (it throws an error about missing import click). How can this be resolved? Is it possible to directly use idf.py build for micropython\ports\esp32 in ESP-IDF (Windows) without first running make CROSS for micropython\mpy-cross? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
Have had similar issues in the past and solution was to install the 'right' version of click. Searching for the error should give some pointers.
It requires mpy-cross, as far as I'm aware, but that doesn't mean that must be built using make. Windows builds can be downloaded (sorry don't remember the link) or built using the MSVC toolchain. |
Beta Was this translation helpful? Give feedback.
-
【Challenges in Building MicroPython ESP32 Firmware with esp-idf and msys2 on Windows 10】 However, running Should I run |
Beta Was this translation helpful? Give feedback.
Have had similar issues in the past and solution was to install the 'right' version of click. Searching for the error should give some pointers.
It requires mpy-cross, as far as I'm aware, but that doesn't mean that must be built using make. Windows builds can be downloaded (sorry don't remember the link) or built using the MSVC toolchain.