From 2bf4bb9279e3238ec06abd9def8755b3d5172252 Mon Sep 17 00:00:00 2001 From: Frank Voorburg Date: Fri, 19 Aug 2022 11:28:45 +0000 Subject: [PATCH] Refs #1563. Improved STM32H7 flash driver to support more variants. git-svn-id: https://svn.code.sf.net/p/openblt/code/trunk@981 5dc33758-31d5-4daf-9ae8-b24bf3d40d73 --- Target/Source/ARMCM7_STM32H7/flash.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Target/Source/ARMCM7_STM32H7/flash.c b/Target/Source/ARMCM7_STM32H7/flash.c index c2a20e71..b60127af 100644 --- a/Target/Source/ARMCM7_STM32H7/flash.c +++ b/Target/Source/ARMCM7_STM32H7/flash.c @@ -707,7 +707,7 @@ static blt_bool FlashWriteBlock(tFlashBlockInfo *block) blt_addr prog_addr; blt_int8u volatile * prog_data; blt_int32u word_cnt; - blt_int8u const word_size = 32U; + blt_int8u const word_size = FLASH_NB_32BITWORD_IN_FLASHWORD * 4U; blt_int8u byte_idx; /* check that the address is actually within flash */