7 years, 5 months ago.

EXported to KDS, compile failed with K64F, p8 p9 not defined

Hello, all

I am newbie here.

I am working with this project:

https://github.com/ARMmbed/mbed-os-example-client

I tried to export this project with offline tool mbed, command like : mbed export -m K64F, -t GCC_ARM -j0 -c

But under the KDS environment, the project can not to be compiled with this error:

..\mbed-os\features\unsupported\tests\mbed\serial_interrupt_2\main.cpp:14:14: error: 'p9' was not declared in this scope Serial uartx(p9, p10); ^ ..\mbed-os\features\unsupported\tests\mbed\serial_interrupt_2\main.cpp:14:18: error: 'p10' was not declared in this scope Serial uartx(p9, p10);

Could anyone has an idea? Any help is highly appreciated.

Thanks

Haisheng

Question relating to:

The Freedom-K64F is an ultra-low-cost development platform for Kinetis K64, K63, and K24 MCUs.

1 Answer

7 years, 3 months ago.

Just share a guide of How to use mbed with KDS: https://frdmtoplay.com/using-mbed-with-kinetis-design-studio/

I assume the error function is not what you care, so a workaround is to change the pin name with standard definition which may located in ...\TARGET_KPSDK_MCUS\TARGET_MCU_K64F\TARGET_FRDM\PinNames.h

Accepted Answer