Skip to main content
Brice_38FR
Associate II
Feb 6, 2020 10:05 AM UTC
Solved

STM32CubeIdeMx doesn't allow DMA for ADC in continuous scan mode

Hi

I'm trying to configure my project with STM32CubeIde 1.2.1

I want to use ADC1 to perform temperature and vrefint measurement.

So I configure my adc & dma :

0690X00000D89TPQAZ.png0690X00000D89PNQAZ.png

But I'm not enable in cube to enable the DMA option, only disable is possible.

If I enable the flag manually in the code generated, I don't have any problem and the code is running as expected (continuous acquisition of both channel with an interrupt each time the acquisition is complete)

Is there a reason this option isn't possible in cube ?

This topic has been closed for replies.
Khouloud ZEMMELI
Khouloud ZEMMELIBest answer
ST Employee
Feb 6, 2020 1:15 PM UTC

​Issue will be fixed in the next release.

Best Regards,

Khouloud

12 replies

Brice_38FR
Associate II
Feb 6, 2020 10:06 AM UTC

More infos, I don't have this problem on a clean/empty project

Khouloud ZEMMELI
ST Employee
Feb 6, 2020 10:19 AM UTC

​Hello @Community member​ 

Could you please give me more details (scenario) and share your project (where did you find issue)?

Thanks,

Khouloud

Brice_38FR
Associate II
Feb 6, 2020 10:50 AM UTC

Attached is the project *.ioc

Khouloud ZEMMELI
Khouloud ZEMMELIBest answer
ST Employee
Feb 6, 2020 1:15 PM UTC

​Issue will be fixed in the next release.

Best Regards,

Khouloud

Brice_38FR
Associate II
Feb 7, 2020 7:10 AM UTC

Ok cool !

Khouloud ZEMMELI
ST Employee
Mar 2, 2020 2:14 PM UTC

​Hi @Community member​ , to abtain the fix you need to to migrate your project in a CubeMX version greater or equal than 5.4 , so  please follow those steps:

1 – Update the CubeMX version in the CubeIDE with a version greater or equal than 5.4

2 - Modify in the IOC following parameter value from false by true  , ProjectManager.AskForMigrate=false

3 - Load the IOC and answer « Migrate » to update the project with the ability to enable the DMAContinuousRequest

Best Regards,

Khouloud

Brice_38FR
Associate II
Mar 4, 2020 11:05 AM UTC

It's working (update to 5.5)

Thanks