Debug UART (UART2) Example Code

Unsolved
roberthartman's picture
roberthartman
Junior(0)

I'm looking for an example of using UART2 on this board. This question is somewhat related to http://cloudconnectkits.org/forum/topic/uart-access, however hopefully it can stand alone as its own question. I've run into issues reading UART2 via open/read/write/ioctl etc., and a wondering if someone has worked out another way. A UART1 example would also be welcomed.

roberthartman's picture
roberthartman
Junior(0)

I've since found out that based upon the response in http://cloudconnectkits.org/forum/topic/uart-access, there appears to be no such example.

jflynn129's picture
jflynn129
Moderator(2)

Rob, I'm checking on the UART2 access in the other thread.  I don't have any example code for accessing the UART1 directly.  As delivered in the SDK, this is STDIN and adbd uses it for output via ADB.  If WNC provides some response for re-building the kernel, it may be possible to eliminate adb and take over the STDIN/UART1 but as implemented currently, I've not tried to do that and have no example code for it.