update bootloader

This commit is contained in:
不吃油炸鸡
2025-10-09 17:27:45 +08:00
parent 5521c44695
commit af81e3a0dc
6 changed files with 26 additions and 26 deletions

View File

@@ -109,7 +109,7 @@ int main(void)
//key_boot
Key_Port_Init();
//PWM Start
// PWM Start for LCD backlight
HAL_TIM_PWM_Start(&htim1, TIM_CHANNEL_3);
//lcd
@@ -125,7 +125,7 @@ int main(void)
delay_ms(500);
if(HAL_GPIO_ReadPin(KEYB_PORT, KEYB_PIN) == 0)
{
LCD_ShowString(72, LCD_H/2, (uint8_t*)"Bootload", WHITE, BLACK, 24, 0);//12*6,16*8,24*12,32*16
LCD_ShowString(72, LCD_H/3, (uint8_t*)"Bootload", WHITE, BLACK, 24, 0);//12*6,16*8,24*12,32*16
//menu
FLASH_If_Init();
Main_Menu();
@@ -179,8 +179,8 @@ int main(void)
// no legal APP
else
{
LCD_ShowString(74, LCD_H/2, (uint8_t*)"No App!", WHITE, BLACK, 24, 0);//12*6,16*8,24*12,32*16
LCD_ShowString(32, LCD_H/2+48, (uint8_t*)"Please Download", WHITE, BLACK, 24, 0);
LCD_ShowString(74, LCD_H/3, (uint8_t*)"No App!", WHITE, BLACK, 24, 0);//12*6,16*8,24*12,32*16
LCD_ShowString(32, LCD_H/3+48, (uint8_t*)"Please Download", WHITE, BLACK, 24, 0);
HAL_Delay(1000);
}
}

View File

@@ -39,7 +39,7 @@ void MX_USART6_UART_Init(void)
/* USER CODE END USART6_Init 1 */
huart6.Instance = USART6;
huart6.Init.BaudRate = 115200;
huart6.Init.BaudRate = 1500000;
huart6.Init.WordLength = UART_WORDLENGTH_8B;
huart6.Init.StopBits = UART_STOPBITS_1;
huart6.Init.Parity = UART_PARITY_NONE;