How can I write to an app partition using the AT command SYSFLASH?

espresselse
Posts: 3
Joined: Tue Jun 26, 2018 10:23 pm

How can I write to an app partition using the AT command SYSFLASH?

Postby espresselse » Thu May 21, 2020 11:35 pm

How can I write to an app partition using the AT command SYSFLASH?

This is my setup
Windows 10 x64
Hardware ESP32-WROVER-B
Toolchain version: esp-2019r2
Compiler version: 8.2.0
AT version:2.1.0.0-dev(b8d0d4d - May 13 2020 09:42:58) (In other words ESP-AT)
SDK version:v4.0-327-gfe67bedee
compile time(0d586ac):May 20 2020 17:00:32
Bin version:2.0.0(WROVER-32)

I have created an app partition called ota_2 in my secondary partition table.

Code: Select all

AT+SYSFLASH?
+SYSFLASH:"ble_data",64,1,0x21000,0x3000
+SYSFLASH:"server_cert",64,2,0x24000,0x2000
+SYSFLASH:"server_key",64,3,0x26000,0x2000
+SYSFLASH:"server_ca",64,4,0x28000,0x2000
+SYSFLASH:"client_cert",64,5,0x2a000,0x2000
+SYSFLASH:"client_key",64,6,0x2c000,0x2000
+SYSFLASH:"client_ca",64,7,0x2e000,0x2000
+SYSFLASH:"factory_param",64,8,0x30000,0x1000
+SYSFLASH:"wpa2_cert",64,9,0x31000,0x2000
+SYSFLASH:"wpa2_key",64,10,0x33000,0x2000
+SYSFLASH:"wpa2_ca",64,11,0x35000,0x2000
+SYSFLASH:"mqtt_cert",64,12,0x37000,0x2000
+SYSFLASH:"mqtt_key",64,13,0x39000,0x2000
+SYSFLASH:"mqtt_ca",64,14,0x3b000,0x2000
+SYSFLASH:"ota_2",0,18,0x40000,0x30000
+SYSFLASH:"fatfs",1,129,0x70000,0x90000

OK
I can read from the other partitions. For example.

Code: Select all

AT+SYSFLASH=2,"server_key",0,4096
However, I cannot read or write to ota_2. For example,

Code: Select all

AT+SYSFLASH=2,"ota_2",0,4096
What am I doing wrong? Where is there a hole in my understanding? My overall goal is to load a binary file into a partition over UART0 using just U0TXD and U0RXD.

Who is online

Users browsing this forum: Baidu [Spider], Google [Bot] and 27 guests