[En-Nut-Discussion] If I don't have a registered serial debug device NUT/OS crashes

Dave Warren dwarren at luescher.com
Mon Jul 9 17:06:38 CEST 2007


Hi

I am using NUT/OS 4.2.1 on the Atmel SAM7X256 microcontroller. I have made a 
network device which reponds using TCP/IP. (I started with the TPCS 
example). I don't have any serial messages in my code so I tried to remove 
the

NutRegisterDevice(&DEV_DEBUG, 0, 0);
freopen(DEV_DEBUG_NAME, "w", stdout);
_ioctl(_fileno(stdout), UART_SETSPEED, &baud);

But now the system locks up!! Any ideas, why do I have to have this code.

regards

Dave Warren 




More information about the En-Nut-Discussion mailing list