cancel
Showing results for 
Search instead for 
Did you mean: 

Cubeide ADC DMA code generation sequence problem

MagicFly
Associate

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?

2 REPLIES 2
TDK
Guru

https://community.st.com/s/question/0D53W00001EzCmCSAV/mxdmainit-order-in-the-mainc-file-generated-by-stm32cubemx-how-to-fix

If you feel a post has answered your question, please click "Accept as Solution".

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.