• Skip to main content
  • Skip to primary sidebar

RNTLab.com

The Ultimate Shortcut to Learn Electronics and Programming with Open Source Hardware and Software

  • Courses
  • Forum
    • Forum
    • Ask Question
  • Shop
  • Account
  • Blog
  • Login

esp8266 multisensor shield

Q&A Forum › Category: ESP8266 › esp8266 multisensor shield
0 Vote Up Vote Down
thomas luken asked 6 years ago

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

Question Tags: ESP8266
5 Answers
0 Vote Up Vote Down
Sara Santos Staff answered 6 years ago

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

0 Vote Up Vote Down
thomas luken answered 6 years ago

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

0 Vote Up Vote Down
Sara Santos Staff answered 6 years ago

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

0 Vote Up Vote Down
thomas luken answered 6 years ago

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
 
 

0 Vote Up Vote Down
Sara Santos Staff answered 6 years ago

Thank you.
If you have more doubts, you just need to open a new question in our forum.

Primary Sidebar

Login to Ask or Answer Questions

This Forum is private and it’s only available for members enrolled in our Courses.

Login »

Latest Course Updates

  • [eBook Updated] Learn Raspberry Pi Pico/Pico W with MicroPython eBook – Version 1.2 May 26, 2025
  • [New Edition] Build ESP32-CAM Projects eBook – 2nd Edition April 16, 2025

You must be logged in to view this content.

Contact Support - Refunds - Privacy - Terms - MakerAdvisor.com - Member Login

Copyright © 2013-2025 · RandomNerdTutorials.com · All Rights Reserved

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.