Skip to main content
Brice_38FR
Associate II
February 6, 2020
Solved

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

  • February 6, 2020
  • 12 replies
  • 4712 views

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.
Best answer by Khouloud ZEMMELI

​Issue will be fixed in the next release.

Best Regards,

Khouloud

12 replies

Brice_38FR
Associate II
February 6, 2020

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

Khouloud ZEMMELI
ST Employee
February 6, 2020

​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
February 6, 2020

Attached is the project *.ioc

Khouloud ZEMMELI
Khouloud ZEMMELIBest answer
ST Employee
February 6, 2020

​Issue will be fixed in the next release.

Best Regards,

Khouloud

Brice_38FR
Associate II
February 7, 2020

Ok cool !

Khouloud ZEMMELI
ST Employee
March 2, 2020

​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
March 4, 2020

It's working (update to 5.5)

Thanks