Skip to content

Commit 2f4eaa7

Browse files
committed
STM32F407 BKPSRAM Boundary address fix
Fix for the Backup RAM. Example code: ... #include <libmaple/bkp.h> ... 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 ...
1 parent 4db3994 commit 2f4eaa7

File tree

1 file changed

+1
-1
lines changed
  • STM32F4/cores/maple/libmaple

1 file changed

+1
-1
lines changed

STM32F4/cores/maple/libmaple/bkp.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ typedef struct bkp_reg_map {
9999
} bkp_reg_map;
100100

101101
/** Backup peripheral register map base pointer. */
102-
#define BKP_BASE ((struct bkp_reg_map*)0x40006C00)
102+
#define BKP_BASE ((struct bkp_reg_map*)0x40024000)
103103

104104
/** Backup peripheral device type. */
105105
typedef struct bkp_dev {

0 commit comments

Comments
 (0)