From 2f4eaa7979c78d12ab0dadafa308d279ad2b2721 Mon Sep 17 00:00:00 2001 From: Vassilis Serasidis Date: Fri, 22 Jun 2018 19:49:05 +0300 Subject: [PATCH] STM32F407 BKPSRAM Boundary address fix Fix for the Backup RAM. Example code: ... #include ... bkp_init(); bkp_enable_writes(); bkp_write(1, 0x1234); //Writes the value 0x1234 at Backup RAM address 1 bkp_disable_writes(); Serial.print(bkp_read(1)); //Print the value of the Backup RAM address 1 ... --- STM32F4/cores/maple/libmaple/bkp.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/STM32F4/cores/maple/libmaple/bkp.h b/STM32F4/cores/maple/libmaple/bkp.h index dd378b4..44754a3 100644 --- a/STM32F4/cores/maple/libmaple/bkp.h +++ b/STM32F4/cores/maple/libmaple/bkp.h @@ -99,7 +99,7 @@ typedef struct bkp_reg_map { } bkp_reg_map; /** Backup peripheral register map base pointer. */ -#define BKP_BASE ((struct bkp_reg_map*)0x40006C00) +#define BKP_BASE ((struct bkp_reg_map*)0x40024000) /** Backup peripheral device type. */ typedef struct bkp_dev {