hello folks,
I am trying to understand an issue when using the esp prog to upload file system image, looks like the data somehow got corrupted, after the upload is finished the esp 32 resets constantly.
what’s below is what ESP32 serial will spit out after the file system upload completed using esp prog.
by the way esp prog work just fine uploading the main program and debugging work ok.
I played a bit with platformio.ini.
;debug_tool = esp-prog
;debug_init_break = tbreak setup
upload_protocol = esp-prog
rst:0x3 (SW_RESET),boot:0x17 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:2
load:0x3fff0018,len:4
load:0x3fff001c,len:1100
load:0x40078000,len:9232
load:0x40080400,len:6412
entry 0x400806a8
ets Jun 8 2016 00:22:57
this is what I see during the file system upload with the esp prog.
Uploading .pio\build\modbusbox\spiffs.bin
Open On-Chip Debugger v0.10.0-esp32-20190708 (2019-07-08-11:04)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.org/doc/doxygen/bugs.html
debug_level: 1
none separate
adapter speed: 20000 kHz
esp32 interrupt mask on
** Programming Started **
auto erase enabled
wrote 1503232 bytes from file .pio\build\modbusbox\spiffs.bin in 9.270435s (158.353 KiB/s)
** Programming Finished **
** Verify Started **
read 1503232 bytes from file .pio\build\modbusbox\spiffs.bin and flash bank 0 at offset 0x00010000 in 4.865897s (301.692 KiB/s)
contents match
** Verified OK **
** Programming Started **
auto erase enabled
wrote 20480 bytes from file C:/Users/AngelLuis/.platformio/packages/framework-arduinoespressif32/tools/sdk/bin/bootloader_dio_40m.bin in 0.813998s (24.570 KiB/s)
** Programming Finished **
** Verify Started **
read 16848 bytes from file C:/Users/AngelLuis/.platformio/packages/framework-arduinoespressif32/tools/sdk/bin/bootloader_dio_40m.bin and flash bank 0 at offset 0x00001000 in 0.289112s (56.909 KiB/s)
contents match
** Verified OK **
** Programming Started **
auto erase enabled
wrote 4096 bytes from file C:/Users/AngelLuis/Documents/1-IotBits_dev_docs/IOTBIT-EVERT-FIRMWARE/Jul21/mbox-firmware/.pio/build/modbusbox/partitions.bin in 0.548300s (7.295 KiB/s)
** Programming Finished **
** Verify Started **
read 3072 bytes from file C:/Users/AngelLuis/Documents/1-IotBits_dev_docs/IOTBIT-EVERT-FIRMWARE/Jul21/mbox-firmware/.pio/build/modbusbox/partitions.bin and flash bank 0 at offset 0x00008000 in 0.245999s (12.195 KiB/s)
contents match
** Verified OK **
** Programming Started **
auto erase enabled
wrote 8192 bytes from file C:/Users/AngelLuis/.platformio/packages/framework-arduinoespressif32/tools/partitions/boot_app0.bin in 0.612059s (13.071 KiB/s)
** Programming Finished **
** Verify Started **
read 8192 bytes from file C:/Users/AngelLuis/.platformio/packages/framework-arduinoespressif32/tools/partitions/boot_app0.bin and flash bank
0 at offset 0x0000e000 in 0.255246s (31.342 KiB/s)
contents match
** Verified OK **
shutdown command invoked
Warn : Flash driver of esp32.flash does not support free_driver_priv()
Warn : Flash driver of irom does not support free_driver_priv()
Warn : Flash driver of drom does not support free_driver_priv()
======================================================= [SUCCESS] Took 19.88 seconds =======================================================
Any help is appreciated.