Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
PeFe_666001
Level 3
Level 3
First like received First like given

On compiling the Test Console App I get the following message:

Making test_console-TWRK60D100M.elf

c:/users/016424/documents/wiced/wiced-sdk-2.4.0/wiced-sdk/tools/arm_gnu/bin/win32/arm-none-eabi-ld.exe: build/test_console-TWRK60D100M/Binary/test_console-TWRK60D100M.elf section `.text' will not fit in region `APP_CODE'

c:/users/016424/documents/wiced/wiced-sdk-2.4.0/wiced-sdk/tools/arm_gnu/bin/win32/arm-none-eabi-ld.exe: region `APP_CODE' overflowed by 22448 bytes

What is the procedure within the WICED SDK for compiler optimization to optimize the code for size? (to create more compact code?)

Thanks!

Peter

0 Likes
1 Solution
Anonymous
Not applicable

Hi Peter,

If you don't need iperf, you can remove it by modifying console.mk.

It will reduce the code size much.

Regards,

View solution in original post

3 Replies
Anonymous
Not applicable

Hi Peter,

It's already optimized by -O3.

Please see build//test_console-TWRK60D100M/config.mk


You can modify wiced_toolchain_ARM_GNU.mk for -Os.

But I'm not sure over 22KB can be shrunk.

Regards,

0 Likes

dmiya

Thanks for your insight on this!


That -Os compiler optimization setting reduced the 22KB overflow down to a 6KB overflow but as you anticipated this not enough to get the code to fit within the MCU's 512KB of flash.

Peter

0 Likes
Anonymous
Not applicable

Hi Peter,

If you don't need iperf, you can remove it by modifying console.mk.

It will reduce the code size much.

Regards,