From 23a2e095c9eda582d99e34cd5848b562fc3ee596 Mon Sep 17 00:00:00 2001 From: Frank Voorburg Date: Wed, 19 Jun 2019 16:52:33 +0000 Subject: [PATCH] Refs #822. Changed UART Rx pin mode to floating for the Nucleo-F103RB demo bootloader. git-svn-id: https://svn.code.sf.net/p/openblt/code/trunk@698 5dc33758-31d5-4daf-9ae8-b24bf3d40d73 --- Target/Demo/ARMCM3_STM32F1_Nucleo_F103RB_GCC/Boot/main.c | 4 ++-- Target/Demo/ARMCM3_STM32F1_Nucleo_F103RB_IAR/Boot/main.c | 4 ++-- .../Demo/ARMCM3_STM32F1_Nucleo_F103RB_TrueStudio/Boot/main.c | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Target/Demo/ARMCM3_STM32F1_Nucleo_F103RB_GCC/Boot/main.c b/Target/Demo/ARMCM3_STM32F1_Nucleo_F103RB_GCC/Boot/main.c index e0b47574..5b18136f 100644 --- a/Target/Demo/ARMCM3_STM32F1_Nucleo_F103RB_GCC/Boot/main.c +++ b/Target/Demo/ARMCM3_STM32F1_Nucleo_F103RB_GCC/Boot/main.c @@ -178,11 +178,11 @@ void HAL_MspInit(void) /* UART TX and RX GPIO pin configuration. */ GPIO_InitStruct.Pin = LL_GPIO_PIN_2; GPIO_InitStruct.Mode = LL_GPIO_MODE_ALTERNATE; - GPIO_InitStruct.Speed = LL_GPIO_SPEED_FREQ_LOW; + GPIO_InitStruct.Speed = LL_GPIO_SPEED_FREQ_HIGH; GPIO_InitStruct.OutputType = LL_GPIO_OUTPUT_PUSHPULL; LL_GPIO_Init(GPIOA, &GPIO_InitStruct); GPIO_InitStruct.Pin = LL_GPIO_PIN_3; - GPIO_InitStruct.Mode = LL_GPIO_MODE_ALTERNATE; + GPIO_InitStruct.Mode = LL_GPIO_MODE_FLOATING; LL_GPIO_Init(GPIOA, &GPIO_InitStruct); #endif } /*** end of HAL_MspInit ***/ diff --git a/Target/Demo/ARMCM3_STM32F1_Nucleo_F103RB_IAR/Boot/main.c b/Target/Demo/ARMCM3_STM32F1_Nucleo_F103RB_IAR/Boot/main.c index 9406f166..433c509a 100644 --- a/Target/Demo/ARMCM3_STM32F1_Nucleo_F103RB_IAR/Boot/main.c +++ b/Target/Demo/ARMCM3_STM32F1_Nucleo_F103RB_IAR/Boot/main.c @@ -175,11 +175,11 @@ void HAL_MspInit(void) /* UART TX and RX GPIO pin configuration. */ GPIO_InitStruct.Pin = LL_GPIO_PIN_2; GPIO_InitStruct.Mode = LL_GPIO_MODE_ALTERNATE; - GPIO_InitStruct.Speed = LL_GPIO_SPEED_FREQ_LOW; + GPIO_InitStruct.Speed = LL_GPIO_SPEED_FREQ_HIGH; GPIO_InitStruct.OutputType = LL_GPIO_OUTPUT_PUSHPULL; LL_GPIO_Init(GPIOA, &GPIO_InitStruct); GPIO_InitStruct.Pin = LL_GPIO_PIN_3; - GPIO_InitStruct.Mode = LL_GPIO_MODE_ALTERNATE; + GPIO_InitStruct.Mode = LL_GPIO_MODE_FLOATING; LL_GPIO_Init(GPIOA, &GPIO_InitStruct); #endif } /*** end of HAL_MspInit ***/ diff --git a/Target/Demo/ARMCM3_STM32F1_Nucleo_F103RB_TrueStudio/Boot/main.c b/Target/Demo/ARMCM3_STM32F1_Nucleo_F103RB_TrueStudio/Boot/main.c index 1bbaff4a..106a79c5 100644 --- a/Target/Demo/ARMCM3_STM32F1_Nucleo_F103RB_TrueStudio/Boot/main.c +++ b/Target/Demo/ARMCM3_STM32F1_Nucleo_F103RB_TrueStudio/Boot/main.c @@ -178,11 +178,11 @@ void HAL_MspInit(void) /* UART TX and RX GPIO pin configuration. */ GPIO_InitStruct.Pin = LL_GPIO_PIN_2; GPIO_InitStruct.Mode = LL_GPIO_MODE_ALTERNATE; - GPIO_InitStruct.Speed = LL_GPIO_SPEED_FREQ_LOW; + GPIO_InitStruct.Speed = LL_GPIO_SPEED_FREQ_HIGH; GPIO_InitStruct.OutputType = LL_GPIO_OUTPUT_PUSHPULL; LL_GPIO_Init(GPIOA, &GPIO_InitStruct); GPIO_InitStruct.Pin = LL_GPIO_PIN_3; - GPIO_InitStruct.Mode = LL_GPIO_MODE_ALTERNATE; + GPIO_InitStruct.Mode = LL_GPIO_MODE_FLOATING; LL_GPIO_Init(GPIOA, &GPIO_InitStruct); #endif } /*** end of HAL_MspInit ***/