ARMmbed / mbed-os-example-pelion

Mbed OS example for Pelion Device Management
Apache License 2.0
14 stars 34 forks source link

Fails to build when `mbed-trace.enable=1` and TRACE_LEVEL_DEBUG #94

Closed froeba closed 4 years ago

froeba commented 4 years ago

Steps:

Actual result: Build fails at final step

Compile [100.0%]: USBPhy_Kinetis.cpp
Link: mbed-os-example-pelion
/arm_bin/gcc-arm-none-eabi-8-2018-q4-major/bin/../lib/gcc/arm-none-eabi/8.2.1/../../../../arm-none-eabi/bin/ld: ./BUILD/K64F/GCC_ARM/mbed-os-example-pelion_application.elf section `.text' will not fit in region `m_text'
/arm_bin/gcc-arm-none-eabi-8-2018-q4-major/bin/../lib/gcc/arm-none-eabi/8.2.1/../../../../arm-none-eabi/bin/ld: region m_text overflowed with text and data
/arm_bin/gcc-arm-none-eabi-8-2018-q4-major/bin/../lib/gcc/arm-none-eabi/8.2.1/../../../../arm-none-eabi/bin/ld: region `m_text' overflowed by 32452 bytes
collect2: error: ld returned 1 exit status
[ERROR] /arm_bin/gcc-arm-none-eabi-8-2018-q4-major/bin/../lib/gcc/arm-none-eabi/8.2.1/../../../../arm-none-eabi/bin/ld: ./BUILD/K64F/GCC_ARM/mbed-os-example-pelion_application.elf section `.text' will not fit in region `m_text'
/arm_bin/gcc-arm-none-eabi-8-2018-q4-major/bin/../lib/gcc/arm-none-eabi/8.2.1/../../../../arm-none-eabi/bin/ld: region m_text overflowed with text and data
/arm_bin/gcc-arm-none-eabi-8-2018-q4-major/bin/../lib/gcc/arm-none-eabi/8.2.1/../../../../arm-none-eabi/bin/ld: region `m_text' overflowed by 32452 bytes
collect2: error: ld returned 1 exit status

[mbed] ERROR: "/System/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python" returned error.
       Code: 1
       Path: "/arm_bin/mbed-os-example-pelion"
       Command: "/System/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python -u /arm_bin/mbed-os-example-pelion/mbed-os/tools/make.py -t gcc_arm -m k64f --source . --build ./BUILD/K64F/GCC_ARM"
       Tip: You could retry the last command with "-v" flag for verbose output
---
teetak01 commented 4 years ago

Hi @bertfroeba, unfortunately the code just cannot fit there anymore on the target.

release profile/different compiler might help here, but these are the limitations with all the boards.

ciarmcom commented 4 years ago

Internal Jira reference: https://jira.arm.com/browse/IOTPART-9000

teetak01 commented 4 years ago

Closing. Generally it cannot be expected that all targets have enough flash to enable all features by default.