ESP32_Devkitc_V4 - unable to flash

tomasz.bres
Posts: 2
Joined: Fri Nov 01, 2019 4:54 pm

ESP32_Devkitc_V4 - unable to flash

Postby tomasz.bres » Fri Nov 01, 2019 5:07 pm

Hello,

I was able to erase my ESP32_Devkitc_V4 with ESP32-WROOM-32D module, however I'm not able to get one to work again.
I followed the https://docs.espressif.com/projects/esp ... index.html

Flashing result:

Code: Select all

$ idf.py -p /dev/ttyUSB0 flash
Checking Python dependencies...
Python requirements from /home/tom/esp/esp-idf/requirements.txt are satisfied.
Adding flash's dependency "all" to list of actions
Executing action: all (aliases: build)
Running ninja in directory /home/tom/esp/hello_world/build
Executing "ninja all"...
[1/3] Performing build step for 'bootloader'
ninja: no work to do.
Executing action: flash
Running esptool.py in directory /home/tom/esp/hello_world/build
Executing "/home/tom/.espressif/python_env/idf4.0_py2.7_env/bin/python /home/tom/esp/esp-idf/components/esptool_py/esptool/esptool.py -p /dev/ttyUSB0 -b 460800 --after hard_reset write_flash @flash_project_args"...
esptool.py -p /dev/ttyUSB0 -b 460800 --after hard_reset write_flash --flash_mode dio --flash_freq 40m --flash_size 2MB 0x8000 partition_table/partition-table.bin 0x1000 bootloader/bootloader.bin 0x10000 hello-world.bin
esptool.py v2.8-dev
Serial port /dev/ttyUSB0
Connecting.....
Detecting chip type... ESP32
Chip is ESP32D0WDQ5 (revision 1)
Features: WiFi, BT, Dual Core, 240MHz, VRef calibration in efuse, Coding Scheme None
Crystal is 40MHz
MAC: 24:6f:28:de:76:08
Uploading stub...
Running stub...
Stub running...
Changing baud rate to 460800
Changed.
Configuring flash size...
Compressed 3072 bytes to 82...
Wrote 3072 bytes (82 compressed) at 0x00008000 in 0.0 seconds (effective 3554.6 kbit/s)...
Hash of data verified.
Compressed 24576 bytes to 14555...
Wrote 24576 bytes (14555 compressed) at 0x00001000 in 0.3 seconds (effective 597.2 kbit/s)...
Hash of data verified.
Compressed 146864 bytes to 76350...
Wrote 146864 bytes (76350 compressed) at 0x00010000 in 1.7 seconds (effective 683.9 kbit/s)...
Hash of data verified.

Leaving...
Hard resetting via RTS pin...
Done
However monitor shows:

Code: Select all

rst:0x10 (RTCWDT_RTC_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
flash read err, 1000
ets_main.c 371 
I have nothing connected to my module, except USB cable. Module is powered up only via USB.
I have no clue, what is wrong with my module, my setup or my firmware build process.

What I've checked already:
- C15 is not present on my board
- GPIO12 voltage is 0
- Watchdog timer is disabled

Any help appreciated.

tomasz.bres
Posts: 2
Joined: Fri Nov 01, 2019 4:54 pm

Re: ESP32_Devkitc_V4 - unable to flash

Postby tomasz.bres » Tue Nov 19, 2019 2:06 pm

Hi,

I just tested esp-at firmware followed this instruction: https://github.com/espressif/esp-at/blo ... Started.md

Same result:

Code: Select all

tom@ubuntu:~/esp32/esp-at$ make flash
Makefile:36: There is no module_config/module_wroom-32,Using module_config/module_esp32_default
/home/tom/esp32/esp-at/tools/mkfatfs/Makefile.projbuild:13: warning: overriding recipe for target 'clean'
/home/tom/esp32/esp-at/esp-idf/components/app_update/Makefile.projbuild:48: warning: ignoring old recipe for target 'clean'
Toolchain path: /home/tom/esp/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc
Toolchain version: crosstool-ng-1.22.0-80-g6c4433a
Compiler version: 5.2.0
Python requirements from /home/tom/esp32/esp-at/esp-idf/requirements.txt are satisfied.

App "esp-at" version: ESP-AT
Flashing binaries to serial port /dev/ttyUSB0 (app at offset 0x100000)...
esptool.py v2.8-dev
Serial port /dev/ttyUSB0
Connecting........__
Chip is ESP32D0WDQ5 (revision 1)
Features: WiFi, BT, Dual Core, 240MHz, VRef calibration in efuse, Coding Scheme None
Crystal is 40MHz
MAC: 24:6f:28:de:76:08
Uploading stub...
Running stub...
Stub running...
Configuring flash size...
Auto-detected Flash size: 4MB
Wrote 16384 bytes at 0x00010000 in 1.4 seconds (91.4 kbit/s)...
Hash of data verified.
Wrote 32768 bytes at 0x00001000 in 2.9 seconds (90.0 kbit/s)...
Hash of data verified.
Wrote 16384 bytes at 0x00020000 in 1.4 seconds (91.5 kbit/s)...
Hash of data verified.
Wrote 16384 bytes at 0x00021000 in 1.4 seconds (91.4 kbit/s)...
Hash of data verified.
Wrote 16384 bytes at 0x00024000 in 1.4 seconds (91.5 kbit/s)...
Hash of data verified.
Wrote 16384 bytes at 0x00026000 in 1.4 seconds (91.5 kbit/s)...
Hash of data verified.
Wrote 16384 bytes at 0x00028000 in 1.4 seconds (91.5 kbit/s)...
Hash of data verified.
Wrote 16384 bytes at 0x0002a000 in 1.4 seconds (91.4 kbit/s)...
Hash of data verified.
Wrote 16384 bytes at 0x0002c000 in 1.4 seconds (91.4 kbit/s)...
Hash of data verified.
Wrote 16384 bytes at 0x0002e000 in 1.4 seconds (91.4 kbit/s)...
Hash of data verified.
Wrote 16384 bytes at 0x00030000 in 1.4 seconds (91.4 kbit/s)...
Hash of data verified.
Wrote 16384 bytes at 0x00037000 in 1.4 seconds (91.5 kbit/s)...
Hash of data verified.
Wrote 16384 bytes at 0x00039000 in 1.4 seconds (91.4 kbit/s)...
Hash of data verified.
Wrote 16384 bytes at 0x0003b000 in 1.4 seconds (91.4 kbit/s)...
Hash of data verified.
Wrote 16384 bytes at 0x0000f000 in 1.4 seconds (91.5 kbit/s)...
Hash of data verified.
Wrote 1310720 bytes at 0x00100000 in 115.6 seconds (90.7 kbit/s)...
Hash of data verified.
Wrote 16384 bytes at 0x00008000 in 1.4 seconds (91.4 kbit/s)...
Hash of data verified.

Leaving...
Hard resetting via RTS pin...
And result:

Code: Select all

tom@ubuntu:~/esp32/esp-at$ make monitor
Makefile:36: There is no module_config/module_wroom-32,Using module_config/module_esp32_default
/home/tom/esp32/esp-at/tools/mkfatfs/Makefile.projbuild:13: warning: overriding recipe for target 'clean'
/home/tom/esp32/esp-at/esp-idf/components/app_update/Makefile.projbuild:48: warning: ignoring old recipe for target 'clean'
Toolchain path: /home/tom/esp/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc
Toolchain version: crosstool-ng-1.22.0-80-g6c4433a
Compiler version: 5.2.0
Python requirements from /home/tom/esp32/esp-at/esp-idf/requirements.txt are satisfied.
MONITOR
--- idf_monitor on /dev/ttyUSB0 115200 ---
--- Quit: Ctrl+] | Menu: Ctrl+T | Help: Ctrl+T followed by Ctrl+H ---
ets Jun  8 2016 00:22:57

rst:0x1 (POWERON_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
flash read err, 1000
ets_main.c 371 
ets Jun  8 2016 00:22:57

rst:0x10 (RTCWDT_RTC_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
flash read err, 1000
ets_main.c 371 
ets Jun  8 2016 00:22:57

Who is online

Users browsing this forum: No registered users and 90 guests