Mbed code combining with MCU xpresso sdk example

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

Mbed code combining with MCU xpresso sdk example

1,059 Views
rdhavali
Contributor I

Hello,

I am trying to combine a mbed online compiler code that runs a dc motor on the FRDM KW41Z board with the wireless_thread_router_eligible_device SDK example on the MCU Xpresso. I tried exporting the Mbed online compiler files as a zip folder, combined it with the MCU Xpresso project, linked all the files to be included in the build but I am running into an error. The error is that it is not able to compile the line #include <sys/fcntl.h>

Any help on this would really be useful.

0 Kudos
2 Replies

871 Views
cmou
Contributor I

Change MCU Linker -> Managed Linker Script -> Libray for Redlib to Newlib (nohost).
It works for me.

0 Kudos

947 Views
lpcxpresso_supp
NXP Employee
NXP Employee

The problem is most likely caused by the fact that you're using a C/C++ library flavor that does not have file operations supported. I'd recommend going first through the IDE User Guide, section C/C++ Library Support. There are also some blog articles that might be useful:

Greetings,
MCUXpresso IDE Support

0 Kudos