stm32ldiscovery

What are weak functions and what are their uses? I am using a stm32f429 micro controller

我的梦境 提交于 2020-01-01 21:58:06
问题 Wikipedia says: A weak symbol denotes a specially annotated symbol during linking of Executable and Linkable Format (ELF) object files. By default, without any annotation, a symbol in an object file is strong. During linking, a strong symbol can override a weak symbol of the same name. In contrast, two strong symbols that share a name yield a link error during link-time. When linking a binary executable, a weakly declared symbol does not need a definition. In comparison, (by default) a

Auto baud rate detect for STM32L0

江枫思渺然 提交于 2019-12-10 14:55:51
问题 I can't get auto-baud rate detection to work on the STM32L0 . I'm using the hardware abstraction layer (HAL). My initilization code is: /* USART1 init function */ void MX_USART1_UART_Init(void) { huart1.Instance = USART1; huart1.Init.BaudRate = 300; huart1.Init.WordLength = UART_WORDLENGTH_9B; huart1.Init.StopBits = UART_STOPBITS_1; huart1.Init.Parity = UART_PARITY_EVEN; huart1.Init.Mode = UART_MODE_TX_RX; huart1.Init.HwFlowCtl = UART_HWCONTROL_NONE; huart1.Init.OverSampling = UART