2024-04-07 12:57 PM
HAL_ADC_Start_DMA() takes a pointer to a uint32_t buffer, but the cubeMX can configure the DMA for word, half_word or byte.
So therefore you can only configure the DMA for word transfers?
I was setting the cubeMX to half_word or uint16_t and using 12bit adc, but I noticed the compiler warning about HAL_ADC_Start_DMA() taking a uint32_t.
It is simple for me just to use a uint32_t buffer, but am I missing something?
Solved! Go to Solution.
2024-04-07 01:33 PM
OK, ignore my question, I see the HAL casts the pointer into a literal address, so if you want you can just ignore the compiler warnings.
2024-04-07 01:33 PM
OK, ignore my question, I see the HAL casts the pointer into a literal address, so if you want you can just ignore the compiler warnings.