Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

esptool for esp32, make app problem (ESPTOOL-836) #164

Closed
ghost opened this issue Jan 5, 2017 · 4 comments
Closed

esptool for esp32, make app problem (ESPTOOL-836) #164

ghost opened this issue Jan 5, 2017 · 4 comments

Comments

@ghost
Copy link

ghost commented Jan 5, 2017

.

@projectgus
Copy link
Contributor

Thanks for reporting this. It seems like there's two bugs here, esptool shouldn't be printing such an enormous stack trace for "IOError: [Errno 2] No such file or directory: '/home/michal/esp32/myapp/build/app-template.elf"

Then there's what looks like it might be an esp-idf bug, the ELF file doesn't exist at the time elf2image is being called.

Can you please run 'make V=1' and attach the output as a log file to a comment here (or post it on gist.github.com or another service)?

@projectgus
Copy link
Contributor

Thanks. I didn't think through my request properly, you can do a 'make clean' and then 'make V=1' and update the log with that output? Thanks.

@projectgus
Copy link
Contributor

Something very odd is happening here:

This line should link a bootloader ELF, output to /home/michal/esp32/myapp/build/bootloader/bootloader.elf

xtensa-esp32-elf-gcc -nostdlib -L/home/michal/esp32/myapp/build/bootloader/esptool_py -L/home/michal/esp32/myapp/build/bootloader/bootloader -L/home/michal/esp32/myapp/build/bootloader/bootloader_support -L/home/michal/esp32/myapp/build/bootloader/log -L/home/michal/esp32/myapp/build/bootloader/spi_flash -L/home/michal/esp32/myapp/build/bootloader/micro-ecc -L/home/michal/esp32/myapp/build/bootloader/main -u call_user_start_cpu0  -Wl,--gc-sections -Wl,-static -Wl,--start-group  -lbootloader_support -llog -lspi_flash -lmicro-ecc -L /home/michal/esp32/esp-idf/components/bootloader/src/main -lmain -T esp32.bootloader.ld -T /home/michal/esp32/esp-idf/components/esp32/ld/esp32.rom.ld -lgcc -Wl,--end-group -Wl,-EL -o /home/michal/esp32/myapp/build/bootloader/bootloader.elf -Wl,-Map=/home/michal/esp32/myapp/build/bootloader/bootloader.map

It seems to succeed, and then the very next line refers to the same ELF file path:

python /home/michal/esp32/esp-idf/components/esptool_py/esptool/esptool.py --chip esp32 elf2image --flash_mode "dio" --flash_freq "40m" --flash_size "16MB"  -o /home/michal/esp32/myapp/build/bootloader/bootloader.bin /home/michal/esp32/myapp/build/bootloader/bootloader.elf

Which causes an error because the file doesn't exist.

  • Does the build/bootloader directory exist?
  • Can you find a bootloader.elf anywhere in your build directory?
  • What toolchain are you using and how did you compile/install it?
  • Is there anything in /home/michal/esp32/myapp/build/bootloader/bootloader.map

@ghost ghost closed this as completed Jan 7, 2017
@projectgus
Copy link
Contributor

Very unusual, but I'm glad you got it working OK.

@github-actions github-actions bot changed the title esptool for esp32, make app problem esptool for esp32, make app problem (ESPTOOL-836) Mar 27, 2024
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant