Beantree
(Tony Norman)
September 23, 2020, 12:47pm
1
I can happily burn ESPHome onto the ESP-M3 using esphomeflasher
It just won’t run. With the serial USB connected I just see a bit of gibberish as if it’s set to the wrong baud rate.
I am using
platform: esp8266
board: esp8285
I have tried various boards, but no luck.
Any clues.
Thanks
vincen
(Vincèn)
September 23, 2020, 3:06pm
2
May you share whole esphome code used ? and also picture of the board you use ?
nickrout
(Nick Rout)
September 25, 2020, 10:34pm
3
Have you tried different baud rates for the logger?
Does it appear on your wifi? Or start an AP?
Beantree
(Tony Norman)
September 27, 2020, 4:10pm
4
This is the board
Here is my YAML
esphome:
name: white_bulb_4
platform: esp8266
board: esp01
wifi:
ssid: "XXXXXXXX"
password: "xxxxxxx"
# Enable fallback hotspot (captive portal) in case wifi connection fails
ap:
ssid: "White Bulb 4 Fallback Hotspot"
password: "xxxxxxxxxx"
captive_portal:
# Enable logging
logger:
# Enable Home Assistant API
api:
password: "s2sfilwY"
ota:
password: "s2sfilwY"
This is what esphomeflasher shows
Using 'COM3' as serial port.
Connecting....
Detecting chip type... ESP8266
Connecting...
Chip Info:
- Chip Family: ESP8266
- Chip Model: ESP8285
- Chip ID: 0070C049
- MAC Address: C8:2B:96:70:C0:49
Uploading stub...
Running stub...
Stub running...
- Flash Size: 2MB
- Flash Mode: dout
- Flash Frequency: 40MHz
Erasing flash (this may take a while)...
Chip erase completed successfully in 2.4s
Flash params set to 0x0330
Compressed 392592 bytes to 273027...
Wrote 392592 bytes (273027 compressed) at 0x00000000 in 24.3 seconds (effective 129.4 kbit/s)...
Hash of data verified.
Leaving...
Hard Resetting...
Done! Flashing is complete!
Showing logs:
This is what I see on the serial monitor
▒▒▒▒r▒▒n▒b
--------------- CUT HERE FOR EXCEPTION DECODER ---------------
ets Jan 8 2013,rst cause:2, boot mode:(3,6)
load 0x4010f000, len 3584, room 16
tail 0
chksum 0xb0
csum 0xb0
v2843a5ac
~ld
--------------- CUT HERE FOR EXCEPTION DECODER ---------------
Exception (0):
epc1=0x4024f85e epc2=0x00000000 epc3=0x00000000 excvaddr=0x00000000 depc=0x00000000
>>>stack>>>
There is a load of hex dump after this. This just repeats.
It does not connect to wifi.
Please let me know if I can give any more info.
I am an experienced user of esphome and esp8266 in general, but I can’t get these little boards to work. By the way, I have tried two boards.
nickrout
(Nick Rout)
September 27, 2020, 7:01pm
5
I believe they are esp8285 not esp01.
Beantree
(Tony Norman)
September 27, 2020, 7:15pm
6
I have tried esp8285 - no different. As you see, esphomeflasher detects it correctly anyway.
nickrout
(Nick Rout)
September 27, 2020, 11:40pm
7
I am not familiar with esphomeflasher, never used it.
What log output does esphome give when uploading with esphome?
nickrout
(Nick Rout)
September 27, 2020, 11:51pm
8
Also, google finds several threads about similar errors. An example only https://github.com/arendst/Tasmota/issues/4659
It seems to be related to using an old version of the arduino framework. Which version of esphome are you using? Also see here https://esphome.io/components/esphome.html?highlight=arduino#arduino-version
Beantree
(Tony Norman)
September 28, 2020, 7:21am
9
esphomeflasher is a provided by Otto Winter to flash new devices without plugging them into your HA.https://github.com/esphome/esphome-flasher
I have always used this with ESPHome.
I am using the latest version of ESPhome - Current version: 1.15.2
I just click compile on the module.
and then download the binary. The compilation is the same. Just a different way of delivering it.
Here is the log from the compilation
INFO Reading configuration /config/esphome/white_bulb_4.yaml...
INFO Generating C++ source...
INFO Core config or version changed, cleaning build files...
INFO Deleting /data/white_bulb_4/.pioenvs
INFO Deleting /data/white_bulb_4/.piolibdeps
INFO Compiling app...
INFO Running: platformio run -d /config/esphome/white_bulb_4
Processing white_bulb_4 (board: esp8285; framework: arduino; platform: [email protected] )
--------------------------------------------------------------------------------
HARDWARE: ESP8266 80MHz, 80KB RAM, 1MB Flash
PACKAGES:
- framework-arduinoespressif8266 3.20704.0 (2.7.4)
- tool-esptool 1.413.0 (4.13)
- tool-esptoolpy 1.20800.0 (2.8.0)
- toolchain-xtensa 2.40802.200502 (4.8.2)
Looking for ESPAsyncTCP-esphome library in registry
LibraryManager: Installing id=6757 @ 1.2.3
ESPAsyncTCP-esphome @ 1.2.3 has been successfully installed!
Looking for ESPAsyncWebServer-esphome library in registry
LibraryManager: Installing id=6758 @ 1.2.7
ESPAsyncWebServer-esphome @ 1.2.7 has been successfully installed!
Looking for ESPAsyncTCP-esphome library in registry
LibraryManager: Installing id=6757
ESPAsyncTCP-esphome @ 1.2.3 has been successfully installed!
Looking for AsyncTCP-esphome library in registry
LibraryManager: Installing id=6798
AsyncTCP-esphome @ 1.1.1 has been successfully installed!
Dependency Graph
|-- <ESPAsyncTCP-esphome> 1.2.3
| |-- <ESP8266WiFi> 1.0
|-- <ESP8266WiFi> 1.0
|-- <ESP8266mDNS> 1.2
| |-- <ESP8266WiFi> 1.0
|-- <ESPAsyncWebServer-esphome> 1.2.7
| |-- <ESPAsyncTCP-esphome> 1.2.3
| | |-- <ESP8266WiFi> 1.0
| |-- <Hash> 1.0
| |-- <ESP8266WiFi> 1.0
|-- <DNSServer> 1.1.1
| |-- <ESP8266WiFi> 1.0
Compiling /data/white_bulb_4/.pioenvs/white_bulb_4/src/esphome/components/api/api_connection.cpp.o
Compiling /data/white_bulb_4/.pioenvs/white_bulb_4/src/esphome/components/api/api_pb2.cpp.o
Compiling /data/white_bulb_4/.pioenvs/white_bulb_4/src/esphome/components/api/api_pb2_service.cpp.o
Compiling /data/white_bulb_4/.pioenvs/white_bulb_4/src/esphome/components/api/api_server.cpp.o
Compiling /data/white_bulb_4/.pioenvs/white_bulb_4/src/esphome/components/api/list_entities.cpp.o
Compiling /data/white_bulb_4/.pioenvs/white_bulb_4/src/esphome/components/api/proto.cpp.o
Compiling /data/white_bulb_4/.pioenvs/white_bulb_4/src/esphome/components/api/subscribe_state.cpp.o
Compiling /data/white_bulb_4/.pioenvs/white_bulb_4/src/esphome/components/api/user_services.cpp.o
Compiling /data/white_bulb_4/.pioenvs/white_bulb_4/src/esphome/components/api/util.cpp.o
Compiling /data/white_bulb_4/.pioenvs/white_bulb_4/src/esphome/components/captive_portal/captive_portal.cpp.o
Compiling /data/white_bulb_4/.pioenvs/white_bulb_4/src/esphome/components/logger/logger.cpp.o
Compiling /data/white_bulb_4/.pioenvs/white_bulb_4/src/esphome/components/ota/ota_component.cpp.o
Compiling /data/white_bulb_4/.pioenvs/white_bulb_4/src/esphome/components/web_server_base/web_server_base.cpp.o
Compiling /data/white_bulb_4/.pioenvs/white_bulb_4/src/esphome/components/wifi/wifi_component.cpp.o
Compiling /data/white_bulb_4/.pioenvs/white_bulb_4/src/esphome/components/wifi/wifi_component_esp32.cpp.o
Compiling /data/white_bulb_4/.pioenvs/white_bulb_4/src/esphome/components/wifi/wifi_component_esp8266.cpp.o
Compiling /data/white_bulb_4/.pioenvs/white_bulb_4/src/esphome/core/application.cpp.o
Compiling /data/white_bulb_4/.pioenvs/white_bulb_4/src/esphome/core/component.cpp.o
Compiling /data/white_bulb_4/.pioenvs/white_bulb_4/src/esphome/core/controller.cpp.o
Compiling /data/white_bulb_4/.pioenvs/white_bulb_4/src/esphome/core/esphal.cpp.o
Compiling /data/white_bulb_4/.pioenvs/white_bulb_4/src/esphome/core/helpers.cpp.o
Compiling /data/white_bulb_4/.pioenvs/white_bulb_4/src/esphome/core/log.cpp.o
Compiling /data/white_bulb_4/.pioenvs/white_bulb_4/src/esphome/core/preferences.cpp.o
Compiling /data/white_bulb_4/.pioenvs/white_bulb_4/src/esphome/core/scheduler.cpp.o
Compiling /data/white_bulb_4/.pioenvs/white_bulb_4/src/esphome/core/util.cpp.o
Compiling /data/white_bulb_4/.pioenvs/white_bulb_4/src/main.cpp.o
Generating LD script /data/white_bulb_4/.pioenvs/white_bulb_4/ld/local.eagle.app.v6.common.ld
Compiling /data/white_bulb_4/.pioenvs/white_bulb_4/lib4d9/ESP8266WiFi/BearSSLHelpers.cpp.o
Compiling /data/white_bulb_4/.pioenvs/white_bulb_4/lib4d9/ESP8266WiFi/CertStoreBearSSL.cpp.o
Compiling /data/white_bulb_4/.pioenvs/white_bulb_4/lib4d9/ESP8266WiFi/ESP8266WiFi.cpp.o
Compiling /data/white_bulb_4/.pioenvs/white_bulb_4/lib4d9/ESP8266WiFi/ESP8266WiFiAP.cpp.o
Compiling /data/white_bulb_4/.pioenvs/white_bulb_4/lib4d9/ESP8266WiFi/ESP8266WiFiGeneric.cpp.o
Compiling /data/white_bulb_4/.pioenvs/white_bulb_4/lib4d9/ESP8266WiFi/ESP8266WiFiGratuitous.cpp.o
Compiling /data/white_bulb_4/.pioenvs/white_bulb_4/lib4d9/ESP8266WiFi/ESP8266WiFiMulti.cpp.o
Compiling /data/white_bulb_4/.pioenvs/white_bulb_4/lib4d9/ESP8266WiFi/ESP8266WiFiSTA-WPS.cpp.o
Compiling /data/white_bulb_4/.pioenvs/white_bulb_4/lib4d9/ESP8266WiFi/ESP8266WiFiSTA.cpp.o
Compiling /data/white_bulb_4/.pioenvs/white_bulb_4/lib4d9/ESP8266WiFi/ESP8266WiFiScan.cpp.o
Compiling /data/white_bulb_4/.pioenvs/white_bulb_4/lib4d9/ESP8266WiFi/WiFiClient.cpp.o
Compiling /data/white_bulb_4/.pioenvs/white_bulb_4/lib4d9/ESP8266WiFi/WiFiClientSecureAxTLS.cpp.o
Compiling /data/white_bulb_4/.pioenvs/white_bulb_4/lib4d9/ESP8266WiFi/WiFiClientSecureBearSSL.cpp.o
Compiling /data/white_bulb_4/.pioenvs/white_bulb_4/lib4d9/ESP8266WiFi/WiFiServer.cpp.o
Compiling /data/white_bulb_4/.pioenvs/white_bulb_4/lib4d9/ESP8266WiFi/WiFiServerSecureAxTLS.cpp.o
Compiling /data/white_bulb_4/.pioenvs/white_bulb_4/lib4d9/ESP8266WiFi/WiFiServerSecureBearSSL.cpp.o
Compiling /data/white_bulb_4/.pioenvs/white_bulb_4/lib4d9/ESP8266WiFi/WiFiUdp.cpp.o
Compiling /data/white_bulb_4/.pioenvs/white_bulb_4/lib215/ESPAsyncTCP-esphome/AsyncPrinter.cpp.o
Compiling /data/white_bulb_4/.pioenvs/white_bulb_4/lib215/ESPAsyncTCP-esphome/ESPAsyncTCP.cpp.o
Compiling /data/white_bulb_4/.pioenvs/white_bulb_4/lib215/ESPAsyncTCP-esphome/ESPAsyncTCPbuffer.cpp.o
Archiving /data/white_bulb_4/.pioenvs/white_bulb_4/lib4d9/libESP8266WiFi.a
Compiling /data/white_bulb_4/.pioenvs/white_bulb_4/lib215/ESPAsyncTCP-esphome/SyncClient.cpp.o
Compiling /data/white_bulb_4/.pioenvs/white_bulb_4/lib215/ESPAsyncTCP-esphome/tcp_axtls.c.o
Compiling /data/white_bulb_4/.pioenvs/white_bulb_4/lib0d3/ESP8266mDNS/ESP8266mDNS.cpp.o
Compiling /data/white_bulb_4/.pioenvs/white_bulb_4/lib0d3/ESP8266mDNS/ESP8266mDNS_Legacy.cpp.o
Compiling /data/white_bulb_4/.pioenvs/white_bulb_4/lib0d3/ESP8266mDNS/LEAmDNS.cpp.o
Archiving /data/white_bulb_4/.pioenvs/white_bulb_4/lib215/libESPAsyncTCP-esphome.a
Compiling /data/white_bulb_4/.pioenvs/white_bulb_4/lib0d3/ESP8266mDNS/LEAmDNS_Control.cpp.o
Compiling /data/white_bulb_4/.pioenvs/white_bulb_4/lib0d3/ESP8266mDNS/LEAmDNS_Helpers.cpp.o
Compiling /data/white_bulb_4/.pioenvs/white_bulb_4/lib0d3/ESP8266mDNS/LEAmDNS_Structs.cpp.o
Compiling /data/white_bulb_4/.pioenvs/white_bulb_4/lib0d3/ESP8266mDNS/LEAmDNS_Transfer.cpp.o
Compiling /data/white_bulb_4/.pioenvs/white_bulb_4/lib6f5/Hash/Hash.cpp.o
Compiling /data/white_bulb_4/.pioenvs/white_bulb_4/libb1b/ESPAsyncWebServer-esphome/AsyncEventSource.cpp.o
Archiving /data/white_bulb_4/.pioenvs/white_bulb_4/lib6f5/libHash.a
Compiling /data/white_bulb_4/.pioenvs/white_bulb_4/libb1b/ESPAsyncWebServer-esphome/AsyncWebSocket.cpp.o
Compiling /data/white_bulb_4/.pioenvs/white_bulb_4/libb1b/ESPAsyncWebServer-esphome/SPIFFSEditor.cpp.o
Archiving /data/white_bulb_4/.pioenvs/white_bulb_4/lib0d3/libESP8266mDNS.a
Compiling /data/white_bulb_4/.pioenvs/white_bulb_4/libb1b/ESPAsyncWebServer-esphome/WebAuthentication.cpp.o
In file included from /data/white_bulb_4/.piolibdeps/white_bulb_4/ESPAsyncWebServer-esphome/src/SPIFFSEditor.cpp:1:0:
/data/white_bulb_4/.piolibdeps/white_bulb_4/ESPAsyncWebServer-esphome/src/SPIFFSEditor.h:16:101: warning: 'SPIFFS' is deprecated (declared at /root/.platformio/packages/framework-arduinoespressif8266/cores/esp8266/FS.h:269): SPIFFS has been deprecated. Please consider moving to LittleFS or other filesystems. [-Wdeprecated-declarations]
SPIFFSEditor(const String& username=String(), const String& password=String(), const fs::FS& fs=SPIFFS);
^
Compiling /data/white_bulb_4/.pioenvs/white_bulb_4/libb1b/ESPAsyncWebServer-esphome/WebHandlers.cpp.o
Compiling /data/white_bulb_4/.pioenvs/white_bulb_4/libb1b/ESPAsyncWebServer-esphome/WebRequest.cpp.o
Compiling /data/white_bulb_4/.pioenvs/white_bulb_4/libb1b/ESPAsyncWebServer-esphome/WebResponses.cpp.o
Compiling /data/white_bulb_4/.pioenvs/white_bulb_4/libb1b/ESPAsyncWebServer-esphome/WebServer.cpp.o
Compiling /data/white_bulb_4/.pioenvs/white_bulb_4/lib760/DNSServer/DNSServer.cpp.o
Archiving /data/white_bulb_4/.pioenvs/white_bulb_4/lib760/libDNSServer.a
Archiving /data/white_bulb_4/.pioenvs/white_bulb_4/libFrameworkArduinoVariant.a
Compiling /data/white_bulb_4/.pioenvs/white_bulb_4/FrameworkArduino/Crypto.cpp.o
Compiling /data/white_bulb_4/.pioenvs/white_bulb_4/FrameworkArduino/Esp-frag.cpp.o
Compiling /data/white_bulb_4/.pioenvs/white_bulb_4/FrameworkArduino/Esp-version.cpp.o
Archiving /data/white_bulb_4/.pioenvs/white_bulb_4/libb1b/libESPAsyncWebServer-esphome.a
Compiling /data/white_bulb_4/.pioenvs/white_bulb_4/FrameworkArduino/Esp.cpp.o
Compiling /data/white_bulb_4/.pioenvs/white_bulb_4/FrameworkArduino/FS.cpp.o
Compiling /data/white_bulb_4/.pioenvs/white_bulb_4/FrameworkArduino/FSnoop.cpp.o
Compiling /data/white_bulb_4/.pioenvs/white_bulb_4/FrameworkArduino/FunctionalInterrupt.cpp.o
Compiling /data/white_bulb_4/.pioenvs/white_bulb_4/FrameworkArduino/HardwareSerial.cpp.o
Compiling /data/white_bulb_4/.pioenvs/white_bulb_4/FrameworkArduino/IPAddress.cpp.o
Compiling /data/white_bulb_4/.pioenvs/white_bulb_4/FrameworkArduino/MD5Builder.cpp.o
Compiling /data/white_bulb_4/.pioenvs/white_bulb_4/FrameworkArduino/Print.cpp.o
Compiling /data/white_bulb_4/.pioenvs/white_bulb_4/FrameworkArduino/Schedule.cpp.o
Compiling /data/white_bulb_4/.pioenvs/white_bulb_4/FrameworkArduino/StackThunk.cpp.o
Compiling /data/white_bulb_4/.pioenvs/white_bulb_4/FrameworkArduino/Stream.cpp.o
Compiling /data/white_bulb_4/.pioenvs/white_bulb_4/FrameworkArduino/StreamString.cpp.o
Compiling /data/white_bulb_4/.pioenvs/white_bulb_4/FrameworkArduino/Tone.cpp.o
Compiling /data/white_bulb_4/.pioenvs/white_bulb_4/FrameworkArduino/TypeConversion.cpp.o
Compiling /data/white_bulb_4/.pioenvs/white_bulb_4/FrameworkArduino/Updater.cpp.o
Compiling /data/white_bulb_4/.pioenvs/white_bulb_4/FrameworkArduino/WMath.cpp.o
Compiling /data/white_bulb_4/.pioenvs/white_bulb_4/FrameworkArduino/WString.cpp.o
Compiling /data/white_bulb_4/.pioenvs/white_bulb_4/FrameworkArduino/abi.cpp.o
Compiling /data/white_bulb_4/.pioenvs/white_bulb_4/FrameworkArduino/base64.cpp.o
Compiling /data/white_bulb_4/.pioenvs/white_bulb_4/FrameworkArduino/cbuf.cpp.o
Compiling /data/white_bulb_4/.pioenvs/white_bulb_4/FrameworkArduino/cont.S.o
Compiling /data/white_bulb_4/.pioenvs/white_bulb_4/FrameworkArduino/cont_util.cpp.o
Compiling /data/white_bulb_4/.pioenvs/white_bulb_4/FrameworkArduino/core_esp8266_app_entry_noextra4k.cpp.o
Compiling /data/white_bulb_4/.pioenvs/white_bulb_4/FrameworkArduino/core_esp8266_eboot_command.cpp.o
Compiling /data/white_bulb_4/.pioenvs/white_bulb_4/FrameworkArduino/core_esp8266_features.cpp.o
Compiling /data/white_bulb_4/.pioenvs/white_bulb_4/FrameworkArduino/core_esp8266_flash_quirks.cpp.o
Compiling /data/white_bulb_4/.pioenvs/white_bulb_4/FrameworkArduino/core_esp8266_flash_utils.cpp.o
Compiling /data/white_bulb_4/.pioenvs/white_bulb_4/FrameworkArduino/core_esp8266_i2s.cpp.o
Compiling /data/white_bulb_4/.pioenvs/white_bulb_4/FrameworkArduino/core_esp8266_main.cpp.o
Compiling /data/white_bulb_4/.pioenvs/white_bulb_4/FrameworkArduino/core_esp8266_noniso.cpp.o
Compiling /data/white_bulb_4/.pioenvs/white_bulb_4/FrameworkArduino/core_esp8266_phy.cpp.o
Compiling /data/white_bulb_4/.pioenvs/white_bulb_4/FrameworkArduino/core_esp8266_postmortem.cpp.o
Compiling /data/white_bulb_4/.pioenvs/white_bulb_4/FrameworkArduino/core_esp8266_si2c.cpp.o
Compiling /data/white_bulb_4/.pioenvs/white_bulb_4/FrameworkArduino/core_esp8266_sigma_delta.cpp.o
Compiling /data/white_bulb_4/.pioenvs/white_bulb_4/FrameworkArduino/core_esp8266_spi_utils.cpp.o
Compiling /data/white_bulb_4/.pioenvs/white_bulb_4/FrameworkArduino/core_esp8266_timer.cpp.o
Compiling /data/white_bulb_4/.pioenvs/white_bulb_4/FrameworkArduino/core_esp8266_waveform.cpp.o
Compiling /data/white_bulb_4/.pioenvs/white_bulb_4/FrameworkArduino/core_esp8266_wiring.cpp.o
Compiling /data/white_bulb_4/.pioenvs/white_bulb_4/FrameworkArduino/core_esp8266_wiring_analog.cpp.o
Compiling /data/white_bulb_4/.pioenvs/white_bulb_4/FrameworkArduino/core_esp8266_wiring_digital.cpp.o
Compiling /data/white_bulb_4/.pioenvs/white_bulb_4/FrameworkArduino/core_esp8266_wiring_pulse.cpp.o
Compiling /data/white_bulb_4/.pioenvs/white_bulb_4/FrameworkArduino/core_esp8266_wiring_pwm.cpp.o
Compiling /data/white_bulb_4/.pioenvs/white_bulb_4/FrameworkArduino/core_esp8266_wiring_shift.cpp.o
Compiling /data/white_bulb_4/.pioenvs/white_bulb_4/FrameworkArduino/crc32.cpp.o
Compiling /data/white_bulb_4/.pioenvs/white_bulb_4/FrameworkArduino/debug.cpp.o
Compiling /data/white_bulb_4/.pioenvs/white_bulb_4/FrameworkArduino/flash_hal.cpp.o
Compiling /data/white_bulb_4/.pioenvs/white_bulb_4/FrameworkArduino/gdb_hooks.cpp.o
Compiling /data/white_bulb_4/.pioenvs/white_bulb_4/FrameworkArduino/heap.cpp.o
Compiling /data/white_bulb_4/.pioenvs/white_bulb_4/FrameworkArduino/libb64/cdecode.cpp.o
Compiling /data/white_bulb_4/.pioenvs/white_bulb_4/FrameworkArduino/libb64/cencode.cpp.o
Compiling /data/white_bulb_4/.pioenvs/white_bulb_4/FrameworkArduino/libc_replacements.cpp.o
Compiling /data/white_bulb_4/.pioenvs/white_bulb_4/FrameworkArduino/sntp-lwip2.cpp.o
Compiling /data/white_bulb_4/.pioenvs/white_bulb_4/FrameworkArduino/spiffs/spiffs_cache.cpp.o
Compiling /data/white_bulb_4/.pioenvs/white_bulb_4/FrameworkArduino/spiffs/spiffs_check.cpp.o
Compiling /data/white_bulb_4/.pioenvs/white_bulb_4/FrameworkArduino/spiffs/spiffs_gc.cpp.o
Compiling /data/white_bulb_4/.pioenvs/white_bulb_4/FrameworkArduino/spiffs/spiffs_hydrogen.cpp.o
Compiling /data/white_bulb_4/.pioenvs/white_bulb_4/FrameworkArduino/spiffs/spiffs_nucleus.cpp.o
Compiling /data/white_bulb_4/.pioenvs/white_bulb_4/FrameworkArduino/spiffs_api.cpp.o
Compiling /data/white_bulb_4/.pioenvs/white_bulb_4/FrameworkArduino/sqrt32.cpp.o
Compiling /data/white_bulb_4/.pioenvs/white_bulb_4/FrameworkArduino/time.cpp.o
Compiling /data/white_bulb_4/.pioenvs/white_bulb_4/FrameworkArduino/uart.cpp.o
Compiling /data/white_bulb_4/.pioenvs/white_bulb_4/FrameworkArduino/umm_malloc/umm_info.c.o
Compiling /data/white_bulb_4/.pioenvs/white_bulb_4/FrameworkArduino/umm_malloc/umm_integrity.c.o
Compiling /data/white_bulb_4/.pioenvs/white_bulb_4/FrameworkArduino/umm_malloc/umm_local.c.o
Compiling /data/white_bulb_4/.pioenvs/white_bulb_4/FrameworkArduino/umm_malloc/umm_malloc.cpp.o
Compiling /data/white_bulb_4/.pioenvs/white_bulb_4/FrameworkArduino/umm_malloc/umm_poison.c.o
Archiving /data/white_bulb_4/.pioenvs/white_bulb_4/libFrameworkArduino.a
Linking /data/white_bulb_4/.pioenvs/white_bulb_4/firmware.elf
Building /data/white_bulb_4/.pioenvs/white_bulb_4/firmware.bin
Retrieving maximum program size /data/white_bulb_4/.pioenvs/white_bulb_4/firmware.elf
Checking size /data/white_bulb_4/.pioenvs/white_bulb_4/firmware.elf
RAM: [==== ] 44.4% (used 36380 bytes from 81920 bytes)
Flash: [==== ] 37.9% (used 388432 bytes from 1023984 bytes)
Creating BIN file "/data/white_bulb_4/.pioenvs/white_bulb_4/firmware.bin" using "/root/.platformio/packages/framework-arduinoespressif8266/bootloaders/eboot/eboot.elf" and "/data/white_bulb_4/.pioenvs/white_bulb_4/firmware.elf"
========================= [SUCCESS] Took 77.41 seconds =========================
INFO Successfully compiled program.
I used esphomeflasher to flash the same bin file to a D1 Mini and got this
Using 'COM11' as serial port.
Connecting....
Detecting chip type... ESP8266
Connecting....
Chip I(94 %)Writing at 0x00040000... (100 %)Wrote 392592 bytes (273021 compressed) at 0x00000000 in 6.2 seconds (effective 503.9 kbit/s)...
Hash of data verified.
Leaving...
Hard Resetting...
Done! Flashing is complete!
Showing logs:
[08:17:53][I][logger:166]: Log initialized
[08:17:53][C][ota:366]: There have been 1 suspected unsuccessful boot attempts.
[08:17:53][I][app:029]: Running through setup()...
[08:17:53][C][wifi:033]: Setting up WiFi...
[08:17:53][D][wifi:324]: Starting scan...
[08:17:59][D][wifi:339]: Found networks:
[08:17:59][I][wifi:385]: - 'FARLEIGH' (3C:89:94:FA:4A:82) ▂▄▆█
[08:17:59][D][wifi:386]: Channel: 6
[08:17:59][D][wifi:387]: RSSI: -50 dB
[08:17:59][D][wifi:389]: - 'MicroPython-156649' (62:01:94:15:66:49) ▂▄▆█
[08:17:59][D][wifi:389]: - 'BTHub5-3TGT' (A4:08:F5:AB:44:DC) ▂▄▆█
[08:17:59][D][wifi:389]: - 'BTWi-fi' (A6:08:F5:AB:44:DC) ▂▄▆█
[08:17:59][D][wifi:389]: - '' (88:DE:A9:FB:70:47) ▂▄▆█
[08:17:59][D][wifi:389]: - 'BTWi-fi' (5A:90:43:23:90:F5) ▂▄▆█
[08:17:59][D][wifi:389]: - '' (FA:8F:CA:36:7D:06) ▂▄▆█
[08:17:59][D][wifi:389]: - 'DIRECT-2d-HP M252 LaserJet' (FA:DA:0C:54:79:2D) ▂▄▆█
[08:17:59][D][wifi:389]: - 'BTHub6-9CF3' (58:90:43:23:8E:F4) ▂▄▆█
[08:17:59][I][wifi:194]: WiFi Connecting to 'FARLEIGH'...
[08:18:03][I][wifi:457]: WiFi Connected!
[08:18:03][C][wifi:303]: SSID: 'FARLEIGH'
[08:18:03][C][wifi:304]: IP Address: 192.168.0.47
[08:18:03][C][wifi:306]: BSSID: 3C:89:94:FA:4A:82
[08:18:03][C][wifi:307]: Hostname: 'white_bulb_4'
[08:18:03][C][wifi:311]: Signal strength: -57 dB ▂▄▆█
[08:18:03][C][wifi:315]: Channel: 6
[08:18:03][C][wifi:316]: Subnet: 255.255.255.0
[08:18:03][C][wifi:317]: Gateway: 192.168.0.1
[08:18:03][C][wifi:318]: DNS1: 192.168.0.1
[08:18:03][C][wifi:319]: DNS2: (IP unset)
[08:18:03][D][wifi:466]: Disabling AP...
[08:18:03][C][ota:029]: Over-The-Air Updates:
[08:18:03][C][ota:030]: Address: white_bulb_4.local:8266
[08:18:03][C][ota:032]: Using Password.
[08:18:03][C][api:022]: Setting up Home Assistant API server...
[08:18:03][I][app:059]: setup() finished successfully!
[08:18:03][I][app:105]: ESPHome version 1.15.2 compiled on Sep 28 2020, 08:04:15
[08:18:03][C][wifi:443]: WiFi:
[08:18:03][C][wifi:303]: SSID: 'FARLEIGH'
[08:18:03][C][wifi:304]: IP Address: 192.168.0.47
[08:18:03][C][wifi:306]: BSSID: 3C:89:94:FA:4A:82
[08:18:03][C][wifi:307]: Hostname: 'white_bulb_4'
[08:18:03][C][wifi:311]: Signal strength: -57 dB ▂▄▆█
[08:18:03][C][wifi:315]: Channel: 6
[08:18:03][C][wifi:316]: Subnet: 255.255.255.0
[08:18:03][C][wifi:317]: Gateway: 192.168.0.1
[08:18:03][C][wifi:318]: DNS1: 192.168.0.1
[08:18:03][C][wifi:319]: DNS2: (IP unset)
[08:18:03][C][logger:185]: Logger:
[08:18:03][C][logger:186]: Level: DEBUG
[08:18:03][C][logger:187]: Log Baud Rate: 115200
[08:18:03][C][logger:188]: Hardware UART: UART0
[08:18:03][C][captive_portal:169]: Captive Portal:
[08:18:03][C][ota:029]: Over-The-Air Updates:
[08:18:03][C][ota:030]: Address: white_bulb_4.local:8266
[08:18:03][C][ota:032]: Using Password.
[08:18:03][C][api:095]: API Server:
[08:18:03][C][api:096]: Address: white_bulb_4.local:6053
So this is clearly device specific.
nickrout
(Nick Rout)
September 28, 2020, 7:28am
10
This has me and my google-foo stumped.
There is not a huge amount of info om the M3 chip around, and it is such a short string to search on.
Beantree
(Tony Norman)
September 28, 2020, 7:42am
11
Me too! A shame because the board is so cheap!
francisp
(Francis)
September 28, 2020, 8:14am
12
Here is some more information :
For ‘normal use’ the GPIO0 has to be pulled HIGH. The EN pin has to be pulled high.
Beantree
(Tony Norman)
September 28, 2020, 3:58pm
13
I finally cracked it. Looking at this warning in the compile
In file included from /data/white_bulb_4/.piolibdeps/white_bulb_4/ESPAsyncWebServer-esphome/src/SPIFFSEditor.cpp:1:0:
/data/white_bulb_4/.piolibdeps/white_bulb_4/ESPAsyncWebServer-esphome/src/SPIFFSEditor.h:16:101: warning: 'SPIFFS' is deprecated (declared at /root/.platformio/packages/framework-arduinoespressif8266/cores/esp8266/FS.h:269): SPIFFS has been deprecated. Please consider moving to LittleFS or other filesystems. [-Wdeprecated-declarations]
SPIFFSEditor(const String& username=String(), const String& password=String(), const fs::FS& fs=SPIFFS);
I tried the board on Arduino. It would only work if I selected the ‘no SPIFFS’ option.
As the warning above showed the use of SPIFFS for a username and password, I suspected this might be to do with the addition of the ap and captive_portal.
ap:
ssid: "White Bulb 4 Fallback Hotspot"
password: "xxxxxxxxxx"
captive_portal:
I removed these and the warning did not show in the compile.
Success! I have flashed a second unit to confirm.
1 Like