From 566e9ccf3a8c0acecf595b65b2ae241b136059e8 Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Sun, 15 May 2022 18:20:48 -0400 Subject: [PATCH] flashcmd: Force word alignment of page_buffer The stm32 flash code requires a page_buffer alignment. Signed-off-by: Kevin O'Connor --- src/flashcmd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/flashcmd.c b/src/flashcmd.c index 43dea75..3af9a52 100644 --- a/src/flashcmd.c +++ b/src/flashcmd.c @@ -57,7 +57,7 @@ DECL_TASK(complete_task); * Flash commands ****************************************************************/ -static uint8_t page_buffer[CONFIG_MAX_FLASH_PAGE_SIZE]; +static uint8_t page_buffer[CONFIG_MAX_FLASH_PAGE_SIZE] __aligned(4); // Page Tracking static uint32_t last_page_address = 0; static uint8_t page_pending = 0;