Skip to main content
hroze.1
Associate II
November 12, 2023
Solved

Pointer to cyclic buffer at stm32H7A3

  • November 12, 2023
  • 3 replies
  • 1299 views

I am running ADC DMA in cyclic mode
at STM32G474CET6  Im useing
Buffer_Addr_At_Trigger[ ADC_Loop_Counter] = hdma_adc1.Instance->CNDTR;
to read the pointer of the cyclic buffer
In the STM32H7 family
An syntax error for CNDTR

I can't find the appropriate register in the documentation

Thanks

Haim

    This topic has been closed for replies.
    Best answer by liaifat85

    Looks like In the STM32H7 family, the register you are looking for is different from the STM32G4 series. You can check the datasheet:https://www.st.com/resource/en/datasheet/stm32h743vi.pdf

    3 replies

    liaifat85Best answer
    Visitor II
    November 12, 2023

    Looks like In the STM32H7 family, the register you are looking for is different from the STM32G4 series. You can check the datasheet:https://www.st.com/resource/en/datasheet/stm32h743vi.pdf

    Tesla DeLorean
    Guru
    November 12, 2023

    Reference Manual for the DMA units and register details   https://www.st.com/resource/en/reference_manual/rm0455-stm32h7a37b3-and-stm32h7b0-value-line-advanced-armbased-32bit-mcus-stmicroelectronics.pdf

    The IDE should also let you drill down into the structures and field names. H7's can be more picky about the DMA units, and attached memories, so watch that.

    Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
    STTwo-32
    ST Technical Moderator
    November 12, 2023

    Hello @hroze.1 and welcome back to the ST Community :smiling_face_with_smiling_eyes:.

    from what I understood from your question. I see that you are looking for the equivalent of the "DMA_CNDTRx" register in the DMA registers with the STM32H7A3. This register is the "DMA_SxNDTR" as you can find in the RM0455.

    Screenshot_2023-11-12-18-37-19-84_e2d5b3f32b79de1d45acd1fad96fbb0f.jpg

    Best Regards.

    STTwo-32 

     

    To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.