From 033c0110d016bcfa80cbf12dcef204712a23acaf Mon Sep 17 00:00:00 2001 From: Benjamin Valentin Date: Wed, 17 Feb 2021 11:15:55 +0100 Subject: [PATCH] cpu/native: flashpage: sector-slign the flashpage area --- cpu/native/periph/flashpage.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cpu/native/periph/flashpage.c b/cpu/native/periph/flashpage.c index 20f0492685..1c5b879ea0 100644 --- a/cpu/native/periph/flashpage.c +++ b/cpu/native/periph/flashpage.c @@ -24,9 +24,10 @@ #include "cpu.h" #include "periph/flashpage.h" -#define ENABLE_DEBUG (0) +#define ENABLE_DEBUG 0 #include "debug.h" +__attribute__((aligned(FLASHPAGE_SIZE * FLASHPAGE_NUMOF))) char _native_flash[FLASHPAGE_SIZE * FLASHPAGE_NUMOF]; void flashpage_erase(unsigned page)