Pb in NETOS71 to open serial line

Hi all,

Now I am transfering my app to NETOS71 from 60F, I have a problem to open the serial line using termios.

I obtain -1 when I do :
fd = open (port_cnfg->portname, (O_RDWR | O_NONBLOCK) );

I suppose that the serial port is used by an other thread I don’t control, but I don’t know which…

Thank for any information !


Which COM port are you trying to open? Is it being held open by STDIO/Dialog (see appconf.h) or does the serial port need to be enabled in your bsp.h file?

Thank you Charliek, I forgot this. This is now corrected…