[En-Nut-Discussion] fgets problem

Ole Reinhardt ole.reinhardt at kernelconcepts.de
Mon Jul 11 12:56:24 CEST 2005


Hi,

> I use fgets() in a thread but when the microcontroler arrive on this instruction, 
> the card is re-initialiazed. Can you help me?

In this case you have not correctly opened stdio (or the filedescriptor
you pass to fgets).

Try to NutRegister the debug or usart device, open it and reopen it as
stdio. Take a look into the usart example.

Bye,

Ole

-- 
kernel concepts    Tel: +49-271-771091-14
Dreisbachstr. 24   Fax: +49-271-771091-19
D-57250 Netphen    E+ : +49-177-7420433
--





More information about the En-Nut-Discussion mailing list