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
...
This commit is contained in:
Vassilis Serasidis 2018-06-22 19:49:05 +03:00
parent 4db3994d1c
commit 2f4eaa7979
1 changed files with 1 additions and 1 deletions

View File

@ -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 {