Skip to main content
SSong.3
Visitor II
May 5, 2022
Question

Pls help to check my ADC DMA settings for NUCLEO-F767ZI

  • May 5, 2022
  • 0 replies
  • 788 views

I would like to configure ADC1 and ADC2 as dual interleaved mode, for continues ADC conversion. And use DMA to transfer the converted data to RAM.

The goal is to implement a continues ADC at the fastest sample rate with dual interleaved mode (4.5MSPS)

​

But i am totally confused by the DMA data width and burst size settings.

I know that when using ​ADC dual mode, the ADC conversion result is combined into the ADC_CDR register. So I would expect the Peripheral data width is "Word", not "half word".

​

But when I try to set it to "word", it result in hard fault interruption.

Only when I set it to "half word" it seems to work without hard fault.

0693W00000NpHFgQAN.pngI also would like to turn on the FIFO here, and then I am also confused how to setup the Burst size here. I tried a few combinations but I still don't know what should be the correct value here.

​

Attached is my .ioc file. Please help to guide me on what is the correct configuration to enable DMA with FIFO and get the data width/burst size right.

​

Thanks a lot!

​

Shan Song​

​

​

​

This topic has been closed for replies.