2025-02-26 3:08 AM
Hello everyone,
I'm currently trying to set up the two ADCs (ADC1, ADC4) on my NUCLEO-U545RE-Q for multi-channel continuous conversion via GPDMA (I've previously used an L4+, but intend to change to the U5 family for the final product and am using the NUCLEO board to test the migration).
I have - to the best of my knowledge - replicated the ADC and DMA settings I've used successfully on my L4P5CE on the U545RE's GPDMA and both ADCs, however ADC1 and ADC4 seem to have slightly different "architectures" (for lack of a better word), so I've - again, to the best of my knowledge - replicated the settings on both as best I can.
However, while this works with ADC4, I'm not getting any data on ADC1.
Thing I have tried (without success - only ADC4_res_buffer is getting new data):
- enabling/disabling the ADC and GPDMA interrupts
- different ADC clock frequencies
- Swapping the channels between the ADCs (ADC1 Ch1/2; ADC4 Ch3/4 or ADC1 Ch3/4, ADC4 Ch 1/2)
- enabling/disabling ADCEx Calibration, different calibration modes
- swapping the HAL_ADC_Start_DMA order
I'm really hoping you can help me here; I've attached both the .ioc file (where I've set the GPDMA and ADCx settings) and the main.c file.
Best regards
Christoph