Topic: [SOLVED] final link failed: Memory exhausted (Freescale MQX)

Hello All,

I complied wolfSSL for a TWR-K60120FM running MQX 4.1(under CW 10.5). After that I create a new MQX project for that devices and set include search paths, library search paths and link to kibcyassl.a.

In my main file I put the next line:

#include <cyassl/ssl.h>

And call CyaSSL_Init() on the main function.

If I try to compile that code, I obtain the following error:


'Finished building: ../Sources/main.c'
' '
'Building target: SSL_K60.elf'
'Executing target #2 SSL_K60.elf'
'Invoking: ARM Ltd Windows GCC C Linker'
"C:/Freescale/CW MCU v10.5/Cross_Tools/arm-none-eabi-gcc-4_7_3/bin/arm-none-eabi-gcc"    @"SSL_K60.args" -o"SSL_K60.elf"
c:/freescale/cw mcu v10.5/cross_tools/arm-none-eabi-gcc-4_7_3/bin/../lib/gcc/arm-none-eabi/4.7.3/../../../../arm-none-eabi/bin/ld.exe: final link failed: Memory exhausted
collect2.exe: error: ld returned 1 exit status
mingw32-make: *** [SSL_K60.elf] Error 1



Any Ideas how can I solve that?

Thanks in advance.

Óscar.

Share

Re: [SOLVED] final link failed: Memory exhausted (Freescale MQX)

Hello All,

Finally I found the problem. libcyassl.a was too big (about 25 MB in size) I disabled all debuging information and it worked.

To disable debugging information go to project's properties page->C/C++ Build->Settings->Debugging->Debug level->None

Hope this be useful to somebody...

Best regards.

Óscar.

Share