XDMAC UART read unknown size

Go To Last Post
5 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hi,

 

I am using ATSAMV71J21 and I Want to configure UART0 with XDMAC.

 

I used SPI XDMAC example to configure UART XDMAC settings.

Transmission part is perfectly working fine.

On reception part, i get into XDMAC handler XDMAC_CIS_BIS only after receiving Microblock length of buffer size is reached.

 

1. But how to get notified when unknown data size is received?

2. How to get UART RX idle line interrupt?

3. How to copy data into user buffer, what is this clean and invalidate D cache and how to use?

4. If i set buffer size as 10 and if I received 4 bytes, how to get notified about this.

 

Is there any proper UART XDMA example that i can get to proceed further?

 

Eagerly waiting for your response!

 

Thank you

nvn

Last Edited: Thu. Dec 9, 2021 - 02:08 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

 

Welcome to AVRFreaks!

Not many SAM users here, but perhaps this app note will help: http://ww1.microchip.com/downloa...

 

 

FF = PI > S.E.T

 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

ki0bk wrote:
Not many SAM users here

but, now it's been moved from AVRFreaks to the SAM forums, should be plenty here ...

Top Tips:

  1. How to properly post source code - see: https://www.avrfreaks.net/comment... - also how to properly include images/pictures
  2. "Garbage" characters on a serial terminal are (almost?) invariably due to wrong baud rate - see: https://learn.sparkfun.com/tutorials/serial-communication
  3. Wrong baud rate is usually due to not running at the speed you thought; check by blinking a LED to see if you get the speed you expected
  4. Difference between a crystal, and a crystal oscillatorhttps://www.avrfreaks.net/comment...
  5. When your question is resolved, mark the solution: https://www.avrfreaks.net/comment...
  6. Beginner's "Getting Started" tips: https://www.avrfreaks.net/comment...
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Now been re-posted, with a reply: https://community.atmel.com/forum/xdmac-uart-read-unknown-size-0

 

Maybe this one should be locked?

Top Tips:

  1. How to properly post source code - see: https://www.avrfreaks.net/comment... - also how to properly include images/pictures
  2. "Garbage" characters on a serial terminal are (almost?) invariably due to wrong baud rate - see: https://learn.sparkfun.com/tutorials/serial-communication
  3. Wrong baud rate is usually due to not running at the speed you thought; check by blinking a LED to see if you get the speed you expected
  4. Difference between a crystal, and a crystal oscillatorhttps://www.avrfreaks.net/comment...
  5. When your question is resolved, mark the solution: https://www.avrfreaks.net/comment...
  6. Beginner's "Getting Started" tips: https://www.avrfreaks.net/comment...
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 1

awneil wrote:
Maybe this one should be locked?

Yup

 

Jim

I would rather attempt something great and fail, than attempt nothing and succeed - Fortune Cookie

 

"The critical shortage here is not stuff, but time." - Johan Ekdahl

 

"Step N is required before you can do step N+1!" - ka7ehk

 

"If you want a career with a known path - become an undertaker. Dead people don't sue!" - Kartman

"Why is there a "Highway to Hell" and only a "Stairway to Heaven"? A prediction of the expected traffic load?"  - Lee "theusch"

 

Speak sweetly. It makes your words easier to digest when at a later date you have to eat them ;-)  - Source Unknown

Please Read: Code-of-Conduct

Atmel Studio6.2/AS7, DipTrace, Quartus, MPLAB, RSLogix user

Topic locked