OTA support and SPI Flash usage

imtiaz
Posts: 106
Joined: Wed Oct 26, 2016 1:34 am

OTA support and SPI Flash usage

Postby imtiaz » Wed Nov 23, 2016 1:40 am

Hi ESP32 experts,

I am designing our hardware and software such that I am relying on storing 2MBytes of data on our ESP32 SPI Flash which is a total of 4MBytes. So half for the ESP32 code and half for my application code.

At present this is working however I am not sure how the flash will be used when OTA support for upgrading the ESP32 is available.

Can someone working on OTA please confirm that I will be able to restrict the ESP32 code + data to use the first 2 MBytes? Assuming ofcourse that our ESP32 image is under 1MByte.

Many Thanks
Imtiaz

WiFive
Posts: 3529
Joined: Tue Dec 01, 2015 7:35 am

Re: OTA support and SPI Flash usage

Postby WiFive » Wed Nov 23, 2016 2:14 am

Good news is bootloader & partition table is all open source. So you can customize it to your needs.

ESP_igrr
Posts: 2072
Joined: Tue Dec 01, 2015 8:37 am

Re: OTA support and SPI Flash usage

Postby ESP_igrr » Wed Nov 23, 2016 2:39 am

You can define flash layout in the partition table, and bootloader/OTA library will follow the layout you have defined.

Aside from the secure boot sector (at 0x0000), 2nd stage bootloader (at 0x1000), and partition table (at 0x8000), SDK does not have any hard-wired addresses.

SpenZerX
Posts: 16
Joined: Sun Dec 13, 2015 9:23 am

Re: OTA support and SPI Flash usage

Postby SpenZerX » Wed Nov 23, 2016 8:29 am

Hello,

is the OTA process similar to the ESP8266 SDK NON-OS OTA process? (Server simply sends a file as answer to an HTTP request)

or do i need new code on Server and ESP32? Can i reuse code or do i need new code?
Creator of Smart Connected Devices - for EcSUHA.de Project

Who is online

Users browsing this forum: Bing [Bot] and 339 guests