2009-11-05 01:34:05     UART doubt

Document created by Aaronwu Employee on Aug 19, 2013
Version 1Show Document
  • View in full screen mode

2009-11-05 01:34:05     UART doubt

vijai ragavan (INDIA)

Message: 82068   

 

Hai all,

 

In uclinux, kernal uses UART for debugging.

 

My doubt is can we use the same UART for some other application? i.e, Is it possible for using the UART for debugging and some other purposes?

QuoteReplyEditDelete

 

 

2009-11-05 03:52:56     Re: UART doubt

Sonic Zhang (CHINA)

Message: 82087   

 

No.

 

Although it is possible by switch mode in consequence, it may not work as you expected.

QuoteReplyEditDelete

 

 

2009-11-05 09:00:04     Re: UART doubt

Alex Williams (RUSSIAN FEDERATION)

Message: 82091   

 

1) You can use USB->Serial converter to add more serial ports, internal port - for debugging kernel, USB serial - for application ~_^ I'm using this scheme sometimes...

 

 

2) You can use kgdboe - kernel debugging over the ethernet - and serial port goes to your application.

QuoteReplyEditDelete

 

 

2009-11-05 09:35:08     Re: UART doubt

Martin Strubel (SWITZERLAND)

Message: 82092   

 

Hi,

 

I've been experimenting with simultaneous JTAG and gdbserver debugging via the ICEbear JTAG and 'bfpeek' channel (like the BTC on VisualDSP). That saves you one UART, however, it is not very fast on the 'classic' units, esp. when much ping-pong traffic is going on. We'll provide that feature with the faster ICEbear Plus, however, I don't know how long you can wait, also I don't know, how many people would use that feature such that the support efforts are worth it. I'm happy to take input :-)

 

Greetings,

 

- Strubi

QuoteReplyEditDelete

 

 

2009-11-05 09:52:39     Re: UART doubt

Robin Getz (UNITED STATES)

Message: 82094   

 

Martin:

 

The code is already complete -- See

 

https://docs.blackfin.uclinux.org/doku.php?id=bfin:jtag:comm

 

The code is:

 

(U-Boot) cpu/blackfin/jtag-console.c

 

(kernel) ./drivers/char/bfin_jtag_comm.c

 

and is supported in gdbproxy already. If you are going to do something -- that is great - but please make it work with the existing kernel and U-Boot code.

 

-Robin

QuoteReplyEditDelete

 

 

2009-11-05 09:54:31     Re: UART doubt

Robin Getz (UNITED STATES)

Message: 82095   

 

Vijaj:

 

If you need more UARTS - have a look at:

 

https://docs.blackfin.uclinux.org/doku.php?id=linux-kernel:drivers:bfin_sport_uart

 

This might help.

 

If you need one just for debug -- you can use JTAG - as Martin suggested.

 

-Robin

QuoteReplyEditDelete

 

 

2009-11-05 10:50:45     Re: UART doubt

Martin Strubel (SWITZERLAND)

Message: 82097   

 

Hi Robin,

 

Sorry, I haven't looked at the upstream stuff in a while. I'm afraid I'm using another protocol to support more channels and networking functionality, and changing that would annoy the customer base. Since my stuff is not in upstream though, it should not collide. I might look at hacking some compatibility mode.

 

Cheers,

 

- Martin

QuoteReplyEditDelete

 

 

2009-11-05 11:02:43     Re: UART doubt

Robin Getz (UNITED STATES)

Message: 82098   

 

Martin:

 

> I'm using another protocol to support more channels and networking functionality

 

We do the same - just by using standard ppp over the tty device - it works pretty well, and is also pretty quick, and already documented all over the place.

 

-Robin

Attachments

    Outcomes