Raw device using MCUXpresso / newlib

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

Raw device using MCUXpresso / newlib

706 Views
eldarfiring
Contributor III

Hi,

In KDS1.3 / MQX there was API for creating raw devices and define your own IO (init/read/write/ioctl) functions for your hardware IO device. I haven't found this in MCUXpresso SDK.  Are there any plans for adding something like that - or what are the alternatives ?

For example In KDS1.3 I could do :

_nio_dev_install("MyDev:", &Nio_MyDevFuncInit, &myDevRawDev, NULL);

myStream = fopen("MyDev:\\stream", "a+");

ioctl(fileno(myStream), NULL, IOCTL_MY_OPTION, aopt);

Then I could could use 'stdio.h' functions like vfprintf etc on those streams.

Also I wonder if newlib-nano library with debug information is available? Once I enter fprintf etc, there is assembly code only. Using MCUXpresso 10.1.0 / GCC / C++ / newlib-nano 

0 Kudos
Reply
1 Reply

580 Views
jingpan
NXP TechSupport
NXP TechSupport

Hi,

No, there is no such a plan to add this layer again.

Also debug information will not be added to newlib library.

Regards,

Jing