aboutsummaryrefslogtreecommitdiff
path: root/src/flash/nor/nrf51.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/flash/nor/nrf51.c')
-rw-r--r--src/flash/nor/nrf51.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/flash/nor/nrf51.c b/src/flash/nor/nrf51.c
index adb4004d..711d6fba 100644
--- a/src/flash/nor/nrf51.c
+++ b/src/flash/nor/nrf51.c
@@ -920,8 +920,9 @@ static int nrf51_info(struct flash_bank *bank, char *buf, int buf_size)
if (res != ERROR_OK)
return res;
- struct {
- uint32_t address, value;
+ static struct {
+ const uint32_t address;
+ uint32_t value;
} ficr[] = {
{ .address = NRF51_FICR_CODEPAGESIZE },
{ .address = NRF51_FICR_CODESIZE },