Open LONGACAT opened 2 years ago
After some further testing it seems the issue was introduced in platform version 3.2.0. Using 3.1.0 and below works fine
Same problem here. D1 mini pro ESP8266. I have not change anything in the initial yaml:
esphome:
name: espd1test
esp8266:
board: d1_mini_pro
# Enable logging
logger:
# Enable Home Assistant API
api:
encryption:
key: "WFVROpHyI6GF1gxpjPn50g6LHK+nhf2flOmYZHJp+Y0="
ota:
password: "0a49bb5de73a59513b052dbbce24022a"
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password
# Enable fallback hotspot (captive portal) in case wifi connection fails
ap:
ssid: "Espd1Test Fallback Hotspot"
password: "VWomHeBo0tEE"
captive_portal:
`
I get this in the log on esphome in google chrome.:
`r$l����$�|�l�#|�����|b�b��on�$oN���cp��l{lslp�n��l��bn�|���#�|~�o�l��$`�Nn�s$N{���osr�`p�o�r��ܜ��"N�|�c��on��$`�no�{lnr���n{l r��n{l �䎐�l`��N�l[I][logger:258]: Log initialized
[C][ota:469]: There have been 3 suspected unsuccessful boot attempts.
[I][app:029]: Running through setup()...
[C][wifi:037]: Setting up WiFi...
[C][wifi:038]: Local MAC: 48:3F:DA:60:18:03
[D][wifi:386]: Starting scan...
ets Jan 8 2013,rst cause:4, boot mode:(3,6)
wdt reset
load 0x4010f000, len 3460, room 16
tail 4
chksum 0xcc
load 0x3fff20b8, len 40, room 4
tail 4
chksum 0xc9
csum 0xc9
v00074f70
~ld`
Using PlatformIO to compile for the WEMOS D1 mini Pro will cause a crash after reaching end of setup(). The following sketch works fine in Arduino IDE but not in PlatformIO CLion:
Expected behaviour (this happens in Arduino IDE): Prints "Setup started" and "Setup completed" to Serial monitor then blinks builtin led
Actual behaviour: Prints "Setup started" and "Setup completed" to Serial monitor then resets with cause 2
platformio.ini:
After adding
build_type = debug
andmonitor_filters = esp8266_exception_decoder
I have gotten the following from Serial monitor (it gets repeated infinitely):According to some googling this means the heap is full and the device ran out of memory, but I don't see how is that possible with a simple blink sketch and why does it work fine in Arduino IDE