From 8b51c78f1b88d94a89bb8c37ae38a54f523cb597 Mon Sep 17 00:00:00 2001 From: QuakeGod <quakegod@sina.com> Date: 星期六, 24 二月 2024 10:16:54 +0800 Subject: [PATCH] CCTE bootloader and KMini --- BootLoader/Src/main.c | 13 +++++++------ 1 files changed, 7 insertions(+), 6 deletions(-) diff --git a/BootLoader/Src/main.c b/BootLoader/Src/main.c index 875d7fc..f65460c 100644 --- a/BootLoader/Src/main.c +++ b/BootLoader/Src/main.c @@ -99,8 +99,8 @@ __set_PRIMASK(1); //鍏抽棴鍏ㄥ眬涓柇 - StackAddr = *(__IO uint32_t*)ApplicationAddress; //0x08004000; - ResetVector = *(__IO uint32_t*)(ApplicationAddress + 4); //0x08004004; + StackAddr = *(__IO uint32_t*)ApplicationAddress; //0x08001000; + ResetVector = *(__IO uint32_t*)(ApplicationAddress + 4); //0x08001004; if((StackAddr&0x2FFC0000)==0x20000000) //妫�鏌ユ爤椤跺湴鍧�鏄惁鍚堟硶. { @@ -160,6 +160,7 @@ SetRunLed(1); //Turn On Run Led SetErrLed(0); //Turn Off Err Led + // int nCount=0; while (1) { @@ -167,15 +168,15 @@ SlowFlicker=0; FastFlicker=1; us1=GetuS(); - LL_mDelay(200); + LL_mDelay(100); - ToggleRunLed(); - ToggleErrLed(); +// ToggleRunLed(); +// ToggleErrLed(); ToggleErr2Led(); // LL_IWDG_ReloadCounter(IWDG); nCount++; - if (nCount>50) {JumpToApplication(); LL_mDelay(2000);} + if (nCount>2) {JumpToApplication(); LL_mDelay(1000);} } //while (1) ; /* USER CODE END WHILE */ -- Gitblit v1.9.1