issues to write "flash status" at ESP32D0 (write_flash_status)

ALEBORTOT
Posts: 1
Joined: Mon Feb 14, 2022 2:28 pm

issues to write "flash status" at ESP32D0 (write_flash_status)

Postby ALEBORTOT » Mon Feb 14, 2022 5:28 pm

Hi All,

Im trying to rewrite flash status at ESP32D0WDQ6 using esptool but I has no success.

The esptool show me that there is no change at flash status value.

I executed this esptool command:

C:\Users\Bortot\AppData\Local\Arduino15\packages\esp32\tools\esptool_py\2.6.1/esptool.exe -p COM175 -b 115200 write_flash_status --bytes 2 --non-volatile 0x0200

Code: Untitled.txt Select all


esptool.py v2.6
Serial port COM175
Connecting....
Detecting chip type... ESP32
Chip is ESP32D0WDQ6 (revision 1)
Features: WiFi, BT, Dual Core, 240MHz, VRef calibration in efuse, Coding Scheme None
MAC: 4c:11:ae:90:95:bc
Uploading stub...
Running stub...
Stub running...
Initial flash status: 0x7bfc
Setting flash status: 0x0200
After flash status: 0x7bfc
Hard resetting via RTS pin...
You can see that the value 0x7bfc didnt change to 0x0200 as expected.

Can you help-me to understand why it not working ?


The ESP32 , esptool , cable, ftdi interface, strap pins, power, power capacitance are ok, because the comands [ read flash ], [ erase flash ] and [ write flash ] are working fine and showed below.

::===============================
:: Read Flash works fine
::===============================

C:\Users\Bortot\AppData\Local\Arduino15\packages\esp32\tools\esptool_py\2.6.1/esptool.exe -p COM175 -b 115200 read_flash 0 0x400000 flash_contents.bin

Code: Untitled.txt Select all


esptool.py v2.6
Serial port COM175
Connecting....
Detecting chip type... ESP32
Chip is ESP32D0WDQ6 (revision 1)
Features: WiFi, BT, Dual Core, 240MHz, VRef calibration in efuse, Coding Scheme None
MAC: 4c:11:ae:90:95:bc
Uploading stub...
Running stub...
Stub running...
4096 (0 %)
....
4194304 (100 %)
Read 4194304 bytes at 0x0 in 388.2 seconds (86.4 kbit/s)...
Hard resetting via RTS pin...

::===============================
:: Erase Flash works fine
::===============================

C:\Users\Bortot\AppData\Local\Arduino15\packages\esp32\tools\esptool_py\2.6.1/esptool.exe --chip esp32 -p COM175 -b 115200 erase_flash >>teste.txt

Code: Untitled.txt Select all


esptool.py v2.6
Serial port COM175
Connecting.....
Chip is ESP32D0WDQ6 (revision 1)
Features: WiFi, BT, Dual Core, 240MHz, VRef calibration in efuse, Coding Scheme None
MAC: 4c:11:ae:90:95:bc
Uploading stub...
Running stub...
Stub running...
Erasing flash (this may take a while)...
Chip erase completed successfully in 48.0s
Hard resetting via RTS pin...

::===============================
:: Write Flash works fine
::===============================

C:\Users\Bortot\AppData\Local\Arduino15\packages\esp32\tools\esptool_py\2.6.1/esptool.exe -p COM175 -b 115200 write_flash 0x0 flash_contents.bin

Code: Untitled.txt Select all


esptool.py v2.6
Serial port COM175
Connecting......
Detecting chip type... ESP32
Chip is ESP32D0WDQ6 (revision 1)
Features: WiFi, BT, Dual Core, 240MHz, VRef calibration in efuse, Coding Scheme None
MAC: 4c:11:ae:90:95:bc
Uploading stub...
Running stub...
Stub running...
Configuring flash size...
Auto-detected Flash size: 16MB
Compressed 4194304 bytes to 124553...
Writing at 0x00000000... (12 %)
Writing at 0x00004000... (25 %)
Writing at 0x00008000... (37 %)
Writing at 0x0000c000... (50 %)
Writing at 0x00010000... (62 %)
Writing at 0x00014000... (75 %)
Writing at 0x00018000... (87 %)
Writing at 0x0001c000... (100 %)
Wrote 4194304 bytes (124553 compressed) at 0x00000000 in 11.4 seconds (effective 2950.4 kbit/s)...
Hash of data verified.
Leaving...
Hard resetting via RTS pin...

::===============================
:: Read flash status works fine
::===============================

C:\Users\Bortot\AppData\Local\Arduino15\packages\esp32\tools\esptool_py\2.6.1/esptool.exe --chip esp32 -p COM175 -b 115200 erase_flash >>teste.txtC:\Users\Bortot\AppData\Local\Arduino15\packages\esp32\tools\esptool_py\2.6.1/esptool.exe -p COM175 -b 115200 read_flash_status --bytes 2

Code: Untitled.txt Select all


esptool.py v2.6
Serial port COM175
Connecting...
Detecting chip type... ESP32
Chip is ESP32D0WDQ6 (revision 1)
Features: WiFi, BT, Dual Core, 240MHz, VRef calibration in efuse, Coding Scheme None
MAC: 4c:11:ae:90:95:bc
Uploading stub...
Running stub...
Stub running...
Status value: 0x7bfc
Hard resetting via RTS pin...

Thanks for your help in advance.

Who is online

Users browsing this forum: No registered users and 1 guest