PlummersSoftwareLLC / NightDriverStrip

NightDriver client for ESP32
https://plummerssoftwarellc.github.io/NightDriverStrip/
GNU General Public License v3.0
1.34k stars 218 forks source link

m5plusdemo blank screen #633

Closed phpbbireland closed 5 months ago

phpbbireland commented 5 months ago

Problem The m5plusdemo compiles and uploads perfectly but results in a black/blank screen.

Steps

  1. Set default_envs = m5plusdemo
  2. build completes without errors
  3. upload completes without errors

Notes

Any suggestions on how I should proceed? Does the code use User_Select_Setup.h?

rbergen commented 5 months ago

@phpbbireland I think we're going to need a little more information before we can say anything useful. Like:

And as far as I can tell by doing a search in the codebase, User_Select_Setup.h is not part of any source file in this project.

phpbbireland commented 5 months ago

Device: M5 Stick C Plus 1.1 (M5StickC PLUS ESP32-PICO Mini IoT Development Kit)... I have not connected the LED's yet, the screen on the M5 Stick is blank...

I guess I should have looked at the console... Console: E (657) esp_core_dump_flash: Core dump flash config is corrupted! CRC=0x7bd5c66f instead of 0x0 Rebooting... E (634) spi_flash: Detected size(4096k) smaller than the size in the binary image header(16384k). Probe failed. assert failed: do_core_init startup.c:328 (flash_ret == ESP_OK)

rbergen commented 5 months ago

That's a fault condition I'm personally not familiar with. The "binary image header" size of 16 megs is clearly too big, though.

rbergen commented 5 months ago

I think I see what the problem is. The m5plusdemo config in platformio.ini is actually set up to build for the M5Stack Core2. Looking at the commit history, Dave reused the m5plusdemo config to test the work he was doing towards adding support for the M5Stack Core2 to the project.

To get the config to work on the M5StickC Plus again, you can try changing the following section in platformio.ini:

[env:m5plusdemo]
extends         = dev_m5stack
build_flags     = -DM5DEMO=1
                  ${dev_m5stack.build_flags}

to:

[env:m5plusdemo]
extends         = dev_m5stick-c-plus
build_flags     = -DM5DEMO=1
                  ${dev_m5stick-c-plus.build_flags}

and then building, flashing and booting again.

phpbbireland commented 5 months ago

Excellent... that was the issue, thank you very much...

I had little hope of fixing this, thanks again... now to play ;)

rbergen commented 5 months ago

That's good to hear!

I've opened #634 to "restore" the m5plusdemo config to target the M5StickC Plus, and add a separate m5stackdemo config for the M5Stack Core2. That should avoid this confusion in the future.

In the meantime, have fun playing! 🙂