flashcmd: Force word alignment of page_buffer

The stm32 flash code requires a page_buffer alignment.

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
Kevin O'Connor 2022-05-15 18:20:48 -04:00 committed by Eric Callahan
parent 6c82de6e47
commit 566e9ccf3a

View File

@ -57,7 +57,7 @@ DECL_TASK(complete_task);
* Flash commands * 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 // Page Tracking
static uint32_t last_page_address = 0; static uint32_t last_page_address = 0;
static uint8_t page_pending = 0; static uint8_t page_pending = 0;