Hi rui
cant get the code to upload. can hear the relay clicking the get
esptool.FatalError: Failed to connect to ESP8266: Timed out waiting for packet header
If i disconnect the relay it uploads then gives the following:
21:31:3g.755 -> 21:31:39 .755 -> Abort called 21:31:35'. 755 -:> 21:31:39.755 -> >>>st,ack>>> 21:31:39.755 -> 21:31:39.755 -> ctx; cont 21:31:39'.755 -> sp:3ffffda0 end:3fffffc0 offset:OlbO 21:31:39.755 -> 3fffff50: 464b0550 00000001 3ffc80 3ffeece6 21:31;39.755 -> 3fffff60: 3fffdad0 00000001 3H'eei::!l0 3ffeece8 21:31:39.769 -)3fffff70: 21:31:39'.789 -> 3fffff80: 21:31:39.789 -> 3fffff90: 21:31:39.789 -> :3fffffa0: 21:.31:39.789 -> 3f ff f fb0: 3fffdad0 00000000 3f feec80 4010049e fe<=feff·e 00000000 3f feec80 4020lleb feefef fe feefef:fe f eefef fe f eefeffe 3fffdad0 00000000 3ffeecbe 402049'30 feefeffe feef effe 3ffe8510 40100789 21:31:39.789 -> <<<stack<<< 21:31:39.824 -> 21:31;39.824 -> ets Jan 8 2013,rst cause:2, boot mode; (3,, 6) 21:31:39.624 -> 21:31:39.824 -> load Ox4010f000, len 1384, room 16 21:31:39.824 -> tail S 21:31:39.824 -> chksum Ox2d 21:31:39.824 -> csum Ox2d 21:31:3.824 -> v8b89'cl2 21:31:39.824 -> ld 21:31:39.892 -> ISR not in IRAM ! 21:31:43.079 -> 21;.31:'43.07 -> Abo.rt called 21:31:43.079 -> 21 31:43.079 -> >>>stack>>>
i am stuck, can you help??
regards
tom
Hi Tom.
Are you using the WeMos D1 Mini?
Add the following before the detectsMovement() function definition:
ICACHE_RAM_ATTR void detectsMovement() {
Let me know if this solves your problem.
Regards,
Sara
thank you sara
yes, I am using the d1 mini and now can upload..but still must remove relay to upload ,,,then reconnect relay and everything works perfectly. thanks again
do you know why the relay prevents the upload…just asking
tom
Hi Thomas.
Are you using GPIO 15 to control the relay?
I think that happens because GPIO 15 is used during boot. It must be pulled to GND during boot. See this documentation: https://github.com/espressif/esptool/wiki/ESP8266-Boot-Mode-Selection
I hope this helps.
Regards,
Sara
hi sara
yes using d8 which I now see is gpio15..just to confuse me perhaps
thanks again for the info and help..i will keep mind as I go forward.
tom