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

What to do, if "Wrong boot mode detected (0x13)! (ESPTOOL-801)" appears on mac #949

Closed
fft1010 opened this issue Jan 26, 2024 · 3 comments
Closed

Comments

@fft1010
Copy link

fft1010 commented Jan 26, 2024

Problem with flashing ESP on Mac solved

The problem was two folded
1.) I had a project, where another hardware was connected to the ESP32. It seems, that this always put the ESP32 out of the programming mode. I disconnected it, and now it worked.

2.) The flashing that works for me on my Mac:

run the needed esptool.pc command, e.g.

esptool.py --port /dev/tty.SLAB_USBtoUART --before no_reset --baud 115200 flash_id

When you hit [ENTER] esptool.py tries to connect and prints "..." (dots)
During printing press RESET button than BOOT button on the ESP32 than release RESET Button but KEEP pressing the BOOT button until die esptool.py gets the connection and the dots stop producing. THAN you can release the BOOT button.

I had to do this for every command that I wanted to send to the ESP32.

If the esptool.py gives up too fast for you, than add

--connect-attempts 15

so that the line above looks like

esptool.py --port /dev/tty.SLAB_USBtoUART --connect-attempts 15 --before no_reset --baud 115200 flash_id

Sorry, as I am a newbe I needed the pressing and releasing that clear, and the hardware connection was also a bummer for me. But again: Thanks for this great tool; this "documentation" is my very small support for this project.

thank you
Juergen

@github-actions github-actions bot changed the title still persistent on mac Wrong boot mode detected (0x13)! still persistent on mac Wrong boot mode detected (0x13)! (ESPTOOL-801) Jan 26, 2024
@Jason2866
Copy link
Contributor

Not an esptool.py issue. Either your connected esp32 has a defect or your MAC software setup is screwed.
Using a Mac too, everything works as described in the docs.

@dobairoland
Copy link
Collaborator

Your steps could be simplified just to hold the BOOT button, start esptool and hold it until esptool gets trough the connection phase.

The issue looks related to your board and hardware connections. I don't think anything can be done on the esptool side for this.

Here you can read about automatic bootloader selection: https://docs.espressif.com/projects/esptool/en/latest/esp32/advanced-topics/boot-mode-selection.html#automatic-bootloader. This is what you need to get to work without manually pushing any buttons during flashing.

@fft1010
Copy link
Author

fft1010 commented Jan 29, 2024

Hi @Jason2866 and @dobairoland ,
I noticed that I did not fully understand the way when the ESP is in download mode. What puzzled me was, that I could "see" the "waiting for DL" in the terminal, but if I started esptool.py it did not do nothing.
Colclusion: Basically it way my newbe fault, but I hope the description above can help others. No "bug", but I do not know how to change this from "bug" to something more senseful.

thanks
Juergen

@fft1010 fft1010 closed this as completed Jan 29, 2024
@fft1010 fft1010 changed the title still persistent on mac Wrong boot mode detected (0x13)! (ESPTOOL-801) What to do, if "Wrong boot mode detected (0x13)! (ESPTOOL-801)" appears on mac Jan 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants