From b0be29bb87734b5f4025dac3f7c61eaaa3255950 Mon Sep 17 00:00:00 2001
From: darya
Date: Tue, 23 Jun 2026 21:20:51 +0300
Subject: [PATCH] =?UTF-8?q?=D0=9E=D0=B1=D0=BD=D0=BE=D0=B2=D0=BB=D0=B5?=
=?UTF-8?q?=D0=BD=D0=B8=D0=B5=2023.06.2026?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
APP/main.c | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/APP/main.c b/APP/main.c
index ca83fe4..01f5ae6 100644
--- a/APP/main.c
+++ b/APP/main.c
@@ -111,7 +111,11 @@ uint64_t NumberBank = 0;
int main(void) {
Bsp_CLOCK_Init();
- D_sInternalFlashPage_Read(0x04000000, 0, (uint8_t *)&NumberBank, 8);
+ if (RGM_SRS_JTAG_MASK == (RGM->SRS & RGM_SRS_JTAG_MASK)) {
+ D_bInternalFlashPage_Clear(0x04000000, NULL, NULL);
+ } else {
+ D_sInternalFlashPage_Read(0x04000000, 0, (uint8_t * ) & NumberBank, 8);
+ }
/*
uint8_t ver0[30];