8 years, 11 months ago.

mbed export kds not working for K64F, error p9 p10 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

p9 and p10 are pins on some devices (most likely mbed LPC1768). Using the mbed CLI has been quite some time ago for me, and I never looked at all that mbed-os stuff. However to me it seems you are exporting the wrong thing. The serial_interrupt_test is not what you are looking for, and in that test it has only been setup for the mbed LPC1768 most likely.

posted by Erik - 15 Nov 2016
Be the first to answer this question.