cancel
Showing results for 
Search instead for 
Did you mean: 

STM32CubeMX5.1.0 ADC "DMA Continuous Requests" doesn't work

kurta999
Senior

I opened an older project which was created with 5.0.1, and the newest CubeMX shows an error for this option in ADC. But this option is correct. I tried to create a new project, and I wasn't able to enable this option here.

33 REPLIES 33

Hi,

I'm using CubeMX 5.4.0 with FW package from Sept 2019, and I still have this issue: I set the DMA to work in circular mode using simultaneous ADC1&2, this doesn't translate into the code, it still generates this way:

hadc1.Init.DMAContinuousRequests = DISABLE;

So DMACFG is 0 and I just get one round of conversion, once I reach the end of the buffer in which the DMA stores the data, it stops.

I edited the CubeMX in a text editor, it shows correctly Dma.ADC1.0.Mode=DMA_CIRCULAR, I expect this is what enables hadc1.Init.DMAContinuousRequests. It doesn't.

If I set DMACFG in the debugger manually then the circular mode works.

Ben.

JWhit.7
Associate

I'm using STM32CubeIDE v1.3.1 and am experiencing the same issue with a STM32F469 board. I've attached the ioc.

​Hi @JWhit.7​ , I'll check it.

Regards,

Khouloud

​you're right, the 6.0.0 will be available for the next week, it's OK on 6.0.0.

We are deeply sorry for any inconvenience this may have caused.

Regards,

Khouloud