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
  1. esptool.py v2.6
  2. Serial port COM175
  3. Connecting....
  4. Detecting chip type... ESP32
  5. Chip is ESP32D0WDQ6 (revision 1)
  6. Features: WiFi, BT, Dual Core, 240MHz, VRef calibration in efuse, Coding Scheme None
  7. MAC: 4c:11:ae:90:95:bc
  8. Uploading stub...
  9. Running stub...
  10. Stub running...
  11. Initial flash status: 0x7bfc
  12. Setting flash status: 0x0200
  13. After flash status:   0x7bfc
  14. 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
  1. esptool.py v2.6
  2. Serial port COM175
  3. Connecting....
  4. Detecting chip type... ESP32
  5. Chip is ESP32D0WDQ6 (revision 1)
  6. Features: WiFi, BT, Dual Core, 240MHz, VRef calibration in efuse, Coding Scheme None
  7. MAC: 4c:11:ae:90:95:bc
  8. Uploading stub...
  9. Running stub...
  10. Stub running...
  11. 4096 (0 %)
  12. ....
  13. 4194304 (100 %)
  14. Read 4194304 bytes at 0x0 in 388.2 seconds (86.4 kbit/s)...
  15. 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
  1. esptool.py v2.6
  2. Serial port COM175
  3. Connecting.....
  4. Chip is ESP32D0WDQ6 (revision 1)
  5. Features: WiFi, BT, Dual Core, 240MHz, VRef calibration in efuse, Coding Scheme None
  6. MAC: 4c:11:ae:90:95:bc
  7. Uploading stub...
  8. Running stub...
  9. Stub running...
  10. Erasing flash (this may take a while)...
  11. Chip erase completed successfully in 48.0s
  12. 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
  1. esptool.py v2.6
  2. Serial port COM175
  3. Connecting......
  4. Detecting chip type... ESP32
  5. Chip is ESP32D0WDQ6 (revision 1)
  6. Features: WiFi, BT, Dual Core, 240MHz, VRef calibration in efuse, Coding Scheme None
  7. MAC: 4c:11:ae:90:95:bc
  8. Uploading stub...
  9. Running stub...
  10. Stub running...
  11. Configuring flash size...
  12. Auto-detected Flash size: 16MB
  13. Compressed 4194304 bytes to 124553...
  14. Writing at 0x00000000... (12 %)
  15. Writing at 0x00004000... (25 %)
  16. Writing at 0x00008000... (37 %)
  17. Writing at 0x0000c000... (50 %)
  18. Writing at 0x00010000... (62 %)
  19. Writing at 0x00014000... (75 %)
  20. Writing at 0x00018000... (87 %)
  21. Writing at 0x0001c000... (100 %)
  22. Wrote 4194304 bytes (124553 compressed) at 0x00000000 in 11.4 seconds (effective 2950.4 kbit/s)...
  23. Hash of data verified.
  24. Leaving...
  25. 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
  1. esptool.py v2.6
  2. Serial port COM175
  3. Connecting...
  4. Detecting chip type... ESP32
  5. Chip is ESP32D0WDQ6 (revision 1)
  6. Features: WiFi, BT, Dual Core, 240MHz, VRef calibration in efuse, Coding Scheme None
  7. MAC: 4c:11:ae:90:95:bc
  8. Uploading stub...
  9. Running stub...
  10. Stub running...
  11. Status value: 0x7bfc
  12. Hard resetting via RTS pin...

Thanks for your help in advance.

Who is online

Users browsing this forum: No registered users and 10 guests