[En-Nut-Discussion] If I don't have a registered serial debug device NUT/OS crashes
Mustafa Yuecel
yuecel at tik.ee.ethz.ch
Mon Jul 9 17:55:05 CEST 2007
Hi Dave
the stdout stream must be registered somehow. You can register with
devNull to disable the stdout feature:
#include <dev/null.h>
// null device:
NutRegisterDevice(&devNull, 0, 0);
freopen(devNull.dev_name, "r+", stdout);
Musti
Dave Warren wrote:
> 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
>
> _______________________________________________
> http://lists.egnite.de/mailman/listinfo/en-nut-discussion
More information about the En-Nut-Discussion
mailing list