START does not offer ADC DMA driver for SAMD51

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

I'm attempting to create a START ASFv4 project for the SAMD51J19. The ADC component does not offer ADC_DMA driver; there's sync, async and RTOS in the drop-down menu. I want to configure the ADC to trigger from a timer event and fill a block of samples (DSP modem input) and really don't want overhead for each sample.

 

Any idea how to coax START into offering me this option?

 

Thanks,

Dana  K6JQ

 

Dana  K6JQ

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

I should add - I've got the ADC triggering from a timer with the RTOS driver, and giving me blocks of samples. I just want to avoid the per-sample overhead and rather not have to get my hands dirty with the DMA controller.

Dana  K6JQ

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

... aaaaaand the RTOS driver requires a patch to the generated C code to handle more than a few samples of latency. Whew. Got it working but I felt like it ought to win a prize like weekend in Napa Valley, but I did have a sense of accomplishment that ST and Cypress never gave me.

Dana  K6JQ

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

I am struggling with the exact same problem. Could you please share your code that uses RTOS? I don't prefer to reinvent the wheel :)

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

If it really is the exact same problem then look at the example ADC DMA SEQUENCING for SAME54.

/Lars

 

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

Thanks! I found the example on Atmel Start and it gets me going along the proper direction alright. Never knew SAME5x was akin to SAMD5x. Super tip.