Aircoookie / WLED

Control WS2812B and many more types of digital RGB LEDs with an ESP8266 or ESP32 over WiFi!
https://kno.wled.ge
MIT License
14.76k stars 3.18k forks source link

Filesystem problems with analog MagicHome controller #1381

Closed morphygee closed 3 years ago

morphygee commented 3 years ago

Describe the bug I’m trying to flash a bunch of magic home controllers with wled.

firmware was compiled with esp8285_4CH_MagicHome env and extended with this flags to save memory: build_flags = ${common.build_flags_esp8266} -D WLED_DISABLE_HUESYNC -D WLED_DISABLE_ALEXA -D WLED_DISABLE_INFRARED -D WLED_DISABLE_BLYNK -D WLED_DISABLE_CRONIXIE -D WLED_USE_ANALOG_LEDS

flash is successful and the first connect to the wled-AP works.

But:

on the first page I get following warning/error:

SyntaxError:
Unexpected token < in JSON ap position0

and directly after that, on each buttonpress the following message:

Error 10: Could not mount filesystem! Saving settings and/or presets are also not possible

What works: controlling (on, off, color, 1D effects)

WLED version

Additional context the same error does not ocure with v0.10.2

Aircoookie commented 3 years ago

Hi! Sorry about that, the environments now use the correct flash layout for the filesystem :) Give it a try with the latest master!

morphygee commented 3 years ago

awesome. works again thank you

luminxa commented 3 years ago

I'm getting this error without using a magic home controller on the newest release any ideas on what might be causing it or what the fix May be?

Aircoookie commented 3 years ago

@luminxa what is your ESP model and what binary or environment did you use? This error occurs if the compiled (expected) flash size exceeds the actual flash size.

luminxa commented 3 years ago

Thanks for the quick response I got it solved. I didn't realize that the new version needed a spiff file system upload before the image :)

luminxa commented 3 years ago

btw impressed w new version

thedevleon commented 3 years ago

Just wanted to leave this here for people that run into the same issue:

In your env config, change the board_build.ldscript to common.ldscript_1m128k instead of common.ldscript_1m0m. The latter config does not have any space for the spiff file system, and as such, it can't be created.

condemil commented 3 years ago

@Aircoookie Probably it makes sense to delete the misleading configuration from here: https://github.com/Aircoookie/WLED/blob/v0.11.1/platformio.ini#L242

Aircoookie commented 3 years ago

@condemil I agree and will remove the unsupported environments completely.