vitotai / BrewPiLess

Use an ESP8266 to replace RPI and Arduino. Running BrewPi without Pi, therefore, BrewPi-Less
358 stars 134 forks source link

No space for logs. NodeMCU #321

Closed axis03 closed 3 years ago

axis03 commented 3 years ago

Hi I have problem with flash BrewPiLess.v4.1r4.4m2m.bin to my device. When I using NodeMCU flasher and set flash size 4MB then device restarting before i can connect, when i set 2MB then in log menu i see "Free Space: -8 Bytes, Used Space: 16 Bytes, Total Space: 8 Bytes" I tried upload code by platformio with 1.8.0 framework and with editing ld file and have this same problem.

What I do wrong?

Version BrewPiLess.v3.6.4m2m.bin is working

axis03 commented 3 years ago

OK. I find what was wrong. I must edit code in two places.

[env:esp8266-dev] platform = ${common_env_data.esp8266_framework} board = nodemcuv2 framework = arduino lib_extra_dirs = ${common_env_data.esp8266_lib} build_flags = -Wl,-Tesp8266.flash.4m.ld ###edit this from 4m2m to 4m -DSerialDebug=true

board_build.ldscript = eagle.flash.4m.ld ###edit this from 4m2m to 4m