Not sure, but it seems that the LPUART1_CR3, bit UCESM is missing.
Perhaps must he be in C:\ChibiStudio\chibios191\os\common\ext\ST\STM32L4xx\stm32l476xx
Code: Select all
#define USART_CR3_UCESM_Pos (23U)
#define USART_CR3_UCESM_Msk (0x1U << USART_CR3_UCESM_Pos) /*!< 0x00800000 */
#define USART_CR3_UCESM USART_CR3_UCESM_Msk /*!< Clock Enable inStop Mode */
Ah, and also for the UARTs: the TCBGTIE bit ia also missing:
Code: Select all
#define USART_CR3_TCBGTIE_Pos (24U)
#define USART_CR3_TCBGTIE_Msk (0x1U << USART_CR3_TCBGTIE_Pos) /*!< 0x01000000 */
#define USART_CR3_TCBGTIE USART_CR3_TCBGTIE_Msk /*!< Trm complete before guard time IRQ enable */
With best regards,
Stephane