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

Lanbon L8 build error using platformio-core #72

Closed
3 tasks done
nagyrobi opened this issue Mar 4, 2021 · 14 comments
Closed
3 tasks done

Lanbon L8 build error using platformio-core #72

nagyrobi opened this issue Mar 4, 2021 · 14 comments
Assignees
Labels
bug Something isn't working

Comments

@nagyrobi
Copy link
Collaborator

nagyrobi commented Mar 4, 2021

Perform all steps below and tick them with [x]

  • Check the related part of the Documentation
  • Update hasp-lvgl to the latest version
  • Reproduce the issue and describe all steps

Describe the bug

Build for Lanbon L8 fails with:
Error: The program size (1447642 bytes) is greater than maximum allowed (1441792 bytes)
Nevertheless tried to flash to the unit, that didn't produce an error. But the device doesn't boot, only a white screen appears.

To Reproduce

  • Set up a platformio-core environment. (note: Tasmota builds correctly in the same environment).
  • Clone repo
  • Create platformio_override.ini where I only uncomment user_setups/esp32/*.ini and lanbon_l8
  • Build with pio run 2>&1 | tee build.log

See: build.log

Expected behavior

Have a build without errors.

Screenshots or video

@nagyrobi nagyrobi added the bug Something isn't working label Mar 4, 2021
@fvanroie
Copy link
Collaborator

fvanroie commented Mar 4, 2021

The recent espressif v3.1.0 is quite a bit larger then v3.0.0, causing the build to fail.
I pinned it to the previous platform = espressif32@3.0.0 for Lanbon L8 builds now.

@nagyrobi
Copy link
Collaborator Author

nagyrobi commented Mar 4, 2021

OK testing...

@nagyrobi
Copy link
Collaborator Author

nagyrobi commented Mar 4, 2021

Still not good: build.log

@fvanroie
Copy link
Collaborator

fvanroie commented Mar 4, 2021

Which branch are you building?

@nagyrobi
Copy link
Collaborator Author

nagyrobi commented Mar 4, 2021

The default one which comes with git clone --recursive https://github.com/fvanroie/hasp-lvgl as stated in the main readme.

@fvanroie
Copy link
Collaborator

fvanroie commented Mar 4, 2021

OK I need to investigate this a bit further. In the meantime, you can use the auto-compiled binary from https://github.com/fvanroie/hasp-lvgl/actions/runs/622049076. The linux build seems to build find, while on Windows it fails...

@nagyrobi
Copy link
Collaborator Author

nagyrobi commented Mar 4, 2021

I'm on Linux too and it fails...
Auto-compiled binary is OK and #71 works perfect with my 63-character key.

@nagyrobi
Copy link
Collaborator Author

nagyrobi commented Mar 5, 2021

Maybe because BLE stack included with Lanbon L8?

Compiling .pio/build/lanbon_l8/lib079/BLE/BLE2902.cpp.o
Compiling .pio/build/lanbon_l8/lib079/BLE/BLE2904.cpp.o
Archiving .pio/build/lanbon_l8/libb0f/libAceButton.a
Compiling .pio/build/lanbon_l8/lib079/BLE/BLEAddress.cpp.o
Indexing .pio/build/lanbon_l8/libb0f/libAceButton.a
Compiling .pio/build/lanbon_l8/lib079/BLE/BLEAdvertisedDevice.cpp.o
Compiling .pio/build/lanbon_l8/lib079/BLE/BLEAdvertising.cpp.o
Compiling .pio/build/lanbon_l8/lib079/BLE/BLEBeacon.cpp.o
Compiling .pio/build/lanbon_l8/lib079/BLE/BLECharacteristic.cpp.o
Compiling .pio/build/lanbon_l8/lib079/BLE/BLECharacteristicMap.cpp.o
Compiling .pio/build/lanbon_l8/lib079/BLE/BLEClient.cpp.o
Compiling .pio/build/lanbon_l8/lib079/BLE/BLEDescriptor.cpp.o
Compiling .pio/build/lanbon_l8/lib079/BLE/BLEDescriptorMap.cpp.o
Compiling .pio/build/lanbon_l8/lib079/BLE/BLEDevice.cpp.o
Compiling .pio/build/lanbon_l8/lib079/BLE/BLEEddystoneTLM.cpp.o
Compiling .pio/build/lanbon_l8/lib079/BLE/BLEEddystoneURL.cpp.o
Compiling .pio/build/lanbon_l8/lib079/BLE/BLEExceptions.cpp.o
Compiling .pio/build/lanbon_l8/lib079/BLE/BLEHIDDevice.cpp.o
Archiving .pio/build/lanbon_l8/lib083/libConsoleInput.a
Archiving .pio/build/lanbon_l8/libda1/libEEPROM.a
Indexing .pio/build/lanbon_l8/lib083/libConsoleInput.a
Indexing .pio/build/lanbon_l8/libda1/libEEPROM.a
Compiling .pio/build/lanbon_l8/lib079/BLE/BLERemoteCharacteristic.cpp.o
Compiling .pio/build/lanbon_l8/lib079/BLE/BLERemoteDescriptor.cpp.o
Compiling .pio/build/lanbon_l8/lib079/BLE/BLERemoteService.cpp.o
Compiling .pio/build/lanbon_l8/lib079/BLE/BLEScan.cpp.o
Compiling .pio/build/lanbon_l8/lib079/BLE/BLESecurity.cpp.o
Compiling .pio/build/lanbon_l8/lib079/BLE/BLEServer.cpp.o
Compiling .pio/build/lanbon_l8/lib079/BLE/BLEService.cpp.o
Compiling .pio/build/lanbon_l8/lib079/BLE/BLEServiceMap.cpp.o
Compiling .pio/build/lanbon_l8/lib079/BLE/BLEUUID.cpp.o
Archiving .pio/build/lanbon_l8/lib06a/libPubSubClient.a
Indexing .pio/build/lanbon_l8/lib06a/libPubSubClient.a
Compiling .pio/build/lanbon_l8/lib079/BLE/BLEUtils.cpp.o
Compiling .pio/build/lanbon_l8/lib079/BLE/BLEValue.cpp.o
Compiling .pio/build/lanbon_l8/lib079/BLE/FreeRTOS.cpp.o
Compiling .pio/build/lanbon_l8/lib079/BLE/GeneralUtils.cpp.o

Afaik this device doesn't support Bluetooth so maybe this just takes up the space?

EDIT: added ESP32 BLE Arduino to lanbon_l8.ini's lib_ignore section. It didn't compile BLE in anymore, but the program size is still the same. I don't get it...
Ran pio run -t clean before...

@nagyrobi
Copy link
Collaborator Author

nagyrobi commented Mar 5, 2021

I succeeded to create an image which fits in by removing robotocondensed_regular_28_nokern.c.
Since it doesn't seem support LATIN-2 or Unicode chars, it needs replacement anyway (at least for me). The demo pages still show without robotocondensed_regular_28_nokern.

@nagyrobi
Copy link
Collaborator Author

nagyrobi commented Mar 8, 2021

0.4.0-dev now builds like this:

Visual Studio + Platformio on a Linux desktop environment (Ubuntu 20.04):
Flash: [==========] 97.9% (used 1411030 bytes from 1441792 bytes)

Platformio-Core only on a Linux VM headless envoronmnt (CentOS 7.9):
Flash: [==========] 100.5% (used 1448530 bytes from 1441792 bytes)

Really strange...

@fvanroie
Copy link
Collaborator

The partition size for 0.4.0-dev is now increased to 2Mb.

@nagyrobi
Copy link
Collaborator Author

Great! What's the flash size of Lanbon L8 btw?

@fvanroie
Copy link
Collaborator

It's 8Mb

@nagyrobi
Copy link
Collaborator Author

Thx

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants