Skip to main content
Lead
September 22, 2019
Solved

DMA Continuous Requests - Not selectable option on STM32F446RE Nucleo Board

  • September 22, 2019
  • 1 reply
  • 6389 views

Hi!

I have a question. I know that the question is similar to https://community.st.com/s/question/0D50X0000APcm2T/stm32cubemx510-adc-dma-continuous-requests-doesnt-work

But I have heard that this bug was fixed in CubeMX 5.2.0. I'm using CubeMX 5.3.0 with Nucleo STM32F446RE board and this I want I get when I start a new project.

As you see, "Disable" is only selectable option here. Why?

Here is the data sheet:

https://www.st.com/content/ccc/resource/technical/document/reference_manual/4d/ed/bc/89/b5/70/40/dc/DM00135183.pdf/files/DM00135183.pdf/jcr:content/translations/en.DM00135183.pdf

Have a look at this picture. DMA is available.

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

Oh, sorry. I just tried with your model... Apparently this is an error with STM32F446 on CubeMX (works fine with my STM32F405VG).

If you want to enable manually, go to MX_ADC1_Init(void) function, and change "hadc1.Init.DMAContinuousRequests = DISABLE" to ENABLE and make sure your dma is configured in circular mode.

1 reply

denisjkasai
Visitor II
September 23, 2019

You need to add a DMA request for ADC on "DMA Settings" tab. After selecting a DMA stream, you'll be able to enable continuous DMA requests.

DMårtAuthor
Lead
September 23, 2019

Sorry. I have done that. Should I enable it manually in C-code?

STM32MP151AAC3 custom board with STM32-OS as operating system: https://github.com/DanielMartensson/STM32-ComputerSTM32MP257FAK3 custom board with STM64-OS as operating system: https://github.com/DanielMartensson/STM64-Computer
denisjkasai
denisjkasaiBest answer
Visitor II
September 23, 2019

Oh, sorry. I just tried with your model... Apparently this is an error with STM32F446 on CubeMX (works fine with my STM32F405VG).

If you want to enable manually, go to MX_ADC1_Init(void) function, and change "hadc1.Init.DMAContinuousRequests = DISABLE" to ENABLE and make sure your dma is configured in circular mode.