<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Program M5CAM fails]]></title><description><![CDATA[<p dir="auto">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.<br />
I have recompiled the M5CAM_demo in atom/platformio after a few hiccups and am getting the following error (verbose upload)</p>
<p dir="auto">*CURRENT: upload_protocol = esptool<br />
MethodWrapper(["upload"], [".pioenvs\esp-wrover-kit\firmware.bin"])<br />
Auto-detected: COM40<br />
"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<br />
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<br />
rmIO\Projects\M5CAM_demo.pioenvs\esp-wrover-kit\partitions.bin 0x10000 .pioenvs\esp-wrover-kit\firmware.bin<br />
Serial port COM40<br />
Connecting........<em><strong><strong>.....</strong></strong></em>.....<em><strong><strong>.....</strong></strong></em>.....<em><strong><strong>.....</strong></strong></em>....._____</p>
<p dir="auto">A fatal error occurred: Failed to connect to ESP32: Timed out waiting for packet header<br />
*** [upload] Error 2*</p>
<p dir="auto">The autodetected port is correct, opening it in realterm and toggling camera power.</p>
<p dir="auto">ets Jun  8 2016 00:22:57</p>
<p dir="auto">rst:0x1 (POWERON_RESET),boot:0x17 (SPI_FAST_FLASH_BOOT)<br />
configsip: 0, SPIWP:0xee<br />
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00<br />
mode:DIO, clock div:2<br />
load:0x3fff0018,len:4<br />
load:0x3fff001c,len:5780<br />
load:0x40078000,len:0<br />
load:0x40078000,len:15412<br />
entry 0x40078630<br />
[0;32mI (28) boot: ESP-IDF v3.1-dev-1101-g1f7b41e2-dirty 2nd stage bootloader[<br />
0m<br />
[0;32mI (28) boot: compile time 10:53:23[0m</p>
<p dir="auto">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.</p>
<p dir="auto">Any ideas for things to try ?<br />
A little trickier to add jumpers to toggle pins with these boards.</p>
]]></description><link>https://community.m5stack.com/topic/287/program-m5cam-fails</link><generator>RSS for Node</generator><lastBuildDate>Tue, 28 Apr 2026 20:39:38 GMT</lastBuildDate><atom:link href="https://community.m5stack.com/topic/287.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 07 Aug 2018 05:24:29 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Program M5CAM fails on Tue, 21 Aug 2018 14:31:18 GMT]]></title><description><![CDATA[<p dir="auto">finally have some time to continue on with this, I tried the esp32 download tool with exactly the parameters above and the demo files and I am getting an error in the CMD window of ..</p>
<p dir="auto">"imageIsOk()" failed at ....\src\msw\bitmap.cpp(922) in wxBitmap::CreateFromImage(): invalid image</p>
<p dir="auto">even if I only select the bootloader.bin section or any single part. odd .. so I looked at using the <a href="http://esptool.py" target="_blank" rel="noopener noreferrer nofollow ugc">esptool.py</a> supplied and copied the loader script from the <a href="http://flash.sh" target="_blank" rel="noopener noreferrer nofollow ugc">flash.sh</a> (made for linux), that works but I get exactly the same failed to connect as I do with platformio and also the same timing looking at pulseview, not surprising since both methods rely on esptool.</p>
<p dir="auto">So I ended up adding a 100nF between the B-E of VT1, oddly enough I cannot see any improvement in the timing on pulseview but it programmed first attempt and every one thereafter so I am leaving it in place. perhaps the timing the ESP sees is a little different to what my salaea clone probe is showing.</p>
]]></description><link>https://community.m5stack.com/post/1419</link><guid isPermaLink="true">https://community.m5stack.com/post/1419</guid><dc:creator><![CDATA[stoney]]></dc:creator><pubDate>Tue, 21 Aug 2018 14:31:18 GMT</pubDate></item><item><title><![CDATA[Reply to Program M5CAM fails on Tue, 07 Aug 2018 18:10:58 GMT]]></title><description><![CDATA[<p dir="auto">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.</p>
<p dir="auto">this is the WROVER kit control logic ..</p>
<p dir="auto"><img src="/assets/uploads/files/1533664930905-5bdcf38a-6917-40c1-acde-e5b4b92f2dd9-image.png" alt="0_1533664928057_5bdcf38a-6917-40c1-acde-e5b4b92f2dd9-image.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">and this is the M5CAMs</p>
<p dir="auto"><img src="/assets/uploads/files/1533664996440-b21be137-0c34-4baa-8ac1-f3e64c359026-image.png" alt="0_1533664993829_b21be137-0c34-4baa-8ac1-f3e64c359026-image.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">so it looks like VT2 is reversed but it should still work regardless, it might be affecting the timing perhaps ?</p>
<p dir="auto">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 <a href="http://esptool.py" target="_blank" rel="noopener noreferrer nofollow ugc">esptool.py</a> .. but its late now, 4am, so it can wait till tomorrow.</p>
<p dir="auto">a failed program attempt ..</p>
<p dir="auto"><img src="/assets/uploads/files/1533665242117-esp32_gpio0_norm_prog_fail-resized.png" alt="0_1533665238761_esp32_gpio0_norm_prog_fail.PNG" class=" img-fluid img-markdown" /></p>
<p dir="auto">and a close up of one of the edges shows GPIO0 always going high about 500nS-1uS before EN goes high.</p>
]]></description><link>https://community.m5stack.com/post/1388</link><guid isPermaLink="true">https://community.m5stack.com/post/1388</guid><dc:creator><![CDATA[stoney]]></dc:creator><pubDate>Tue, 07 Aug 2018 18:10:58 GMT</pubDate></item><item><title><![CDATA[Reply to Program M5CAM fails on Tue, 07 Aug 2018 13:59:23 GMT]]></title><description><![CDATA[<p dir="auto">Hi, I solved a similar problem by flashing  the camera again. I downloaded the firmware located in: <a href="https://github.com/m5stack/esp32-cam-demo" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/m5stack/esp32-cam-demo</a>. To flash the camera I used this software <a href="https://www.espressif.com/sites/default/files/tools/flash_download_tools_v3.6.4.rar" target="_blank" rel="noopener noreferrer nofollow ugc">https://www.espressif.com/sites/default/files/tools/flash_download_tools_v3.6.4.rar</a>.</p>
<p dir="auto">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:</p>
<p dir="auto"><img src="http://i68.tinypic.com/5txpxt.png" alt="alt text" class=" img-fluid img-markdown" /><br />
I hope this helps you.</p>
]]></description><link>https://community.m5stack.com/post/1386</link><guid isPermaLink="true">https://community.m5stack.com/post/1386</guid><dc:creator><![CDATA[jarain78]]></dc:creator><pubDate>Tue, 07 Aug 2018 13:59:23 GMT</pubDate></item></channel></rss>