Hey, great tool! I already build a firmware for the Pico with it.
System is Win10 with WSL(2) with Ubuntu as guest.
I now try to do that same for a ESP32 board. And I am stuck.
I come to
... Project build complete. To flash, run this command: /home/cw/.espressif/python_env/idf5.0_py3.8_env/bin/python ../../../esp-idf/components/esptool_py/esptool/esptool.py -p (PORT) -b 460800 --before default_reset --after hard_reset --chip esp32 write_flash --flash_mode dio --flash_size 4MB --flash_freq 40m 0x1000 build-ESP32_GENERIC/bootloader/bootloader.bin 0x8000 build-ESP32_GENERIC/partition_table/partition-table.bin 0x10000 build-ESP32_GENERIC/micropython.bin or run 'idf.py -p (PORT) flash' bootloader @0x001000 23056 ( 5616 remaining) partitions @0x008000 3072 ( 1024 remaining) application @0x010000 1885120 ( 146496 remaining) total 1950656 make: Leaving directory '/home/cw/micropython-builder/micropython/ports/esp32'
I changed the (PORT) argument and the path to esptool.py
I get then:
cw@DESKTOP-PCKKJN6:~/micropython-builder$ /home/cw/.espressif/python_env/idf5.0_py3.8_env/bin/python ./esp-idf/components/esptool_py/esptool/esptool. py -p /dev/ttyACM0 -b 460800 --before default_reset --after hard_reset --chip esp32 write_flash --flash_mode dio --flash_size 4MB --flash_freq 40m 0 x1000 build-ESP32_GENERIC/bootloader/bootloader.bin 0x8000 build-ESP32_GENERIC/partition_table/partition-table.bin 0x10000 build-ESP32_GENERIC/microp ython.bin usage: esptool write_flash [-h] [--erase-all] [--flash_freq {keep,80m,60m,48m,40m,30m,26m,24m,20m,16m,15m,12m}] [--flash_mode {keep,qio,qout,dio,dout}] [--flash_size {detect,keep,256KB,512KB,1MB,2MB,2MB-c1,4MB,4MB-c1,8MB,16MB,32MB,64MB,128MB}] [--spi-connection SPI_CONNECTION] [--no-progress] [--verify] [--encrypt] [--encrypt-files <address> <filename> [<address> <filename> ...]] [--ignore-flash-encryption-efuse-setting] [--force] [--compress | --no-compress] <address> <filename> [<address> <filename> ...] esptool write_flash: error: argument <address> <filename>: [Errno 2] No such file or directory: 'build-ESP32_GENERIC/bootloader/bootloader.bin'
So I am as it seems in a wrong path after the command.
cw@DESKTOP-PCKKJN6:~/micropython-builder$ ./scripts/esp32/generic.sh
idf.py says:
cw@DESKTOP-PCKKJN6:~/micropython-builder$ python3 ./esp-idf/tools/idf.py -p /dev/ttyACM0 flash Please use idf.py only in an ESP-IDF shell environment. cw@DESKTOP-PCKKJN6:~/micropython-builder$
Help :) (I am quit out of my comfort zone here)
Hey, great tool! I already build a firmware for the Pico with it.
System is Win10 with WSL(2) with Ubuntu as guest.
I now try to do that same for a ESP32 board. And I am stuck.
I come to
... Project build complete. To flash, run this command: /home/cw/.espressif/python_env/idf5.0_py3.8_env/bin/python ../../../esp-idf/components/esptool_py/esptool/esptool.py -p (PORT) -b 460800 --before default_reset --after hard_reset --chip esp32 write_flash --flash_mode dio --flash_size 4MB --flash_freq 40m 0x1000 build-ESP32_GENERIC/bootloader/bootloader.bin 0x8000 build-ESP32_GENERIC/partition_table/partition-table.bin 0x10000 build-ESP32_GENERIC/micropython.bin or run 'idf.py -p (PORT) flash' bootloader @0x001000 23056 ( 5616 remaining) partitions @0x008000 3072 ( 1024 remaining) application @0x010000 1885120 ( 146496 remaining) total 1950656 make: Leaving directory '/home/cw/micropython-builder/micropython/ports/esp32'I changed the (PORT) argument and the path to esptool.py
I get then:
cw@DESKTOP-PCKKJN6:~/micropython-builder$ /home/cw/.espressif/python_env/idf5.0_py3.8_env/bin/python ./esp-idf/components/esptool_py/esptool/esptool. py -p /dev/ttyACM0 -b 460800 --before default_reset --after hard_reset --chip esp32 write_flash --flash_mode dio --flash_size 4MB --flash_freq 40m 0 x1000 build-ESP32_GENERIC/bootloader/bootloader.bin 0x8000 build-ESP32_GENERIC/partition_table/partition-table.bin 0x10000 build-ESP32_GENERIC/microp ython.bin usage: esptool write_flash [-h] [--erase-all] [--flash_freq {keep,80m,60m,48m,40m,30m,26m,24m,20m,16m,15m,12m}] [--flash_mode {keep,qio,qout,dio,dout}] [--flash_size {detect,keep,256KB,512KB,1MB,2MB,2MB-c1,4MB,4MB-c1,8MB,16MB,32MB,64MB,128MB}] [--spi-connection SPI_CONNECTION] [--no-progress] [--verify] [--encrypt] [--encrypt-files <address> <filename> [<address> <filename> ...]] [--ignore-flash-encryption-efuse-setting] [--force] [--compress | --no-compress] <address> <filename> [<address> <filename> ...] esptool write_flash: error: argument <address> <filename>: [Errno 2] No such file or directory: 'build-ESP32_GENERIC/bootloader/bootloader.bin'So I am as it seems in a wrong path after the command.
cw@DESKTOP-PCKKJN6:~/micropython-builder$ ./scripts/esp32/generic.shidf.py says:
cw@DESKTOP-PCKKJN6:~/micropython-builder$ python3 ./esp-idf/tools/idf.py -p /dev/ttyACM0 flash Please use idf.py only in an ESP-IDF shell environment. cw@DESKTOP-PCKKJN6:~/micropython-builder$Help :) (I am quit out of my comfort zone here)