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

u8g2_SetFont(..) fails with ...region `ram' overflowed by XXXX bytes #956

Closed
samsam4 opened this issue Jul 25, 2019 · 3 comments
Closed

Comments

@samsam4
Copy link

samsam4 commented Jul 25, 2019

WICED6.2.1 with CYW20719 fails on u8g2_SetFont(..) with:

Linking target ELF
....\43xxx_Wi-Fi\tools\ARM_GNU\Win32\bin\arm-none-eabi-ld: ../build/bsc01-CYBT_413034_EVAL-rom-ram-Wiced-release/A_20719B1-bsc01-rom-ram-spar.elf section .rodata' will not fit in region ram'
....\43xxx_Wi-Fi\tools\ARM_GNU\Win32\bin\arm-none-eabi-ld: region `ram' overflowed by 126956 bytes

I found this posting and this example makefile
Is there anything different from what is posted before for STM , I need to make in order to make WICED/CYW20719 makefile.mk to work with u8g2 or u8x8 ?
Thanks

@olikraus
Copy link
Owner

The toolchain is the same.
You need to use
-ffunction-sections -fdata-sections (compile step)
and
-Wl,--gc-sections (linking step)

@samsam4
Copy link
Author

samsam4 commented Jul 25, 2019

I already add in the projects makefile.mk
C_FLAGS += -ffunction-sections -fdata-sections

still cant figure yet how to add -Wl,--gc-sections (many hierarchical makefile-s) :( and the variables names differ, but the code works so far even without the last flags :)
Thanks

@olikraus
Copy link
Owner

Ok...

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