Program M5CAM fails
Hi people, sorry for the messy post, I am not sure how to format here yet. I am sure this wont be my last post.
I have recompiled the M5CAM_demo in atom/platformio after a few hiccups and am getting the following error (verbose upload)
*CURRENT: upload_protocol = esptool
"c:\users\col.platformio\penv\scripts\python.exe" "C:\Users\Col.platformio\packages\tool-esptoolpy\esptool.py" --chip esp32 --port "COM40" --baud 921600 --before default_reset --after hard_reset writ
e_flash -z --flash_mode dio --flash_freq 40m --flash_size detect 0x1000 C:\Users\Col\Documents\PlatformIO\Projects\M5CAM_demo.pioenvs\esp-wrover-kit\bootloader.bin 0x8000 C:\Users\Col\Documents\Platfo
rmIO\Projects\M5CAM_demo.pioenvs\esp-wrover-kit\partitions.bin 0x10000 .pioenvs\esp-wrover-kit\firmware.bin
Serial port COM40
A fatal error occurred: Failed to connect to ESP32: Timed out waiting for packet header
*** [upload] Error 2*
The autodetected port is correct, opening it in realterm and toggling camera power.
ets Jun 8 2016 00:22:57
rst:0x1 (POWERON_RESET),boot:0x17 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
mode:DIO, clock div:2
[0;32mI (28) boot: ESP-IDF v3.1-dev-1101-g1f7b41e2-dirty 2nd stage bootloader[
[0;32mI (28) boot: compile time 10:53:23[0m
This is my first time attempting to reprogram this and a search has not brought up anything useful, is there a trick to programming these ? It looks to me that perhaps the reset method is unsuccessful, tried holding the power button down, tried with a lithium cell connected/disconnected. The M5CAM uses the same program method as the wrover-kit so far as I can see from the schematics.
Any ideas for things to try ?
A little trickier to add jumpers to toggle pins with these boards.
Hi, I solved a similar problem by flashing the camera again. I downloaded the firmware located in: https://github.com/m5stack/esp32-cam-demo. To flash the camera I used this software https://www.espressif.com/sites/default/files/tools/flash_download_tools_v3.6.4.rar.
Once has been downloaded the tool it has 4 options, I used the option 3 and I configured the tool as show in the image:
I hope this helps you.
I have been looking a bit closer at this and trying to make sense of it with and I think there is a simple design error but it should still work.
this is the WROVER kit control logic ..
and this is the M5CAMs
so it looks like VT2 is reversed but it should still work regardless, it might be affecting the timing perhaps ?
Using platformio with no mods and the WROVER kit board selected a close look at the reset timing shows that the EN line is always taken high (by about 500nS) after GPIO0 is also taken high, hence it never enters boot mode. I think I can get around it by hacking the esptool.py .. but its late now, 4am, so it can wait till tomorrow.
a failed program attempt ..
and a close up of one of the edges shows GPIO0 always going high about 500nS-1uS before EN goes high.