maximkulkin / esp-homekit-demo

Demo of Apple HomeKit accessory server library
MIT License
808 stars 233 forks source link

Wemos D1 mini pro issues #380

Closed pocketscience closed 2 years ago

pocketscience commented 4 years ago

I'm getting constant reboots when flashing to a Wemos D1 mini pro device. I've had zero troubles with the standard D1 mini - but this new pro isn't happy. The device is perfectly happy if I flash a basic Arduino "Blink" sketch, so I don't believe it's a hardware issue.

Flashing manually with esptool (v2.8) appears to complete correctly..

esptool.py \ -p $PORT \ --baud 115200 \ write_flash \ 0x0 ./firmware/rboot.bin \ 0x1000 ./firmware/blank_config.bin \ 0x2000 ./firmware/garage.bin

esptool.py v2.8 Serial port /dev/cu.SLABUSBtoUART Connecting........ Detecting chip type... ESP8266 Chip is ESP8266EX Features: WiFi Crystal is 26MHz MAC: 84:0d:8e:a9:fb:9f Uploading stub... Running stub... Stub running... Configuring flash size... Auto-detected Flash size: 16MB Flash params set to 0x0390 Compressed 3104 bytes to 2169... Wrote 3104 bytes (2169 compressed) at 0x00000000 in 0.2 seconds (effective 128.2 kbit/s)... Hash of data verified. Compressed 2048 bytes to 23... Wrote 2048 bytes (23 compressed) at 0x00001000 in 0.0 seconds (effective 2667.1 kbit/s)... Hash of data verified. Compressed 451088 bytes to 321406... Wrote 451088 bytes (321406 compressed) at 0x00002000 in 28.3 seconds (effective 127.6 kbit/s)... Hash of data verified.

Leaving... Hard resetting via RTS pin...

===

15:22:04.629 -> load 0x40100000, len 2292, room 16 15:22:04.629 -> tail 4 15:22:04.629 -> chksum 0x57 15:22:04.629 -> load 0x3ffe8000, len 772, room 4 15:22:04.629 -> tail 0 15:22:04.629 -> chksum 0x0b 15:22:04.629 -> csum 0x0b 15:22:04.629 -> 15:22:04.629 -> rBoot v1.4.0 - richardaburton@gmail.com 15:22:04.629 -> Flash Size: unknown 15:22:04.629 -> Flash Mode: DOUT 15:22:04.629 -> Flash Speed: 40 MHz 15:22:04.629 -> rBoot Option: Big flash 15:22:04.629 -> rBoot Option: RTC data 15:22:04.629 -> 15:22:04.665 -> Booting rom 0. 15:22:04.881 -> pp_task_hdl : 3fff0130, prio:14, stack:512 15:22:04.881 -> pm_task_hdl : 3ffefa20, prio:1, stack:176 15:22:04.881 -> frc2_timer_task_hdl:0x3fff40d8, prio:12, stack:200 15:22:04.881 -> 15:22:04.881 -> ESP-Open-SDK ver: 0.0.1 compiled @ Feb 23 2020 22:29:26 15:22:04.881 -> phy ver: 273, pp ver: 8.3 15:22:04.881 -> 15:22:04.881 -> >>> wifi_config: Initializing WiFi config 15:22:04.953 -> !!! wifi_config: No configuration found 15:22:04.953 -> >>> wifi_config: Starting AP mode 15:22:05.058 -> >>> wifi_config: Starting DHCP server 15:22:05.058 -> mode : sta(84:0d:8e:a9:fb:9f) + softAP(86:0d:8e:a9:fb:9f) 15:22:05.058 -> add if0 15:22:05.058 -> add if1 15:22:05.058 -> bcn 100 15:22:05.058 -> del if0 15:22:05.058 -> bcn 0 15:22:05.058 -> del if1 15:22:05.058 -> usl 15:22:05.058 -> sul 0 0 15:22:05.058 -> Task stack overflow (high water mark=0 name="Wifi Connection") 15:22:05.058 -> >>> wifi_config: Starting WiFi scan 15:22:05.058 -> >>> wifi_config: Starting DNS server 15:22:05.058 -> >>> wifi_config: Starting HTTP server 15:22:05.095 -> 15:22:05.095 -> ets Jan 8 2013,rst cause:2, boot mode:(3,6) 15:22:05.095 -> 15:22:05.095 -> load 0x40100000, len 2292, room 16 15:22:05.132 -> tail 4 15:22:05.132 -> chksum 0x57 15:22:05.132 -> load 0x3ffe8000, len 772, room 4 15:22:05.132 -> tail 0 15:22:05.132 -> chksum 0x0b 15:22:05.132 -> csum 0x0b

maximkulkin commented 3 years ago

Please check if any other ESP8266 example that connects to WiFi works.