Netduino home hardware projects downloads community

Jump to content


The Netduino forums have been replaced by new forums at community.wildernesslabs.co. This site has been preserved for archival purposes only and the ability to make new accounts or posts has been turned off.
Photo

uart0, uart1 and dbgu


  • Please log in to reply
5 replies to this topic

#1 Illishar

Illishar

    Advanced Member

  • Members
  • PipPipPip
  • 146 posts

Posted 01 February 2011 - 09:36 AM

(This thread should go to the comming RTOS thread.) I have a question in regard to low level Netduino setup: The uarts. The Nut/OS has defined the following: - uart0 is at PA0 and PA1 (Netduino COM2) - uart1 is at PA5 and PA6 (Doesn't seem to be accessible on Netduino.) - dbgu is at PA27 and PA28 (Netduino COM1) The dbgu and uart0 works fine in Nut/OS. But one cannot read from a dbgu. (It's a debug driver.) So I'm wondering how to enable a real uart driver on PA27 and PA28. I've tried inserting the dbgu pins into the uart1 driver, but it doesn't seem to be enough. (But perhaps I've messed up something.) Any thoughts? PS. I have no idea how any of this works. I'm just guessing.

#2 Chris Walker

Chris Walker

    Secret Labs Staff

  • Moderators
  • 7767 posts
  • LocationNew York, NY

Posted 01 February 2011 - 09:51 AM

Illishar, DBGU uses different processor registers than the two USARTs. The best way to get started may be to compare chapters 26 (DBGU) and 30 (USART) of the Atmel datasheet. http://www.atmel.com...nts/doc6120.pdf Does that help any? Chris

#3 Illishar

Illishar

    Advanced Member

  • Members
  • PipPipPip
  • 146 posts

Posted 01 February 2011 - 11:58 AM

Yes, it might. I'll start some studying.

#4 Illishar

Illishar

    Advanced Member

  • Members
  • PipPipPip
  • 146 posts

Posted 02 February 2011 - 09:59 AM

Wait, that wasn't all I meant to ask. I was also wondering about the internals of the Netduino netmf. It seems to me that Netduino is using the dbgu as COM1. Uart0 as COM2 and uart1 is not used at all. Is this true? Also the dbgu is different from uarts and normally uses primitive, polled drivers. Is the Netduino COM1 in fact, an inferior, polled dbgu? (I ought to change my code to use COM2 in that case?)

#5 Suresh Raj

Suresh Raj

    New Member

  • Members
  • Pip
  • 5 posts

Posted 27 March 2012 - 07:07 AM

Illishar,

DBGU uses different processor registers than the two USARTs.

The best way to get started may be to compare chapters 26 (DBGU) and 30 (USART) of the Atmel datasheet.
http://www.atmel.com...nts/doc6120.pdf

Does that help any?

Chris


Chris, So how do we get netduino software access to UART1 (PA5 and PA6 pins on SAM7X512. Is there an SDK for using UART1 in netduino board.

#6 Suresh Raj

Suresh Raj

    New Member

  • Members
  • Pip
  • 5 posts

Posted 29 March 2012 - 07:40 PM

Wait, that wasn't all I meant to ask.

I was also wondering about the internals of the Netduino netmf. It seems to me that Netduino is using the dbgu as COM1. Uart0 as COM2 and uart1 is not used at all. Is this true?

Also the dbgu is different from uarts and normally uses primitive, polled drivers. Is the Netduino COM1 in fact, an inferior, polled dbgu? (I ought to change my code to use COM2 in that case?)


Illishar, did you get any information regarding the usage of UART1 in netduino?




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

home    hardware    projects    downloads    community    where to buy    contact Copyright © 2016 Wilderness Labs Inc.  |  Legal   |   CC BY-SA
This webpage is licensed under a Creative Commons Attribution-ShareAlike License.