cancel
Showing results for 
Search instead for 
Did you mean: 

I want to change the TRACE interface from LPUART to UART1 in "I CUBE LRWAN".

SYun.2
Associate III

I am using I CUBE LRWAN 2.0.0

STM32L072-LRWAN1 board is in use.

You want to use the TRACE function UART1 (PA9, PA10) pin.

The TX outputs letters to the serial, but the RX function, such as keyboard input, does not work.

NVIC is also set in UART1 INIT.

HAL_NVIC_SetPriority(USART1_IRQn, 0, 0);

HAL_NVIC_EnableIRQ(USART1_IRQn);

I've also added an IRQ handler.

void USART1_IRQHandler(void)

{

/* USER CODE BEGIN USART2_IRQn 0 */

/* USER CODE END USART2_IRQn 0 */

HAL_UART_IRQHandler(&huart1);

/* USER CODE BEGIN USART2_IRQn 1 */

/* USER CODE END USART2_IRQn 1 */

}

I don't know what I missed.

Please help me.

0 REPLIES 0