KSDK 1.3.0 compile libraries for K02 as it were -mcpu=cortex-m0plus

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

KSDK 1.3.0 compile libraries for K02 as it were -mcpu=cortex-m0plus

342 Views
tomasvanek
Contributor III

Hello Freescale support,

 

I compiled a project for K02F12810 with arm gcc and KSDK 1.3.0. Linking ksdk_platform_lib gave strange warnings:

 

/usr/bin/../lib/gcc/arm-none-eabi/4.9.3/../../../../arm-none-eabi/bin/ld: error: debug/test.elf uses VFP register arguments, ~/KSDK/lib/ksdk_platform_lib/armgcc/K02F12810/debug/libksdk_platform.a(fsl_clock_manager.c.obj) does not

/usr/bin/../lib/gcc/arm-none-eabi/4.9.3/../../../../arm-none-eabi/bin/ld: failed to merge target specific data of file ~/KSDK/lib/ksdk_platform_lib/armgcc/K02F12810/debug/libksdk_platform.a(fsl_clock_manager.c.obj)

 

Searching for a reason revealed that at least

lib/ksdk_platform_lib/armgcc/K02F12810/CMakeLists.txt

lib/ksdk_hal_lib/armgcc/K02F12810/CMakeLists.txt

lib/ksdk_startup_lib/armgcc/K02F12810/CMakeLists.txt

 

use gcc option -mcpu=cortex-m0plus which is obviously wrong for a K02F12810 with Cortex-M4 core.

KSDK 1.1.0 did not have this problem.

 

Please route the report to KSDK team.

 

Tomas

Labels (1)
0 Kudos
1 Reply

221 Views
ivadorazinova
NXP Employee
NXP Employee

Hello Tomas,

Yes, you are absolutely right.

thank you for your valuable contribution.

We are very appreciated for your feedback.

I passed it to SW Development Team.

I will keep you informed.

Best Regards,

Iva

0 Kudos