diff --git a/arch/arm/src/stm32/stm32_bkp.h b/arch/arm/src/stm32/stm32_bkp.h index aefb746b75..9e2533bed3 100644 --- a/arch/arm/src/stm32/stm32_bkp.h +++ b/arch/arm/src/stm32/stm32_bkp.h @@ -42,9 +42,17 @@ #include +/* Only the STM32 F1 family has a dedicated address region for BKP memory. For F2, + * F3, and F3 parts, the bKP registers lie in the same address region as the RTCC + * and the definitions in chip/stm32_rtcc.h should be used to access backup + * registers. NOTE: These definitions are not interchangeable! + */ + +#include "chip.h" #ifdef CONFIG_STM32_STM32F10XX -# include "chip.h" # include "chip/stm32_bkp.h" +#else +# include "chip/stm32_rtcc.h" #endif /************************************************************************************