cancel
Showing results for 
Search instead for 
Did you mean: 

STM32G030C6T6 MULTIPLE ADC CHANNEL NOT WORKING

AKUMA.111
Associate II

In stm32g030k6t6 mutiple adc channel working fine with DMA , But Not Working in Stm32g030c6t6.

Kindly Help

1 ACCEPTED SOLUTION

Accepted Solutions

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

When your question is answered, please close this topic by clicking "Accept as Solution".
Thanks
Imen

View solution in original post

7 REPLIES 7
TDK
Guru

There are no significant differences between these chips other than package size.

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

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

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

When your question is answered, please close this topic by clicking "Accept as Solution".
Thanks
Imen

Thanks!!!!!

I am generating the code in Latest Version of Cubemx.

i am also sharing the .ioc file

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

When your question is answered, please close this topic by clicking "Accept as Solution".
Thanks
Imen

Thanks for Reply!!!

It is working when i  initialized DMA before the peripherals.

but i have doubt why Cubemx initialized DMA after the peripherals???????

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

When your question is answered, please close this topic by clicking "Accept as Solution".
Thanks
Imen