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.
Change MCU Linker -> Managed Linker Script -> Libray for Redlib to Newlib (nohost).
It works for me.
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