Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to build using Platform.io with current versions #73

Open
hhinma opened this issue Feb 14, 2023 · 2 comments
Open

Unable to build using Platform.io with current versions #73

hhinma opened this issue Feb 14, 2023 · 2 comments

Comments

@hhinma
Copy link

hhinma commented Feb 14, 2023

I created a new platform.io project today with the VSC plug in, following the instructions in the readme. The Initial compile failed due to one of the masks used in the play_music_date method (I guess something must have changed in a more recent version of one of the libraries) I resolved that by commenting out the function.

Next problem was unresolved symbols in the Adafruit_NeoPixel library. That did not seem to be being linked in, so I added https://github.com/adafruit/Adafruit_NeoPixel.git to the LIB_DEPS in platform.ini. That resolved the linking issues, but the overall build failed because the image ended up too large. Im assuming I am missing something and/or external dependencies have changed since this was documented. Any thoughts?

Linking .pio/build/m5stack-core-esp32/firmware.elf
Retrieving maximum program size .pio/build/m5stack-core-esp32/firmware.elf
Checking size .pio/build/m5stack-core-esp32/firmware.elf
Advanced Memory Usage is available via "PlatformIO Home > Project Inspect"
RAM: [== ] 21.7% (used 71216 bytes from 327680 bytes)
Error: The program size (1935201 bytes) is greater than maximum allowed (1310720 bytes)
Flash: [====*** [checkprogsize] Explicit exit, status 1
======] 147.6% (used 1935201 bytes from 1310720 bytes)

@mlukasek
Copy link
Owner

mlukasek commented Feb 14, 2023

Exactly ;-) The main reason not updating anything is the size of application that would require different partitioning and thus non working web update. Also the combination of libraries is a little bit picky to make it work reliably. Everything would be possible, but it needs time, that is scarce for me last year.

If you change the partition size, you can build it and the latest libraries seems to be quite reliable and working well. Create partition file eg. min_spiffs.csv and use it. This should work:

'# Name, Type, SubType, Offset, Size, Flags

nvs, data, nvs, 0x9000, 0x5000,

otadata, data, ota, 0xe000, 0x2000,

app0, app, ota_0, 0x10000, 0x1E0000,

app1, app, ota_1, 0x1F0000,0x1E0000,

spiffs, data, spiffs, 0x3D0000,0x30000,
'

@karelkral
Copy link
Collaborator

I have just successfully flashed a new version for M5Stack Core from PlatformIO.

  • I created min_spiffs.csv in root dir
  • References this file in platformio.ini: board_build.partitions = min_spiffs.csv
  • Flashed into M5 Core
RAM:   [===       ]  29.5% (used 96640 bytes from 327680 bytes)
Flash: [==========]  99.5% (used 1955861 bytes from 1966080 bytes)

It is working.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants