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
%3CLINGO-SUB%20id%3D%22lingo-sub-1117739%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EDefect%20fix%20for%20KSDK%20MK02FN128%20--%20%E2%80%9Cxxx.elf%20uses%20VFP%20register%20arguments%E2%80%9D%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1117739%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%3CSPAN%20style%3D%22font-size%3A%2012pt%3B%22%3ESince%20last%20year%2C%20I%20have%20received%20several%20same%20cases%20from%20customers%20when%20using%20KSDK1.2%2FKSDK1.3%20and%20KDS3.0%20with%20MK02FN128.%20%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%20style%3D%22font-size%3A%2012pt%3B%22%3EWhen%20create%20a%20new%20MK02FN128%20KSDK%20project%20%3CSTRONG%3Ewith%26nbsp%3B%20SDK%20Project%20Generator%3C%2FSTRONG%3E%20(%3CA%20_jive_internal%3D%22true%22%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Fexternal-link.jspa%3Furl%3Dhttp%253A%252F%252Fwww.nxp.com%252Fproducts%252Fsoftware-and-tools%252Frun-time-software%252Fkinetis-software-and-tools%252Fdevelopment-platforms-with-mbed%252Fsoftware-development-kit-for-kinetis-mcus%253AKINETIS-SDK%253Ffpsp%253D1%2526tab%253DDesign_Tools_Tab%22%20target%3D%22_blank%22%3E%3CSPAN%20style%3D%22font-size%3A%2012pt%3B%22%3E%3C%2FSPAN%3E%3C%2FA%3E%3CA%20href%3D%22http%3A%2F%2Fwww.nxp.com%2Fproducts%2Fsoftware-and-tools%2Frun-time-software%2Fkinetis-software-and-tools%2Fdevelopment-platforms-with-mbed%2Fsoftware-development-kit-for-kinetis-mcus%3AKINETIS-SDK%3Ffpsp%3D1%26amp%3Btab%3DDesign_Tools_Tab%22%20target%3D%22test_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Ehttp%3A%2F%2Fwww.nxp.com%2Fproducts%2Fsoftware-and-tools%2Frun-time-software%2Fkinetis-software-and-tools%2Fdevelopment-platforms-with-mbed%2Fsoftware-development-kit-for-kinetis-mcus%3AKINETIS-SDK%3Ffpsp%3D1%26amp%3Btab%3DDesign_Tools_Tab%3C%2FA%3E%3C%2FSPAN%3E%3CSPAN%20style%3D%22font-size%3A%2012pt%3B%22%3E%20)%20%3CSTRONG%3Eor%20KDS3.0%20project%20wizard%3C%2FSTRONG%3E%2C%20even%20the%20new%20created%20project%20has%20build%20errors%3A%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%20style%3D%22font-size%3A%2012pt%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22134047_134047.png%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22134047_134047.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F117750iA9C812A048FDA73E%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22134047_134047.png%22%20alt%3D%22134047_134047.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22pastedImage_1.png%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22pastedImage_1.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F37032i416B8EC20AB0836E%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22pastedImage_1.png%22%20alt%3D%22pastedImage_1.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%20style%3D%22min-height%3A%208pt%3B%20padding%3A%200px%3B%22%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20style%3D%22font-size%3A%2012pt%3B%22%3EWhen%20we%20use%20KSDK%2C%26nbsp%3B%20ksdk_platform_lib_xxxx%20must%20be%20built%20for%20the%20specific%20SoC%20being%20used%20in%20the%20new%20created%20KSDK%20platform.%20For%20K02F12810%2C%20this%20library%20project%20file%20is%20under%3A%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%20style%3D%22font-size%3A%2012pt%3B%22%3EC%3A%5CFreescale%5CKSDK_1.3.0%5Clib%5Cksdk_platform_lib%5Ckds%5CK02F12810%3C%2FSPAN%3E%3C%2FP%3E%3CP%20style%3D%22min-height%3A%208pt%3B%20padding%3A%200px%3B%22%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20style%3D%22font-size%3A%2012pt%3B%22%3EOpen%20ksdk_platform_lib_K02F122810%20with%20KDS3.0%2C%20there%20is%20wrong%20setup%20in%20ksdk_platform_lib_K02F12810%20properties%20setting%3A%20the%20default%20target%3CBR%20%2F%3Eprocessor%20is%20cortex-m0plus!%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%20style%3D%22font-size%3A%2012pt%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22134321_134321.png%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22134321_134321.png%22%20style%3D%22width%3A%20580px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F117751iD247E2794C0C81D6%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22134321_134321.png%22%20alt%3D%22134321_134321.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22pastedImage_2.png%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22pastedImage_2.png%22%20style%3D%22width%3A%20580px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F37091i4E7A0AD5789B6A33%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22pastedImage_2.png%22%20alt%3D%22pastedImage_2.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3CBR%20%2F%3E%20%3C%2FSPAN%3E%3C%2FP%3E%3CP%20style%3D%22min-height%3A%208pt%3B%20padding%3A%200px%3B%22%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20style%3D%22font-size%3A%2012pt%3B%22%3EBecause%20K02%20is%20cortex%20m4%20core%2C%20obviously%20we%20need%20modify%20ksdk_platform_lib_K02F12810%20target%20setting%20to%20cortex-m4%20instead%3A%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22134322_134322.png%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22134322_134322.png%22%20style%3D%22width%3A%20580px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F117752iC60EC782C4AD3A5B%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22134322_134322.png%22%20alt%3D%22134322_134322.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22pastedImage_3.png%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22pastedImage_3.png%22%20style%3D%22width%3A%20580px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F37088i4BE9900740020559%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22pastedImage_3.png%22%20alt%3D%22pastedImage_3.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%20style%3D%22min-height%3A%208pt%3B%20padding%3A%200px%3B%22%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20style%3D%22font-size%3A%2012pt%3B%22%3EAfter%20above%20revise%2C%20rebuild%20the%20library%20project.%26nbsp%3B%20%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%20style%3D%22font-size%3A%2012pt%3B%22%3EThen%20rebuild%20user%20project.%20The%20errors%20are%20gone.%3C%2FSPAN%3E%3C%2FP%3E%3CP%20style%3D%22min-height%3A%208pt%3B%20padding%3A%200px%3B%22%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20style%3D%22font-size%3A%2012pt%3B%22%3EIf%20user%20needs%20to%20use%20K02F12810%20ksdk_hal_lib_K02F12810%20or%20ksdk_startup_lib_K02F122810%20library%2C%20%3CSTRONG%3Ethey%20need%20revise%20ARM%20family%20core%20to%20cortex-m4%20accordingly.%20%3C%2FSTRONG%3EThese%20two%20libraries%20project%20files%20are%20under%3A%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%20style%3D%22font-size%3A%2012pt%3B%22%3EC%3A%5CFreescale%5CKSDK_1.3.0%5Clib%5Cksdk_hal_lib%5Ckds%5CK02F12810%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%20style%3D%22font-size%3A%2012pt%3B%22%3EC%3A%5CFreescale%5CKSDK_1.3.0%5Clib%5Cksdk_startup_lib%5Ckds%5CK02F12810%3C%2FSPAN%3E%3C%2FP%3E%3CP%20style%3D%22min-height%3A%208pt%3B%20padding%3A%200px%3B%22%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20style%3D%22font-size%3A%2012pt%3B%22%3EI%20have%20tested%20all%20the%20KSDS1.3%20library%20projects.%20%3CSTRONG%3EThis%20defect%20is%20only%20in%20K02F12810%20%3C%2FSTRONG%3E.%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%20style%3D%22font-size%3A%2012pt%3B%22%3ENXP%20doesn%E2%80%99t%20have%20K02F%20FRDM%20board%20so%20far%2C%20User%20can%20download%20K02F128%20project%20to%20FRDM-K22F%20board%20without%20problem.%20I%20suggest%20user%20use%20K02F128%20project%2BFRDM-K22F%20board%20to%20start%20a%20project.%20For%20more%20information%20on%20this%20related%2C%20see%20application%20note%3A%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CA%20_jive_internal%3D%22true%22%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Fexternal-link.jspa%3Furl%3Dhttp%253A%252F%252Fcache.nxp.com%252Ffiles%252Fmicrocontrollers%252Fdoc%252Fapp_note%252FAN5040.pdf%22%20target%3D%22_blank%22%3E%3CSPAN%20style%3D%22font-size%3A%2012pt%3B%22%3E%3C%2FSPAN%3E%3C%2FA%3E%3CA%20href%3D%22http%3A%2F%2Fcache.nxp.com%2Ffiles%2Fmicrocontrollers%2Fdoc%2Fapp_note%2FAN5040.pdf%22%20target%3D%22test_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Ehttp%3A%2F%2Fcache.nxp.com%2Ffiles%2Fmicrocontrollers%2Fdoc%2Fapp_note%2FAN5040.pdf%3C%2FA%3E%3C%2FP%3E%3CP%3E%3CSPAN%20style%3D%22font-size%3A%2012pt%3B%22%3E%E2%80%9CUsing%20the%20FRDM-K22F%20to%20Evaluate%20K02%20and%20K22FN%20Devices%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%20style%3D%22font-size%3A%2012pt%3B%22%3EHardware%20and%20Software%20Considerations%E2%80%9D%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1117739%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CLINGO-LABEL%3EGeneral%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
No ratings
Version history
Last update:
‎01-30-2016 03:39 AM
Updated by: