From baf052fe31a7205bf792dcae3d40f0da997a9721 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nima=20Askari=20=28=D9=86=DB=8C=D9=85=D8=A7=20=D8=B9=D8=B3?= =?UTF-8?q?=DA=A9=D8=B1=DB=8C=29?= Date: Sun, 14 Apr 2024 14:08:21 +0200 Subject: [PATCH] V3.0.2 - Fix Writing H7B0 --- ee.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ee.c b/ee.c index a4c76da..20a3859 100644 --- a/ee.c +++ b/ee.c @@ -337,14 +337,14 @@ bool EE_Write(bool FormatFirst) data += 16; } #elif (defined FLASH_TYPEPROGRAM_FLASHWORD) - for (uint32_t i = 0; i < eeHandle.Size; i += 32) + for (uint32_t i = 0; i < eeHandle.Size; i += FLASH_NB_32BITWORD_IN_FLASHWORD * 4) { if (HAL_FLASH_Program(FLASH_TYPEPROGRAM_FLASHWORD, EE_ADDRESS + i, (uint32_t)data) != HAL_OK) { answer = false; break; } - data += 32; + data += FLASH_NB_32BITWORD_IN_FLASHWORD * 4; } #endif