lemariva / micropython-camera-driver

add camera support to MicroPython
https://lemariva.com
Apache License 2.0
460 stars 99 forks source link

Looping RTCWDT_RTC_RESET after flashing #73

Open jose1711 opened 2 years ago

jose1711 commented 2 years ago

After erasing memory and flashing the microcode (tried both version) I am getting:

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

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

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

Any idea? Could it be hardware issue (board is from Aliexpress so quality is not guaranteed)? Thank you.

sjev commented 2 years ago

check your binary. I've got the same error by using wget to get the firmware. It got html rubbish and saved it as bin.

jose1711 commented 2 years ago

check your binary

Thank you, the corrupted (HTML output) was indeed the case (somehow it did not strike me that the upload was so superfast :facepalm:. Anyway even after getting the firmware correctly and multiple upload attempts it's showing the same. To share the full story:

$ esptool.py --chip esp32 --port /dev/ttyUSB0 write_flash -z 0x1000 micropython_cmake_9fef1c0bd_esp32_idf4.x_ble_camera.bin
esptool.py v4.2.1 Serial port /dev/ttyUSB0 Connecting... Chip is ESP32-D0WDQ6 (revision 1) Features: WiFi, BT, Dual Core, 240MHz, VRef calibration in efuse, Coding Scheme None Crystal is 40MHz MAC: ec:62:60:94:8f:84 Stub is already running. No upload is necessary. Configuring flash size... Flash will be erased from 0x00001000 to 0x00181fff... Compressed 1575808 bytes to 1010481... Wrote 1575808 bytes (1010481 compressed) at 0x00001000 in 89.2 seconds (effective 141.3 kbit/s)... Hash of data verified.

Leaving... Hard resetting via RTS pin...

- connection is tested with `picocom /dev/ttyUSB0 -b115200`
but this gives no response

- once IO0 to GND connection is removed `picocom` starts to show said loop:

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

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


- if reset button is pressed during the connection the following message appears in the communication:

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