(uint32_t *)SDADC1_Data, SDADC1_Data_Size );
The DMA buffer size has 200 elements and SDADC1_Data is a type uint16_t array. Before calling HAL_SDADC_InjectedStart_DMA() for the first time I prefilled all elements of SDADC_Data with a value of 0x1 so I know for sure DMA is filling it with something.
The input to SDADC1 is set for single ended zero volt reference mode.
One of the two inputs it scans is set at ground, and the other at VDDA.
DMA is filling each element of SDADC1_Data with the value 0x7FFF. It does not matter what the input voltage is, the conversion data is always 0x7FFF. I need to know what has gone wrong here.
The attached files:“Processor Power and Gnd.png” is an excerpt of the schematic showing the power and ground connections to the processor. GND and AGND are connected together elsewhere in the schematic.
“TEC_Driver_True_Studio.ioc” is the STM32CubeMX project file the initial firmware project files were generated from.