Defect fix for KSDK MK02FN128 -- “xxx.elf uses VFP register arguments”

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

Defect fix for KSDK MK02FN128 -- “xxx.elf uses VFP register arguments”

Defect fix for KSDK MK02FN128 -- “xxx.elf uses VFP register arguments”

Since last year, I have received several same cases from customers when using KSDK1.2/KSDK1.3 and KDS3.0 with MK02FN128.

When create a new MK02FN128 KSDK project with  SDK Project Generator (http://www.nxp.com/products/software-and-tools/run-time-software/kinetis-software-and-tools/developm... ) or KDS3.0 project wizard, even the new created project has build errors:

134047_134047.pngpastedImage_1.png

 

When we use KSDK,  ksdk_platform_lib_xxxx must be built for the specific SoC being used in the new created KSDK platform. For K02F12810, this library project file is under:

C:\Freescale\KSDK_1.3.0\lib\ksdk_platform_lib\kds\K02F12810

 

Open ksdk_platform_lib_K02F122810 with KDS3.0, there is wrong setup in ksdk_platform_lib_K02F12810 properties setting: the default target
processor is cortex-m0plus!

134321_134321.pngpastedImage_2.png

 

Because K02 is cortex m4 core, obviously we need modify ksdk_platform_lib_K02F12810 target setting to cortex-m4 instead:

134322_134322.pngpastedImage_3.png

 

After above revise, rebuild the library project. 

Then rebuild user project. The errors are gone.

 

If user needs to use K02F12810 ksdk_hal_lib_K02F12810 or ksdk_startup_lib_K02F122810 library, they need revise ARM family core to cortex-m4 accordingly. These two libraries project files are under:

C:\Freescale\KSDK_1.3.0\lib\ksdk_hal_lib\kds\K02F12810

C:\Freescale\KSDK_1.3.0\lib\ksdk_startup_lib\kds\K02F12810

 

I have tested all the KSDS1.3 library projects. This defect is only in K02F12810 .

NXP doesn’t have K02F FRDM board so far, User can download K02F128 project to FRDM-K22F board without problem. I suggest user use K02F128 project+FRDM-K22F board to start a project. For more information on this related, see application note:

http://cache.nxp.com/files/microcontrollers/doc/app_note/AN5040.pdf

“Using the FRDM-K22F to Evaluate K02 and K22FN Devices

Hardware and Software Considerations”

Labels (1)
Attachments
No ratings
Version history
Last update:
‎01-30-2016 03:39 AM
Updated by: