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

Sketch is too big to fit in LLEXT HEAP #15

Open
mjs513 opened this issue Dec 15, 2024 · 1 comment
Open

Sketch is too big to fit in LLEXT HEAP #15

mjs513 opened this issue Dec 15, 2024 · 1 comment

Comments

@mjs513
Copy link

mjs513 commented Dec 15, 2024

When testing SDFat and Sparkfun BMI270 libraries following error was found (see #4 (comment)). @facchinm identified the temp fix and issue as:

  • with UART connected -> we see the shell, type sketch, get

[00:00:01.528,000] <err> llext: Failed to copy regions, ret -12 Failed to load sketch, rc -12

-- Reason: the sketch is too big to fit in LLEXT HEAP (the one that will be used when interacted via shell)

-- Solution: temporarily reduce CONFIG_HEAP_MEM_POOL_SIZE to 2048, increase CONFIG_LLEXT_HEAP_SIZE to 64

However when making the change to CONFIG_LLEXT_HEAP_SIZE to 64 error still occurred when attempting to run a Sparkfun BMI270 test sketch. Increasing to 128 resolved that issue. In addition looking at the Portenia H7 conf followwing change was made to the Giga conf:

CONFIG_HEAP_MEM_POOL_SIZE=2048
CONFIG_SHELL_STACK_SIZE=32768
CONFIG_MAIN_STACK_SIZE=32768
CONFIG_LLEXT_HEAP_SIZE=128

This probably needs to be changed in the Config before a beta release

@KurtE
Copy link

KurtE commented Dec 15, 2024

Note: The settings that @mjs513 were also needed to get my SD to ILI9341 picture viewer to work. At times
it would limp along at 96 with only BMP files supported. However with the 128 it works with both BMP and JPEG (JPEGDEC library), but still fails if I also try to enable PNG files (PNGDEC library).

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

2 participants