espressif / arduino-esp32

Arduino core for the ESP32
GNU Lesser General Public License v2.1
13.06k stars 7.31k forks source link

OTA+UART+ESP32+arduino #8935

Open wasure6 opened 8 months ago

wasure6 commented 8 months ago

Related area

board support

Hardware specification

ESP32-D0WD-V3

Is your feature request related to a problem?

Hello, at present, my program is implemented based on arduino software, because arduino has libraries that I rely on, then there is a problem of late maintenance: OTA.

Describe the solution you'd like

I want to ask, can do a serial communication level OTA? I could customize the protocol.For example, the total flash size of the chip is 30M,0~10M is used to store boot code, 10M~20M is used to store APP code, and 20M~30M is used as a backup area to store the code to be updated. In this way, not only the BOOT can be updated, but also the APP can be updated. At this time, I need to use the address to read and write the FLASH code (library function), and the address jump to the corresponding code (or library function). How do you splice two pieces of code together and burn them to the chip? During debugging, how to view the entire flash tool?

Describe alternatives you've considered

No response

Additional context

No response

I have checked existing list of Feature requests and the Contribution Guide

lbernstone commented 8 months ago

You could have a bootloader that moves files around, but that is not going to be trivial. See UF2. This conversation is more appropriate for https://esp32.com than the bug reports. I'm not sure what tools you are really looking for, but esptool can merge binary files. I don't think it is rocket science, it is just concatenating partitions.