From c8240d55741f0ed86099a0a8c616f4fc68372134 Mon Sep 17 00:00:00 2001
From: yincheng.zhong <634916154@qq.com>
Date: 星期四, 25 十二月 2025 10:17:55 +0800
Subject: [PATCH] OTA功能测试完成,4G超时时间异常,出现4G中断情况,等杜工修改。

---
 STM32H743/HAL/MCUFlash.c |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/STM32H743/HAL/MCUFlash.c b/STM32H743/HAL/MCUFlash.c
index 14fab11..cf30959 100644
--- a/STM32H743/HAL/MCUFlash.c
+++ b/STM32H743/HAL/MCUFlash.c
@@ -10,6 +10,7 @@
  *******************************************************************************/
 #include "MCUFlash.h"
 #include "stm32h7xx_hal.h"
+#include "HIDO_Debug.h"
 
 /*******************************************************************************
  *                                  Macro                                      *
@@ -290,7 +291,10 @@
     HIDO_UINT32 remaining = _u32WriteLen;
     HIDO_UINT32 addr = _u32WriteAddr;
     HIDO_UINT8 const *src = _pu8WriteData;
-    HIDO_UINT8 wordBuf[MCU_FLASH_WORD_BYTES];
+    
+    /* 浣跨敤32浣嶆暟缁勭‘淇�4瀛楄妭瀵归綈锛岄伩鍏岺AL_FLASH_Program涓嚭鐜伴潪瀵归綈璁块棶瀵艰嚧鐨凥ardFault */
+    HIDO_UINT32 wordBuf32[MCU_FLASH_WORD_BYTES / 4];
+    HIDO_UINT8 *wordBuf = (HIDO_UINT8 *)wordBuf32;
 
     while (remaining > 0)
     {

--
Gitblit v1.10.0