Skip to content

Compilation fails for ESP32 : myproject.partition.bin missing. #163

Closed
@UltimateUnicorn

Description

@UltimateUnicorn

Hello. Thanks for the support and many advices you've already provided here.
I would like to report a bug that occurs when I try to compile a sketch for an ESP32.

My setup

Steps to reproduce

  • Create a new project (I copied the HelloServer.ino from the examples directory into a new directory called test and renamed HelloServer.ino into test.ino).
  • Compile it using arduino-cli compile --fqbn esp32:esp32:esp32 test (from the parent directory of test) -> works well (I got a "normal" output from the compiler and the following files have been created in the test folder : test.esp32.esp32.esp32.bin & test.esp32.esp32.esp32.elf.
  • Upload the project : arduino-cli upload --fqbn esp32:esp32:esp32 -p /dev/ttyUSB0 test -> doesn't work. I get the following output :

No new serial port detected.
usage: esptool write_flash [-h] [--flash_freq {keep,40m,26m,20m,80m}]
[--flash_mode {keep,qio,qout,dio,dout}]
[--flash_size FLASH_SIZE]
[--spi-connection SPI_CONNECTION] [--no-progress]
[--verify] [--compress | --no-compress]

[ ...]
esptool write_flash: error: argument : [Errno 2] No such file or directory: 'test/test.esp32.esp32.esp32.partitions.bin'
Error: exit status 2
Error during upload.

Additional information

  • When using the Espressif toolchain & ESP-IDF on the same computer I can upload the sketch and it runs.
  • I used the exact same procedure using the Arduino IDE version 1.8.8 under Windows : it worked flawlessly.
  • I just realized that there is no newline between "directory:" and "test/tes....." on my console. Don't know if it's relevant.

Feel free to contact me for additional details / testings.
Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions