I found this information for the serial protocol --> attached file.
Does anyone know then how can I talk to the ROM bootloader?
How can I talk to the rom bootloader
How can I talk to the rom bootloader
- Attachments
-
- Capture.JPG (50.95 KiB) Viewed 13742 times
Re: How can I talk to the rom bootloader
Think of the ESP32 as having a ROM hosted application that gets control when you boot the ESP32 in "Download" mode. This application then listens on the serial port for incoming protocol which is described in the document you found. There is a rich set of commands. However, as you realize, the application is in ROM and hence can't be changed. However, Espressif solved this problem by "optionally" allowing a replacement that can be loaded into RAM and executed. Think of this as a super-set of the same functions as found in ROM. This RAM based application provides additional commands that can be read by serial above and beyond those in ROM and these are what are documented here. The RAM based download application is built into esptool and when you use THAT tool, the RAM application is implicitly loaded.
Free book on ESP32 available here: https://leanpub.com/kolban-ESP32
Re: How can I talk to the rom bootloader
The document that you found seems to be this wiki page:
https://github.com/espressif/esptool/wi ... l-Protocol
You can take a look at esptool.py to see how it works, as a reference.
If you run "esptool.py --no-stub --trace ..." then you'll get a full dump of each command which is sent to the ROM bootloader and each response which comes back.
https://github.com/espressif/esptool/wi ... l-Protocol
You can take a look at esptool.py to see how it works, as a reference.
If you run "esptool.py --no-stub --trace ..." then you'll get a full dump of each command which is sent to the ROM bootloader and each response which comes back.
Re: How can I talk to the rom bootloader
Thanks a lot guys for your replies!
Now it's time to put them into implementation. Wish me luck
Now it's time to put them into implementation. Wish me luck
Re: How can I talk to the rom bootloader
Actually I disoldered the module WROOM from the devkitc and I only connected the UART pins, VCC, ground and EN and GPIO0 to gnd with buttons the last two of them. So if I don't press the button ENABLE and GPIO0 are floating if I press the button the go low.
I wanted to verify that I can program the chip through UART without using the dev board.
No I try to talk to the ROM bootloader through esptool.py through UART but it is trying by default to use SPI.
Is it possible to use UART instead somehow?
Thank you in advance.
I wanted to verify that I can program the chip through UART without using the dev board.
No I try to talk to the ROM bootloader through esptool.py through UART but it is trying by default to use SPI.
Is it possible to use UART instead somehow?
Thank you in advance.
- Attachments
-
- Capture2.JPG (59.61 KiB) Viewed 13679 times
-
- Capture.JPG (50.54 KiB) Viewed 13679 times
Re: How can I talk to the rom bootloader
Hi anakyr,
The error message "ESP32 ROM does not support command erase_flash" suggests that esptool.py is talking to the ESP32 ROM bootloader.
The error message is because some commands are not supported in "--no-stub" mode, because they rely on uploading a software "stub bootloader" to IRAM and then running this loader program. You can either remove the "--no-stub" argument, or try a different command.
The error message "ESP32 ROM does not support command erase_flash" suggests that esptool.py is talking to the ESP32 ROM bootloader.
The error message is because some commands are not supported in "--no-stub" mode, because they rely on uploading a software "stub bootloader" to IRAM and then running this loader program. You can either remove the "--no-stub" argument, or try a different command.
Who is online
Users browsing this forum: Majestic-12 [Bot] and 226 guests