v923z / micropython-ulab

a numpy-like fast vector module for micropython, circuitpython, and their derivatives
https://micropython-ulab.readthedocs.io/en/latest
MIT License
429 stars 116 forks source link

[BUG] ESP32-based boards firmware installation fails #683

Closed MaxRondelli closed 2 months ago

MaxRondelli commented 2 months ago

Describe the bug Hi there,

I am trying to set up and flash the firmware ESP32-based boards on my M5Stack Core device. I am following the documentation but I get stuck once I run this command:

make submodules & make all

I am following completely your guide and so far everything worked well.

Additional context This is my stack trace of the error.

max@Max:~/librerie-esp32/micropython/ports/esp32$ make submodules & make all
[1] 135159
Use make V=1 or set BUILD_VERBOSE in your environment to increase build verbosity.
Use make V=1 or set BUILD_VERBOSE in your environment to increase build verbosity.
Including User C Module from ../../../ulab/code
Including User C Module from ../../../ulab/code
Building with ESP IDF v3
Building with ESP IDF v3
Updating submodules: lib/berkeley-db-1.xx
GEN build-GENERIC/sdkconfig.h
mkdir -p build-GENERIC/bootloader/../../esp32/esp-idf/components/bootloader/subproject/main/
CC ../../esp32/esp-idf/components/bootloader_support/src/bootloader_clock.c
CC ../../esp32/esp-idf/components/bootloader_support/src/bootloader_common.c
CC ../../esp32/esp-idf/components/bootloader_support/src/bootloader_flash.c
CC ../../esp32/esp-idf/components/bootloader_support/src/bootloader_flash_config.c
CC ../../esp32/esp-idf/components/bootloader_support/src/bootloader_init.c
CC ../../esp32/esp-idf/components/bootloader_support/src/bootloader_random.c
CC ../../esp32/esp-idf/components/bootloader_support/src/bootloader_utility.c
CC ../../esp32/esp-idf/components/bootloader_support/src/flash_qio_mode.c
CC ../../esp32/esp-idf/components/bootloader_support/src/esp_image_format.c
CC ../../esp32/esp-idf/components/bootloader_support/src/flash_encrypt.c
CC ../../esp32/esp-idf/components/bootloader_support/src/flash_partitions.c
CC ../../esp32/esp-idf/components/bootloader_support/src/bootloader_sha.c
CC ../../esp32/esp-idf/components/bootloader_support/src/secure_boot_signatures.c
CC ../../esp32/esp-idf/components/bootloader_support/src/secure_boot.c
AR build-GENERIC/bootloader/libbootloader_support.a
CC ../../esp32/esp-idf/components/log/log.c
AR build-GENERIC/bootloader/liblog.a
CC ../../esp32/esp-idf/components/spi_flash/spi_flash_rom_patch.c
AR build-GENERIC/bootloader/libspi_flash.a
CC ../../esp32/esp-idf/components/micro-ecc/micro-ecc/uECC.c
AR build-GENERIC/bootloader/libmicro-ecc.a
CC ../../esp32/esp-idf/components/soc/esp32/cpu_util.c
CC ../../esp32/esp-idf/components/soc/esp32/gpio_periph.c
CC ../../esp32/esp-idf/components/soc/esp32/rtc_clk.c
CC ../../esp32/esp-idf/components/soc/esp32/rtc_clk_init.c
CC ../../esp32/esp-idf/components/soc/esp32/rtc_init.c
CC ../../esp32/esp-idf/components/soc/esp32/rtc_periph.c
CC ../../esp32/esp-idf/components/soc/esp32/rtc_pm.c
CC ../../esp32/esp-idf/components/soc/esp32/rtc_sleep.c
CC ../../esp32/esp-idf/components/soc/esp32/rtc_time.c
CC ../../esp32/esp-idf/components/soc/esp32/rtc_wdt.c
CC ../../esp32/esp-idf/components/soc/esp32/sdio_slave_periph.c
CC ../../esp32/esp-idf/components/soc/esp32/sdmmc_periph.c
CC ../../esp32/esp-idf/components/soc/esp32/soc_memory_layout.c
CC ../../esp32/esp-idf/components/soc/esp32/spi_periph.c
CC ../../esp32/esp-idf/components/soc/src/memory_layout_utils.c
AR build-GENERIC/bootloader/libsoc.a
CC ../../esp32/esp-idf/components/bootloader/subproject/main/bootloader_start.c
AR build-GENERIC/bootloader/libmain.a
LINK build-GENERIC/bootloader.elf
Create build-GENERIC/bootloader.bin
esptool.py v2.8
Create build-GENERIC/partitions.bin
make: python2: No such file or directory
make: *** [Makefile:968: build-GENERIC/partitions.bin] Error 127
[1]+  Done                    make submodules

python2 seems be the problem but I don't know which can be the solution.

Thank you for your time.

MaxRondelli commented 2 months ago

I close the issue. I suggest you to follow the instruction explained here.