-->
Page 1 of 1

Huzzah and Arduino - erratic, random errors galore

PostPosted: Mon Dec 07, 2015 12:58 pm
by Hapax Legemenon
Hello,

I have a bunch of ESP8266 Huzzah's. I followed Adafruit's tutorials (LED Blink and simple Web client) (https://learn.adafruit.com/adafruit-huz ... rduino-ide) and they worked just fine (using Arduino 1.6.6). But the next morning I repeated the same steps but the code didn't upload - the blue LED merely blinked for 5 times then I got this error:
Code: Select allesptool v0.4.6 - (c) 2014 Ch. Klippel <ck@atelier-klippel.de>
   setting board to ck
   setting baudrate from 115200 to 115200
   setting port from /dev/ttyUSB0 to /dev/ttyUSB0
   setting address from 0x00000000 to 0x00000000
   espcomm_upload_file
   stat /tmp/build479eefd1d01619a4bafee4c11efeb6ec.tmp/esp_HelloServer.ino.bin success
opening port /dev/ttyUSB0 at 115200
   tcgetattr
   tcsetattr
   serial open
opening bootloader
resetting board
trying to connect
   setting character timeout 0
   done
   setting character timeout 1
   done
   espcomm_send_command: sending command header
   espcomm_send_command: sending command payload
trying to connect
   setting character timeout 0
   done
   setting character timeout 1
   done
   espcomm_send_command: sending command header
   espcomm_send_command: sending command payload
trying to connect
   setting character timeout 0
   done
   setting character timeout 1
   done
   espcomm_send_command: sending command header
   espcomm_send_command: sending command payload
resetting board
trying to connect
   setting character timeout 0
   done
   setting character timeout 1
   done
   espcomm_send_command: sending command header
   espcomm_send_command: sending command payload
trying to connect
   setting character timeout 0
   done
   setting character timeout 1
   done
   espcomm_send_command: sending command header
   espcomm_send_command: sending command payload
trying to connect
   setting character timeout 0
   done
   setting character timeout 1
   done
   espcomm_send_command: sending command header
   espcomm_send_command: sending command payload
resetting board
trying to connect
   setting character timeout 0
   done
   setting character timeout 1
   done
   espcomm_send_command: sending command header
   espcomm_send_command: sending command payload
trying to connect
   setting character timeout 0
   done
   setting character timeout 1
   done
   espcomm_send_command: sending command header
   espcomm_send_command: sending command payload
trying to connect
   setting character timeout 0
   done
   setting character timeout 1
   done
   espcomm_send_command: sending command header
   espcomm_send_command: sending command payload
warning: espcomm_sync failed
error: espcomm_open failed

So then I discovered esptool.py and that seems to work only 1 out of 10 times. The one time it does work, however, the Huzzah spits out its innards in a massive memory hex dump, plus wdt reset stuff:
Code: Select all ets Jan  8 2013,rst cause:4, boot mode:(3,6)

wdt reset
load 0x40100000, len 31900, room 16
tail 12
chksum 0x49
ho 0 tail 12 room 4
load 0x3ffe8000, len 3064, room 12
tail 12
chksum 0x74
ho 0 tail 12 room 4
load 0x3ffe8bf8, len 8, room 12
tail 8
chksum 0x12
csum 0x12
r

and:
Code: Select all3fff3000:  7bdd3b1e 95965c01 dd96ee4c 4d0e5895 
3fff3010:  f63c8a27 32108d1c 3c01f022 dc31bb25 
3fff3020:  70af3e7c f1c9fe9d b13ed31f 6b3bbe67 
3fff3030:  a7cd8c05 038cc9fc 7c2cf2e8 1e41ee3c 
3fff3040:  5ab75924 b937c4c4 21ab123e 733eb0ba 
3fff3050:  974ae584 f308ceb2 fe3a0181 1d0a79cc 
3fff3060:  a4572e75 6ddca5e7 51caf700 c8aa8529 
3fff3070:  fa75a5e5 a23cfb42 a9ee6715 4d468c0f 
3fff3080:  2a93961f 32cab7aa eb7c368b 297520be 
3fff3090:  ce254239 03225f83 3ef42395 c49ac26d 
3fff30a0:  af335e3b 350bf3cf af91ca6c 1cc30a6c 
3fff30b0:  fbf72e8a 1562bbb8 2e7a6080 e00df437 
3fff30c0:  d92f529a 01224286 f978ee4b 4800cd45 
3fff30d0:  b16e609a 1d0d7581 9784c881 0a96b5bb 
3fff30e0:  0ab0e406 43204c39 b83929c9 bb4589d7 
3fff30f0:  3ddf38c5 94ebd399 5dc428d8 200563a9 
3fff3100:  dfb421a1 2216e05a 73783a08 377577c9 
...
3fff3190:  ff2325e0 4245fa23 29f00534 12035048 
3fff31a0:  c8b29329 17520eb9 df8668eb 46baa592 
3fff31b0:  c82c5409 01ac7cef 9eb59640 298bb74e 
3fff31c0:  a540f291 03d4db6d c84b800e 86edfa8b 
3fff31d0:  63c526c0 6c1829f6 6f500fc8 270b9f9a 
3fff31e0:  df434756 4a027821 227d6214 152975c0 
3fff31f0:  e55568ad 0b907bbf 9647081a 42ae581d 
3fff3200:  8ffb1cb8 0610ff81 a32fe8e1 50d91cc9 
3fff3210:  d9f429ae 049a66f7 7ebe8685 8e0b74c7 
3fff3220:  3cd319a2 c173ad99 a5a749b0 40476fd8 
3fff3230:  a3f85360 40c146e4 44dc18c7 9519346f 
3fff3240:  837dc288 2502de0f 59164499 84145f9f 
3fff3250:  8110ce97 5e246fd8 c1ce2808 71b0b3ab 
3fff3260:  52e80f1b 1aa9fd75 1ffedb85 94b54fbd 
3fff3270:  d073bbe4 66cad6d5 edcf2431 fe7d3c78 
3fff3280:  6b958938 7dba9fef 0c1f088d 8077eb9f 
3fff3290:  691a3044 a20fdcb3 6edec201 aed8f958 
3fff32a0:  b93f0801 9a18df26 6eb71c57 95c4733b 
3fff32b0:  d330a124 78869665 addaa83a 8bb8a4f3 
3fff32c0:  f1bb1b0d a8560d61 756f46df d734730a 
3fff32d0:  912d1182 22a231e1 e4ba7e91 6c4088d1 
3fff32e0:  e22acaf5 61992c6b 34597333 be957538 
3fff32f0:  23c16002 58828c9c 1dbf3fc2 7d83ce73 
3fff3300:  ac2f655b 188cb094 a62d666d 89382b97 
3fff3310:  1588706b c3bb76ff c1fe5922 23551d04 
... 
3fff3650:  55e60584 80c58aab db7c64c2 8c006e7d 
3fff3660:  5a6e4a3e c68df7cf ee31c616 e8117723 
3fff3670:  58648e4a c5f30d35 ebc8e3e0 0468b2ef 
3fff3680:  2e9ea297 589e3bcf f552b879 00b271eb 
3fff3690:  7dff7076 7ab9ee92 ddf41bd1 90bcdbef 
3fff36a0:  4bcf43a5 b9c83c67 f8d888a4 8837efef 
3fff36b0:  545d83ee cc92adf6 7fc12431 a7a4f8af 
3fff36c0:  d09a4956 18827f85 13bca441 5b00d1e1 
3fff36d0:  b83e07a9 9037df60 7c8a5db4 94217da7 
3fff36e0:  7ade40de a827aed0 f43d068b 375e634d 
3fff36f0:  869e2418 007b448f c9fac88c 6c50aa2f 
3fff3700:  fc770494 5a41c963 3e6d7c84 dfe9f7e4 
3fff3710:  c5e5a274 12dbb7b5 057d0d58 9329e84f 
3fff3720:  dd348e84 a20c36bf abf1129e e39145e9 
3fff3730:  a42521a5 7ce21359 d5e70f4e 20a5dd59 
3fff3740:  c475d8d2 e38999e7 ae8e568d 0a8df8f6 
3fff3750:  e0496907 030a91d5 99bc35b8 dce26c4b 
3fff3760:  7d4dd280 e2821d64 87fa2a80 935cb54c 
3fff3770:  ce44d873 d3e17563 0f7a47bc f039f119 
3fff3780:  fc244947 7200b5fa a5f12200 14c25df9 
3fff3790:  e7d4a2a5 60d95d80 2d0e77c0 2a484a71 
3fff37a0:  c4a80ca7 32e3a49b 485ee5a8 5215a4dd 
3fff37b0:  6ff83201 10e574e0 4f
 ets Jan  8 2013,rst cause:4, boot mode:(3,6)

wdt reset
load 0x4010f000, len 1264, room 16
tail 0
chksum 0x42
csum 0x42
~ld

Exception (0):
epc1=0x402187c0 epc2=0x00000000 epc3=0x00000000 excvaddr=0x00000000 depc=0x00000000

ctx: sys
sp: 3ffee660 end: 3fffffb0 offset: 01a0

>>>stack>>>
3ffee800:  40101d01 40101cfe ffffffff ffffffff 
3ffee810:  400005e1 ffffffff ffffffff ffffffff 
3ffee820:  402187c0 00000033 00000016 ffffffff 
3ffee830:  40101d07 04000102 00000000 00000001 
3ffee840:  fbf8ffff 04000002 3feffe00 00000100 
3ffee850:  0000001a 00000018 04000102 40101ce8 
3ffee860:  3fffc100 0000001c 00000000 00000000 
3ffee870:  ffffffff ffffffff ffffffff ffffffff 
3ffee880:  ffffffff ffffffff ffffffff ffffffff 
3ffee890:  ffffffff ffffffff ffffffff ffffffff 
3ffee8a0:  ffffffff ffffffff ffffffff ffffffff 
3ffee8b0:  ffffffff ffffffff ffffffff ffffffff 
3ffee8c0:  ffffffff ffffffff ffffffff ffffffff 
3ffee8d0:  ffffffff ffffffff ffffffff ffffffff 
3ffee8e0:  ffffffff ffffffff ffffffff ffffffff 
3ffee8f0:  ffffffff ffffffff ffffffff ffffffff 
3ffee900:  ffffffff ffffffff ffffffff ffffffff 
3ffee910:  40101d01 40101cfe ffffffff ffffffff 
3ffee920:  400005e1 ffffffff ffffffff ffffffff 
3ffee930:  402187c0 00000033 00000016 ffffffff 
3ffee940:  40101d07 04000102 00000000 00000001 
3ffee950:  fbf8ffff 04000002 3feffe00 00000100 
3ffee960:  0000001a 00000018 04000102 40101ce8 
3ffee970:  3fffc100 0000001c 00000000 00000000 
3ffee980:  01010000 ffffffff 00000003 ffffff00 
3ffee990:  ffffffff ffffffff ffffffff ffffffff 
3ffee9a0:  ffffffff ffffffff ffffffff ffffffff 
3ffee9b0:  ffff0064 00000000 00000000 00000000 
3ffee9c0:  3ffed070 00000000 3ffeeaf8 00016771 
3ffee9d0:  00000000 40226910 00000000 00000066 
3ffee9e0:  00000100 3ffefaf4 0005af5f 00000000 
3ffee9f0:  4022787c 00000000 00000000 0000010f 
3ffeea00:  ffffffff 00000000 00000000 4022b37c 
3ffeea10:  00000000 ffffffff 00000000 00000000 
3ffeea20:  40101d01 40101cfe 00000000 00000078 
3ffeea30:  400005e1 00000168 4022cea8 00000000 
3ffeea40:  402187c0 00000033 00000016 3542312d 
3ffeea50:  40101d07 04000102 00000000 00000001 
3ffeea60:  fbf8ffff 04000002 3feffe00 00000100 
3ffeea70:  0000001a 00000018 04000102 40101ce8 
3ffeea80:  3fffc100 0000001c 00000000 00000000 
3ffeea90:  00000000 00000000 00000000 00000000 
3ffeeaa0:  00000000 00000000 00000100 00000000 
3ffeeab0:  ffffffff 00000000 00000000 4022ace0 
3ffeeac0:  00000000 00000000 00000000 00000000 
3ffeead0:  00000000 00000000 3ffee474 3ffee4f8 
3ffeeae0:  00000078 3ffee4f8 4022af3c 4022af78 
3ffeeaf0:  4022b074 00000000 3ffe95f0 00017ddd 
3ffeeb00:  00000000 4022c9ac 00000000 3ffee4f8 
3ffeeb10:  00000201 00000000 00000012 00000000 
3ffeeb20:  00000000 00000000 00000000 00000000 
3ffeeb30:  40101d01 40101cfe 00000000 00000000 
3ffeeb40:  400005e1 00000000 00000000 00000000 
3ffeeb50:  402187c0 00000033 00000016 00000000 
3ffeeb60:  40101d07 04000102 00000000 00000001 
3ffeeb70:  fbf8ffff 04000002 3feffe00 00000100 
3ffeeb80:  0000001a 00000018 04000102 40101ce8 
3ffeeb90:  3fffc100 0000001c 00000000 00000000 
3ffeeba0:  00000000 00000000 00000000 00000000 
3ffeebb0:  00000000 00000000 00000000 00000000 
3ffeebc0:  00000000 00000000 00000000 00000000 
3ffeebd0:  00000000 00000000 00000000 00000000 
3ffeebe0:  00000000 00000000 00000000 00000000 
3ffeebf0:  00000000 00000000 00000000 00000000 
3ffeec00:  00000000 00000000 00000000 00000000 
3ffeec10:  00000000 00000000 00000000 00000000 
3ffeec20:  00000000 00000000 00000000 00000000 
3ffeec30:  00000000 00000000 00000000 00000000 
3ffeec40:  40101d01 40101cfe 00000000 00000000 
3ffeec50:  400005e1 00000000 00000000 00000000 
3ffeec60:  402187c0 00000033 00000016 00000000 
3ffeec70:  40101d07 04000102 00000000 00000001 
3ffeec80:  fbf8ffff 04000002 3feffe00 00000100 
3ffeec90:  0000001a 00000018 04000102 40101ce8 
3ffeeca0:  3fffc100 0000001c 00000000 00000000 
3ffeecb0:  00000000 00000000 00000000 00000000 
3ffeecc0:  00000000 00000000 00000000 00000000 
3ffeecd0:  00000000 00000000 00000000 00000000 
3ffeece0:  00000000 00000000 00000000 00000000 
3ffeecf0:  00000000 00000000 00000000 00000000 
3ffeed00:  00000000 00000000 00000000 00000000 
3ffeed10:  00000000 00000000 00000000 00000000 
3ffeed20:  00000000 00000000 00000000 00000000 
3ffeed30:  00000000 00000000 00000000 00000000 
3ffeed40:  00000000 00000000 00000000 00000000 
3ffeed50:  40101d01 40101cfe 00000000 00000000 
3ffeed60:  400005e1 00000000 00000000 00000000 
3ffeed70:  402187c0 00000033 00000016 00000000 
3ffeed80:  40101d07 04000102 00000000 00000001 
3ffeed90:  fbf8ffff 04000002 3feffe00 00000100 
3ffeeda0:  0000001a 00000018 04000102 40101ce8 
3ffeedb0:  3fffc100 0000001c 00000000 00000000 
3ffeedc0:  00000000 00000000 00000000 00000000 
3ffeedd0:  00000000 00000000 00000000 00000000 
3ffeede0:  00000000 00000000 00000000 00000000 
3ffeedf0:  00000000 00000000 00000000 00000000 
3ffeee00:  00000000 00000000 00000000 00000000 
3ffeee10:  00000000 00000000 00000000 00000000 
3ffeee20:  00000000 00000000 00000000 00000000 
3ffeee30:  00000000 00000000 00000000 00000000 
3ffeee40:  00000000 00000000 00000000 00000000 
3ffeee50:  00000000 00000000 00000000 0000000f 
3ffeee60:  40101d01 40101cfe 00000000 00000000 
3ffeee70:  400005e1 00000000 00000000 00000000 
3ffeee80:  402187c0 00000033 00000016 00000000 
3ffeee90:  40101d07 04000102 00000000 00000001 
3ffeeea0:  fbf8ffff 04000002 3feffe00 00000100 
3ffeeeb0:  0000001a 00000018 04000102 40101ce8 
3ffeeec0:  3fffc100 0000001c 00000000 00000000 
3ffeeed0:  00000000 00000000 00000000 00000000 
3ffeeee0:  00000000 00000000 00000000 00000000 
3ffeeef0:  00000000 00000000 00000000 00000000 
3ffeef00:  00000000 00000000 00000000 00000000 
3ffeef10:  00000000 00000000 00000000 00000000 
3ffeef20:  00000000 00000000 00000000 00000000 
3ffeef30:  00000000 00000000 00000000 00000000 
3ffeef40:  00000000 00000000 00000000 00000000 
3ffeef50:  00000000 00000000 00000000 00000000 
... 
3ffef140:  000003e8 00000000 00000000 00000000 
3ffef150:  00000000 3fff1fe8 0000000f 00000000 
3ffef160:  00000000 00000000 00000000 00000000 
3ffef170:  00000000 00000000 00000000 00000000 
3ffef180:  00000000 00000000 00000000 00000000 
3ffef190:  40101d01 40101cfe 3fff2008 0000000f 
3ffef1a0:  400005e1 3fff2028 0000000f 00000000 
3ffef1b0:  402187c0 00000033 00000016 00000000 
3ffef1c0:  40101d07 04000102 00000000 00000001 
3ffef1d0:  fbf8ffff 04000002 3feffe00 00000100 
3ffef1e0:  0000001a 00000018 04000102 40101ce8 
3ffef1f0:  3fffc100 0000001c 00000000 00000000 
3ffef200:  00000000 00000000 00000000 00000000 
3ffef210:  00000000 00000000 00000000 00000000 
3ffef220:  00000000 00000000 00000000 00000000 
3ffef230:  00000000 00000000 00000000 00000000 
3ffef240:  00000000 00000000 00000000 00000000 
3ffef250:  00000000 00000000 00000000 00000000 
3ffef260:  00000000 00000000 00000000 00000000 
3ffef270:  00000000 00000000 00000000 00000000 
3ffef280:  00000000 00000000 00000000 00000000 
3ffef290:  00000000 00000000 00000000 00000000 
3ffef2a0:  40101d01 40101cfe 00000000 00000000 
3ffef2b0:  400005e1 00000000 00000000 00000000 
3ffef2c0:  402187e0 00000033 00000016 00000000 
3ffef2d0:  402187c0 402359f0 00000000 00000001 
3ffef2e0:  fbf8ffff 04000002 3feffe00 00000100 
3ffef2f0:  0000001a 00000018 04000102 40101ce8 
3ffef300:  3fffc100 0000001c 00000000 00000000 
3ffef310:  00000000 00000000 00000000 00000000 
3ffef320:  00000000 00000000 00000000 00000000 
3ffef330:  00000000 00000000 00000000 00000000 
3ffef340:  00000000 00000000 00000000 00000000 
3ffef350:  00000000 00000000 00000000 00000000 
3ffef360:  00000000 00000000 00000000 00000000 
3ffef370:  00000000 00000000 00000000 00000000 
3ffef380:  00000000 00000000 00000000 00000000 
3ffef390:  00000000 00000000 00000000 00000000 
3ffef3a0:  00000000 00000000 00000000 00000000 
3ffef3b0:  00000000 00000000 00000000 00000000 
3ffef3c0:  00000000 00000000 00000000 00000000 
3ffef3d0:  00000000 00000000 00000000 40101d07 
3ffef3e0:  40101ce8 3fffc100 0000001c 00000000 
3ffef3f0:  00000000 402187c0 00000000 00000000 
3ffef400:  400005e1 00000000 00000000 00000000 
3ffef410:  402187c0 00000033 00000016 00000000 
3ffef420:  40101d07 04000102 00000000 00000001 
3ffef430:  fbf8ffff 04000002 3feffe00 00000100 
3ffef440:  0000001a 00000018 04000102 40101ce8 
3ffef450:  3fffc100 0000001c 00000000 00000000 
3ffef460:  00000000 00000000 00000000 00000000 
3ffef470:  00000000 00000000 00000000 00000000 
3ffef480:  00000000 00000000 00000000 00000000 
3ffef490:  00000000 00000000 00000000 00000000 
3ffef4a0:  00000000 00000000 00000000 00000000 
3ffef4b0:  00000000 00000000 00000000 00000000 
3ffef4c0:  00000000 00000000 00000000 00000000 
3ffef4d0:  00000000 00000000 00000000 00000000 
3ffef4e0:  00000000 00000000 00000000 00000000 
3ffef4f0:  00000000 00000000 00000000 00000000 
3ffef500:  40101d01 40101cfe 00000000 00000000 
3ffef510:  400005e1 00000000 00000000 00000000 
3ffef520:  402187c0 00000033 00000016 00000000 
3ffef530:  40101d07 04000102 00000000 00000001 
3ffef540:  fbf8ffff 04000002 3feffe00 00000100 
3ffef550:  0000001a 00000018 04000102 40101ce8 
3ffef560:  3fffc100 0000001c 00000000 00000000 
3ffef570:  00000000 00000000 00000000 00000000 
3ffef580:  00000000 00000000 00000000 00000000 
3ffef590:  00000000 00000000 00000000 00000000 
3ffef5a0:  00000000 00000000 00000000 00000000 
3ffef5b0:  00000000 00000000 00000000 00000000 
3ffef5c0:  00000000 00000000 00000000 00000000 
3ffef5d0:  00000000 00000000 00000000 00000000 
3ffef5e0:  00000000 00000000 00000000 00000000 
3ffef5f0:  00000000 00000000 00000000 00000000 
3ffef600:  00000000 00000000 00000000 00000000 
3ffef610:  40101d01 40101cfe 00000000 00000000 
3ffef620:  400005e1 00000000 00000000 00000000 
3ffef630:  402187c0 00000033 00000016 00000000 
3ffef640:  40101d07 04000102 00000000 00000001 
3ffef650:  fbf8ffff 04000002 3feffe00 00000100 
3ffef660:  0000001a 00000018 04000102 40101ce8 
3ffef670:  3fffc100 0000001c 00000000 00000000 
3ffef680:  00000000 00000000 00000000 00000000 
3ffef690:  00000000 00000000 00000000 00000000 
3ffef6a0:  00000000 00000000 00000000 00000000 
3ffef6b0:  00000000 00000000 00000000 00000000 
3ffef6c0:  00000000 00000000 00000000 00000000 
3ffef6d0:  00000000 00000000 00000000 00000000 
3ffef6e0:  00000000 00000000 00000000 00000000 
3ffef6f0:  00000000 00000000 00000000 00000000 
3ffef700:  00000000 00000000 00000000 00000000 
3ffef710:  00000000 00000000 00000000 00000000 
3ffef720:  40101d01 40101cfe 00000000 00000000 
3ffef730:  400005e1 00000000 00000000 00000000 
3ffef740:  402187c0 00000033 00000016 00000000 
3ffef750:  40101d07 04000102 00000000 00000001 
3ffef760:  fbf8ffff 04000002 3feffe00 00000100 
3ffef770:  0000001a 00000018 04000102 40101ce8 
3ffef780:  3fffc100 0000001c 00000000 00000000 
3ffef790:  00000000 00000000 00000000 00000000 
3ffef7a0:  00000000 00000000 00000000 00000000 
3ffef7b0:  00000000 00000000 00000000 00000000 
3ffef7c0:  00000000 00000000 00000000 00000000 
3ffef7d0:  00000000 00000000 00000000 00000000 
3ffef7e0:  00000000 00000000 00000000 00000000 
3ffef7f0:  00000000 00000000 00000000 00000000 
3ffef800:  00000000 00000000 00000000 00000000 
3ffef810:  00000000 00000000 00000000 00000000 
3ffef820:  00000000 00000000 00000000 00000000 
3ffef830:  40101d01 40101cfe 00000000 00000000 
......
3fff3610:  fff765c2 88688ff7 6327819f a0fe8735 
3fff3620:  7b79336b 91b15b2c 6cb9f134 90454d7e 
3fff3630:  a18fb930 d04635b3 7cb945e8 c32368ed 
3fff3640:  994ec532 0c1a2bfb 27b83a2c 30d9b7f7 
3fff3650:  55e60584 80c58aab db7c64c2 8c006e7d 
3fff3660:  5a6e4a3e c68df7cf ee31c616 e8117723 
3fff3670:  58648e4a c5f30d35 eb
 ets Jan  8 2013,rst cause:4, boot mode:(3,6)

wdt reset
load 0x4010f000, len 1264, room 16
tail 0
chksum 0x42
csum 0x42
~ld

Exception (4):
epc1=0x400005cb epc2=0x00000000 epc3=0x00000000 excvaddr=0x402012db depc=0x00000000

ctx: sys
sp: 3ffee7f0 end: 3fffffb0 offset: 01a0

>>>stack>>>
3ffee990:  ffffffff ffffffff ffffffff ffffffff 
3ffee9a0:  ffffffff ffffffff ffffffff ffffffff 
3ffee9b0:  ffff0064 00000000 00000000 40101d07 
3ffee9c0:  40101ce8 3fffc100 0000001c 00000000 
3ffee9d0:  00000000 402187c0 00000000 00000066 
3ffee9e0:  400005e1 3ffefaf4 0005a783 00000000 
3ffee9f0:  402187c0 00000033 00000017 0000010f 
3ffeea00:  40101d07 04000102 00000000 00000001 
3ffeea10:  fbf8ffff 04000002 3feffe00 00000100 
...

I'm using an FTDI cable and plugging it to the USB port on my laptop - I don't know if that is relevant. Also, on the hpclab page, the command unnecessarily includes
Code: Select allwrite_flash 0x00000 "{build.path}/{build.project_name}_00000.bin"  0x10000  "build.path}/{build.project_name}_10000.bin"

a write command to 0x10000 which I think may be the issue here (Memory map). I inadvertently executed this command to write to 0x10000 (because it was in the damn tutorial! WHY IS IT EVEN THERE!). I don't know if that has corrupted some region of memory or something.

I then found out about some (dubious looking flasher tool), but the instructions are close to useless - as in which bin file to write to which memory location, and I can't figure out what to do even though I have the memory map information.

PLEASE HELP!

Re: Huzzah and Arduino - erratic, random errors galore

PostPosted: Mon Dec 07, 2015 3:26 pm
by Hapax Legemenon
Turns out that it was a faulty FTDI cable I was using which caused the random behaviour of the connection. So now the uploading part works reliably, but upon inspection of the Serial output I still get:
Code: Select all ets Jan  8 2013,rst cause:2, boot mode:(3,6)

load 0x4010f000, len 1264, room 16
tail 0
chksum 0x42
csum 0x42
~ld

Exception (0):
epc1=0x40223ac0 epc2=0x00000000 epc3=0x00000000 excvaddr=0x00000000 depc=0x00000000

ctx: sys
sp: 3ffff8f0 end: 3fffffb0 offset: 01a0

>>>stack>>>
3ffffa90:  00000052 00000132 00000138 0000001f 
3ffffaa0:  00000138 00000000 3ffee255 00000001 
3ffffab0:  4022390b 402208ac 00000006 00000000 
3ffffac0:  3ffee142 3ffee110 00000001 00000001

Re: Huzzah and Arduino - erratic, random errors galore

PostPosted: Mon Dec 07, 2015 11:06 pm
by Hapax Legemenon
Fixed it. Turns out that I needed to supply external power as well and just the FTDI cable wasn't enough. CLOSED.

Re: Huzzah and Arduino - erratic, random errors galore

PostPosted: Sun Dec 13, 2015 12:54 am
by fid
Hapax Legemenon wrote:Fixed it. Turns out that I needed to supply external power as well and just the FTDI cable wasn't enough. CLOSED.

Thank you so much for taking the time to share this information. I was having a Huzzah reboot every few seconds. I thought I may have broken it. External power saved my sanity, and allowed me to stop searching for an answer. :D
Your answer is the best. - fid