From b28818536a3be8514948c1de6fe074dd74be3e24 Mon Sep 17 00:00:00 2001 From: ThinkPad-T460P Date: Wed, 16 Dec 2020 10:47:18 +0800 Subject: [PATCH] backUp before hal firmware update --- .settings/language.settings.xml | 4 ++-- Core/Src/freertos.c | 28 +++++++++++++++------------- Core/Src/main.c | 2 +- Core/Src/navikit.c | 2 +- NaviKit_stm32 Debug.launch | 10 ++++++++-- 5 files changed, 27 insertions(+), 19 deletions(-) diff --git a/.settings/language.settings.xml b/.settings/language.settings.xml index 15242bb..ca2d5ac 100644 --- a/.settings/language.settings.xml +++ b/.settings/language.settings.xml @@ -6,7 +6,7 @@ - + @@ -18,7 +18,7 @@ - + diff --git a/Core/Src/freertos.c b/Core/Src/freertos.c index 4f0944d..73729b8 100644 --- a/Core/Src/freertos.c +++ b/Core/Src/freertos.c @@ -211,15 +211,15 @@ void StartDefaultTask(void *argument) HAL_GPIO_WritePin(USB2_FS_ENUM_CTL_GPIO_Port,USB2_FS_ENUM_CTL_Pin, GPIO_PIN_SET); Beep(50); + osDelay(100); + osDelay(100); printf("\nCore initial successfully\n"); printf("---------------------------------------------\n"); printf("Copyright (c) Powered by www.autolabor.com.cn\n"); - osDelay(100); - printf("BIOS SW Version: V0.9, build: %s, %s\n",__DATE__ ,__TIME__ ); + printf("BIOS SW Version: V0.9.1, build: %s, %s\n",__DATE__ ,__TIME__ ); printf("HAL Version: %lu \n", HAL_GetHalVersion()); printf("Revision ID: %lu \n", HAL_GetREVID()); printf("Device ID: %lu \n", HAL_GetDEVID()); - osDelay(100); printf("Chip UID: %lu%lu%lu \n", HAL_GetUIDw0(),HAL_GetUIDw1(),HAL_GetUIDw2); printf("----------------------------------------------\n"); @@ -529,6 +529,11 @@ void StartPowerMonitTask(void *argument) // printf("bkp_bat: %f \n",NaviKit.pmb.bkp_bat_div8); // printf("main_pwr: %f \n",NaviKit.pmb.main_pwr_div16); + if(NaviKit.pmb.rails.main_pwr < 19) + { + Beep(50); + } + } /* USER CODE END StartPowerMonitTask */ } @@ -552,17 +557,16 @@ void StartUartQueueTask(void *argument) /* Infinite loop */ for(;;) { - osDelay(1); + osDelay(2); count = osMessageQueueGetCount(uartQueueHandle); if(count){ for(uint32_t i=0;i + @@ -17,6 +18,7 @@ + @@ -46,6 +48,8 @@ + + @@ -58,7 +62,7 @@ - + @@ -76,6 +80,8 @@ - + + +