From 3718d40dd0d3804838fa27252f3dd74ac2ba9e1b Mon Sep 17 00:00:00 2001 From: yincheng.zhong <634916154@qq.com> Date: 星期二, 30 五月 2023 12:46:02 +0800 Subject: [PATCH] V2.15 解决晶振起振问题 --- Src/main.c | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Src/main.c b/Src/main.c index 56c4887..8073697 100644 --- a/Src/main.c +++ b/Src/main.c @@ -315,7 +315,7 @@ hardware_pici= STMFLASH_ReadHalfWord(FLASH_HARDWARE_VERSION_MAP+2); hardware_type= STMFLASH_ReadHalfWord(FLASH_HARDWARE_VERSION_MAP+4); //deca_sleep(1000); - g_com_map[VERSION] = (2<<8)|14; + g_com_map[VERSION] = (2<<8)|15; // g_com_map[DEV_ID]=0x7; #ifdef DEBUG_MODE @@ -448,6 +448,7 @@ MX_ADC_Init(); //MX_TIM2_Init(); /* USER CODE BEGIN 2 */ + printf("启动时间:%d\r\n",HAL_GetTick()); LED_LG_ON; Program_Init(); Accelerometer_Init(); @@ -545,7 +546,7 @@ /** Configure LSE Drive Capability */ HAL_PWR_EnableBkUpAccess(); - __HAL_RCC_LSEDRIVE_CONFIG(RCC_LSEDRIVE_LOW); + __HAL_RCC_LSEDRIVE_CONFIG(RCC_LSEDRIVE_HIGH); /** Initializes the RCC Oscillators according to the specified parameters * in the RCC_OscInitTypeDef structure. */ -- Gitblit v1.9.3