Skip to main content
MagicFly
Associate
Mar 18, 2022 4:43 AM UTC
Question

Cubeide ADC DMA code generation sequence problem

I am using CUBEIDE 1.9.0.

Stm32f103ret6 is used.

The ADC generated a code to use DMA.

However, it did not work properly.

The cause should have been __HAL_RCC_DMA1_CLK_ENABLE() before this ADC was initialized.

I tried to modify the DMA initialization faster than ADC when generating the code, but it was not modified.

What should I do?

This topic has been closed for replies.

2 replies

TDK
Mar 18, 2022 1:31 PM UTC
"If you feel a post has answered your question, please click ""Accept as Solution""."
MagicFly
MagicFlyAuthor
Associate
Mar 23, 2022 12:24 AM UTC

Thank you for your reply.

The IOC file was modified by referring to the link.

I have confirmed that it will be corrected normally.

However, it seems that there is still a bug when generating the initial IOC file.  

I created an IOC file with version 1.9.0 and this problem occurred.

I hope it will be improved in the next version.