MQX and dead-strip unused code

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

MQX and dead-strip unused code

753 Views
ivanpajuelo
Contributor II

There is any way to link full libraries into binary?

I already tried to disable Dead-Strip Unused Code in linker settings but there are a lot of linker errors due conditional compiling. By example in a section enclosed by MQX_USE_IPC. The curiosity is my project don't use IPC and don't matter if I define MQX_USE_IPC even in all libraries. The error is still there if I try to link my project without code stripping.

Any help or suggestion will be appreciated.

Tags (3)
0 Kudos
4 Replies

479 Views
c0170
Senior Contributor III

Hello Ivan Pajuelo,

I am not certain about your question. Can you share more with us? Why would you like to link full library?

Regards,

MartinK

0 Kudos

479 Views
ivanpajuelo
Contributor II

Hello Kojto.

I'm trying to create a shared library between a bootloader and the application. I was talking with one of your colleagues via support tickets arriving at the final conclusion that with the actual toolchain is not possible to do this.

In next CW 10.3 with the new GCC toolchain may be it can be done but not sure.

BTW. Do you know if it's possible to use MQXLite with Kinetis K series?

0 Kudos

479 Views
c0170
Senior Contributor III

Hello Ivan Pajuelo,

not possible to use Kinetis K series yet.

Regards,

MartinK

0 Kudos

479 Views
ivanpajuelo
Contributor II

Is not possible:

Use GCC with kinetis K.

It's possible:

Use C++ with GCC

Use MQXLite with Kinetis K (don't work in all CPUs and some peripherals don't work if MQXLite enabled)

Use C++ with MQXLite

Seems it's not possible:

Use shared libraries with MQX and Freescale toolchain

Don't know:

Use shared libraries with GCC and MQXLite or MQX

I already did a test project using TWRK60F120M with PE, MQXLite and C++. If anyone need how to do this, let me know.

0 Kudos