I am trying to read 3 ADC channels via DMA. One weird thing happen: if I use a breakpoint on the line of the readings, I get the correct values from the ADC. If I don't use a breakpoint, the values are always 0 or random. Can you help me ?
I tried using delays, but they don't solve the problem. Data are retrieved using HAL_ADC_Start_DMA(&hadc1, value, DATA_LENGTH) HAL_ADC_Stop_DMA(&hadc1);here below my intialization and function:void MX_ADC1_Init(void){ ADC_ChannelConfTypeDef sConf...