2023-04-01 11:04 AM
I use ADC2 and ADC3 (with HAL_ADC_Start_DMA) with no problem, just having problem with ADC1. I'm using FREE-RTOS. STM32CUBEIDE.
Solved! Go to Solution.
2023-05-03 06:21 AM
Hi
The problem has been solved. The Vref was 1.5V (instead of 3.0V) so the signal was saturated.
Thanks anyway.
2023-04-05 03:02 AM
Hello @Ofer,
Could you please share your configuration? Pin configuration, DMA channel ...? IOC file if possible?
Does conversions are performed sequentially or simultaneously?
Same issue observed without FreeRTOS?
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.
2023-04-06 01:58 PM
Hi dear Mr. Belaid
Attached the ioc file.
I use a simple polling conversion:
for( uint16_t sample_index = 0 ; sample_index < sample_number ; sample_index++ )
{
HAL_ADC_Start(&hadc1);
HAL_ADC_PollForConversion(&hadc1, 1000);
modulation_feedback_samples[sample_index] = HAL_ADC_GetValue(&hadc1);
HAL_ADC_Stop(&hadc1);
}
Have the same issue without FreeRTOS.
Thanks
2023-05-03 06:21 AM
Hi
The problem has been solved. The Vref was 1.5V (instead of 3.0V) so the signal was saturated.
Thanks anyway.