From ccd4ae09fc5899782c702354c66f05e2093579d4 Mon Sep 17 00:00:00 2001
From: 95384 <664090429@qq.com>
Date: Mon, 24 Feb 2025 09:31:14 +0800
Subject: [PATCH] =?UTF-8?q?=E8=BF=98=E6=98=AF=E8=A6=81=E7=A1=AC=E4=BB=B6?=
=?UTF-8?q?=E7=9F=AD=E8=B7=AF?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
MCUCore.uvopt | 32 ++++++++++++++---------------
MCUCore_uvopt.bak | 42 +++++++++++++++++++-------------------
code_dataflash/DataFlash.c | 2 +-
3 files changed, 38 insertions(+), 38 deletions(-)
diff --git a/MCUCore.uvopt b/MCUCore.uvopt
index fb5243f..fb0bd23 100644
--- a/MCUCore.uvopt
+++ b/MCUCore.uvopt
@@ -1532,10 +1532,10 @@
1
0
0
- 10
+ 5
0
23
- 51
+ 34
0
.\code_app\Main.c
Main.c
@@ -1546,10 +1546,10 @@
1
0
0
- 38
+ 8
0
538
- 569
+ 568
0
.\code_app\Initial.c
Initial.c
@@ -1665,10 +1665,10 @@
1
0
0
- 0
+ 76
0
165
- 165
+ 196
0
.\code_drv\AFE.c
AFE.c
@@ -2010,8 +2010,8 @@
0
28
0
- 13
- 41
+ 1
+ 39
0
.\code_dataflash\DataFlash.c
DataFlash.c
@@ -3838,8 +3838,8 @@
.\code_dataflash\DataFlash.c
28
- 13
- 41
+ 1
+ 39
.\code_drv\Protect.c
@@ -3879,9 +3879,9 @@
.\code_drv\AFE.c
- 0
+ 76
165
- 165
+ 196
.\code_drv\TWI.c
@@ -3891,9 +3891,9 @@
.\code_app\Initial.c
- 38
+ 8
538
- 569
+ 568
.\code_gasguage\GasGaugeInter_V4_13.c
@@ -3903,9 +3903,9 @@
.\code_app\Main.c
- 10
+ 5
23
- 51
+ 34
.\code_app\Memory.c
diff --git a/MCUCore_uvopt.bak b/MCUCore_uvopt.bak
index 5b50b0c..82d3e69 100644
--- a/MCUCore_uvopt.bak
+++ b/MCUCore_uvopt.bak
@@ -1532,10 +1532,10 @@
1
0
0
- 10
+ 5
0
23
- 51
+ 34
0
.\code_app\Main.c
Main.c
@@ -1546,10 +1546,10 @@
1
0
0
- 38
+ 8
0
538
- 569
+ 568
0
.\code_app\Initial.c
Initial.c
@@ -1665,10 +1665,10 @@
1
0
0
- 0
+ 76
0
165
- 165
+ 196
0
.\code_drv\AFE.c
AFE.c
@@ -2008,10 +2008,10 @@
1
0
0
- 37
+ 61
0
- 181
- 214
+ 337
+ 337
0
.\code_dataflash\DataFlash.c
DataFlash.c
@@ -3835,6 +3835,12 @@
100
0
+
+ .\code_dataflash\DataFlash.c
+ 61
+ 337
+ 337
+
.\code_drv\Protect.c
61
@@ -3873,9 +3879,9 @@
.\code_drv\AFE.c
- 0
+ 76
165
- 165
+ 196
.\code_drv\TWI.c
@@ -3885,9 +3891,9 @@
.\code_app\Initial.c
- 38
+ 8
538
- 569
+ 568
.\code_gasguage\GasGaugeInter_V4_13.c
@@ -3897,9 +3903,9 @@
.\code_app\Main.c
- 10
+ 5
23
- 51
+ 34
.\code_app\Memory.c
@@ -3919,12 +3925,6 @@
14
14
-
- .\code_dataflash\DataFlash.c
- 37
- 181
- 214
-
.\code_drv\McuFlash.c
64
diff --git a/code_dataflash/DataFlash.c b/code_dataflash/DataFlash.c
index 617b1c9..5b67bde 100644
--- a/code_dataflash/DataFlash.c
+++ b/code_dataflash/DataFlash.c
@@ -38,7 +38,7 @@ V0.0 2014/09/10 Preliminary
// 硬件过压保护
#define _EPCM_OV_EN 0 //BIT1; 0:不使能硬件过压功能; 1:使能硬件过压功能
// 硬件短路保护
-#define _EPCM_SC 0 //BIT0; 0:不使能硬件短路保护功能; 1:使能硬件短路保护功能
+#define _EPCM_SC 1 //BIT0; 0:不使能硬件短路保护功能; 1:使能硬件短路保护功能
#define _E2_PACKCONFIGMAP (_EPCM_EEPROM_EN<<15)|(_EPCM_OCPM<<14)|(_EPCM_CTO_EN<<13)|(_EPCM_PF_EN<<12)\
|(_EPCM_BAL_EN<<11)|(_EPCM_OCRC_EN<<10)|(_EPCM_OV_EN<<9)\