cancel
Showing results for 
Search instead for 
Did you mean: 

how does HAL_ADC_Start_DMA() behave if the DMA is set to half_word

Konrad1
Associate II

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?

1 ACCEPTED SOLUTION

Accepted Solutions
Konrad1
Associate II

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.

View solution in original post

1 REPLY 1
Konrad1
Associate II

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.