2021-09-14 03:10 AM
In stm32g030k6t6 mutiple adc channel working fine with DMA , But Not Working in Stm32g030c6t6.
Kindly Help
Solved! Go to Solution.
2021-09-17 06:13 AM
Hi @AKUMA.11 ,
In your code, try to initialize DMA before the peripherals:
MX_DMA_Init();
MX_ADC1_Init();
Hope this helps you!
Please keep me informed about your update on this issue.
Imen
2021-09-14 08:28 AM
There are no significant differences between these chips other than package size.
2021-09-15 03:14 AM
thanks for fast reply!!!!!!
But multiple(8 channels) adc is not working in stm32g030c6t6 , which is working in stm32g030k6.
i am using dma channel 1 for adc measurement.
Kindly Help
2021-09-15 04:25 AM
Hi @AKUMA.11 and welcome to the Community 🙂
Did you tried generating code using CubeMX?
Which release of CubeMX are you using ?
Make sure to use latest release of CubeMx and that you've configured the right pins compared to the datasheet of used product. For example no ADC1_IN11 signal for LQFP48 package (as described in the datasheet).
Otherwise, please share your .ioc file for check, or describe clearly (in details) the steps that you have followed, this will help to reproduce the reported issue.
Imen
2021-09-15 04:56 AM
2021-09-17 06:13 AM
Hi @AKUMA.11 ,
In your code, try to initialize DMA before the peripherals:
MX_DMA_Init();
MX_ADC1_Init();
Hope this helps you!
Please keep me informed about your update on this issue.
Imen
2021-09-23 11:17 PM
Thanks for Reply!!!
It is working when i initialized DMA before the peripherals.
but i have doubt why Cubemx initialized DMA after the peripherals???????
2021-09-24 01:08 AM
Glad to know you overcame this problem.
This is an issue with CubeMX, and I raised it internally for fix.
When your question is answered, please close this topic by choosing Select as Best. This will help other users find that answer faster.
Imen