Error: VFP register

cancel
Showing results for 
Search instead for 
Did you mean: 

Error: VFP register

915 Views
Contributor I

Hi all

 

I am trying to compile a simple application using GPIO with KSDK 1.3 for MK02F128 cpu and I get some errors (related to fsl_gpio_common.o, fsl_gpio_hal.o, fsl_interrupt_manager.o, etc) like the following:

 

error: d1.elf uses VFP register arguments, C:\Freescale\KSDK_1.3.0\lib\ksdk_platform_lib\kds\K02F12810\debug\libksdk_platform.a(fsl_clock_manager_common.o) does not

 

 

I compiled the same code for a different cpu (64F12) and It works perfect.

 

How could I sort this out?

 

Thanks!!!

Labels (1)
0 Kudos
6 Replies

220 Views
Contributor I

Hi !!

Sorry for the delay.

This is my code:

In this case I am using KSDK 1.2.0

#include "fsl_device_registers.h"

#include "fsl_gpio_driver.h"

//////////////////////////////////////////////////////////////////////////////////////////////////

    enum _gpio_pins

    {

        LED                = GPIO_MAKE_PIN(GPIOD_IDX, 2),

        BUTTON        = GPIO_MAKE_PIN(GPIOA_IDX, 18),

    }

    gpio_input_pin_user_config_t inputPin[] =

    {

        {

            .pinName                       = BUTTON,

            .config.isPullEnable           = true,

            .config.pullSelect             = kPortPullUp,

            .config.isPassiveFilterEnabled = false,

            .config.interrupt              = kPortIntFallingEdge,

        },

        {

            .pinName = GPIO_PINS_OUT_OF_RANGE,

        }

    };

    gpio_output_pin_user_config_t outputPin[] =

    {

        {

            .pinName              = LED,

            .config.outputLogic   = 0,

            .config.slewRate      = kPortSlowSlewRate,

            .config.driveStrength = kPortHighDriveStrength,

        },

        {

            .pinName = GPIO_PINS_OUT_OF_RANGE,

        }

    };

/////////////////////////////////////////////////////////////////////////////////////////

int main(void)

{

    GPIO_DRV_Init(inputPin, outputPin);

    // GPIO_DRV_ClearPinOutput(LED1);

    for (;;)

    {

    }

    return 0;

}

And my includes and linker libraries

1.jpg

2.jpg

0 Kudos

220 Views
NXP TechSupport
NXP TechSupport

hi Jose.

I tried to reproduce your problem, but on my side there is no MK02F128 GPIO demo , where to get it?


Have a great day,
Zhang Jun

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos

220 Views
Contributor I

Hi Zhang.

After building the corresponding platform library, I created a kinetis project from the scratch:

- New project with KSDK 1.3 for MK02FN128xxx10.

- I added the platform library and library path to linker settings.

- I added the following include paths to C compiler settings:

      ../platform/hal/inc

      ../platform/drivers/inc

      ../platform/osa/inc

      ../platform/system/inc

It builds fine if I do not invoke any GPIO function of fsl_gpio_driver, but these errors appear when I try to use those functions.

I can't post the code right now but I can do it later.

PD: doing exactly the same for a MK64FN1M0xxx12 cpu works perfect (using its corresponding platform library)

0 Kudos

220 Views
NXP TechSupport
NXP TechSupport

Hi,

I created a new project with KSDK project generator for MK02FN128. port the .wsd to KDS, I have errors:

pastedImage_0.png

then I found there is problem in ksdk_platform_lib_K02F12810 properties setting: the default target processor is cortex-m0plus!

pastedImage_1.png

because K02 is cortex m4 core, so I modify ksdk_platform_lib_K02F12810 target setting as:

pastedImage_2.png

rebuild the library project. the rebuild user project. the error was gone on my side.


Have a great day,
Jennie Zhang

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

220 Views
Contributor III

AWESOME AWESOME this fixed my problem as well but with the K24... The lib had the ARM family correct, but the Float ABI wrong.. WHAT THE HECK!  This should have been tested no?

Anyway, there went 2 hours of my life!

Thanks for the post, it helped me!

0 Kudos

220 Views
Contributor III

And mine with a K22 (wolfSSL library).

0 Kudos