diff --git a/src/main/drivers/adc_impl.h b/src/main/drivers/adc_impl.h index 41f2635ce9..290a9ef583 100644 --- a/src/main/drivers/adc_impl.h +++ b/src/main/drivers/adc_impl.h @@ -31,7 +31,7 @@ #endif #if defined(STM32H7) -#define ADC_VALUES_ALIGNMENT(def) def __attribute__ ((aligned (32))) +#define ADC_VALUES_ALIGNMENT(def) __attribute__ ((section(".DMA_RAM"))) def __attribute__ ((aligned (32))) #else #define ADC_VALUES_ALIGNMENT(def) def #endif