[En-Nut-Discussion] web tiger serial config

Don Thompson dthompson at dcu.org
Tue Apr 15 17:44:25 CEST 2008


Hi,
Several months ago I purchased the web tiger top module for the stk500 from achatz and had no difficulty getting the ethernut examples to run, as well as the beginnings of my ap.  In the meantime I
purchased a 2.1 board from Egnite and reconfigured for ethernut2 under a different top-level directory.  When I went back to the tiger ethernut1 project, I find the serial port produces garbage
characters.   I've studied the avr usart guides but nothing will make the serial work.  I can compile and run basemon successfully.   It works correctly by letting it default to 38400 and also by
detecting the speed with space chars.
I have been trying to solve the serial error issue by use of the rs232d demo program.   I have added a dump of the UBRRL to the led's of the stk500 and it displays what I believe to be the correct
values (23 for 38400 and 7 for 115200) for the 14.7456 clock of the tiger board.  The same terminal window (kermit) configured to work with basemon produces a garbage character string which contains
the correct number of chars but appears to be a bit-size or parity error.   Kermit is configured as 8N1.  I know this has to be something really stupid, but I've spent several days on this.  I keep
thinking it has something to do with building a second copy of ethernut configured for the 2.1 board.   My environment is debian etch using avrgcc and avrdude using ethernut-4.4.0.  Again, the basemon
in the app directory, as well as my re-compile of basemon in my dont-app directory are identical and both work.  The rs232d in app as well as my compile results in the serial error.  All generate the
correct baud selector value.  Any ideas what I'm missing?

thanks,
Don



More information about the En-Nut-Discussion mailing list