cancel
Showing results for 
Search instead for 
Did you mean: 

STM32G474RE: Dual-Mode Sampling for ADC pair 3/4 does not function correctly.

Ethan5
Associate

Hello,

I have an STM32G474RE Nucleo board configured in Dual Regular Simultaneous Mode for ADC 3/4 using CubeMX. I noticed some strange behavior with ADC 4, specifically that its conversions freeze after operating for some length of time. I thought I was experiencing a software problem on my end, but after much testing and ordering another board, I believe the issue is inherent to the STM32G474RE. When I configure a simple test for ADC pair 1/2 with DMA, using Dual Regular Simultaneous Mode and triggered by a timer, and separate the resulting conversions into two 16-bit values in the debugging window, no issues arise. But when I repeat the test and only change the ADC pair to ADC 3 (master) and ADC 4 (slave), the conversions from ADC 4 freeze every time after some length of time. I also noticed that any other code makes the problem worse. For example, if I poll SPI Transmit/Receive in the while loop in main, the readings from ADC 4 freeze almost immediately. I even tested a simple "cnt_var++" in the while loop and observed the same behavior. 

I have since changed the code for my project to only use ADC pair 1/2 but with multiple channels, and it works fine. But, I wanted to see if anyone else has experienced or reported this problem. Thanks!

1 REPLY 1
Ghofrane GSOURI
ST Employee

Hello @Ethan5 

Could you please share your .ioc file? This will allow us to review your configuration and help identify any issues in the generated project.

THX

Ghofrane

 

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.