‎2020-03-29 10:43 AM
I use CubeIDE 1.3.0 and STM32L4 MCU Package 1.15.1.
I wanted to setup a demo project for Nucleo-L4R5ZI.
these boards route LPUART1 to STLINK debug Uart port.
If you enable NVIC for LPUART1, the firmware package creates a faulty IRQ handler. It should pass HLPUART1 to the IRQ handler but it passes HUART1 (which is not used and not initialized)
void LPUART1_IRQHandler(void)
{
/* USER CODE BEGIN LPUART1_IRQn 0 */
/* USER CODE END LPUART1_IRQn 0 */
HAL_UART_IRQHandler(&huart1);
/* USER CODE BEGIN LPUART1_IRQn 1 */
/* USER CODE END LPUART1_IRQn 1 */
}
Workaround:
void LPUART1_IRQHandler(void)
{
/* USER CODE BEGIN LPUART1_IRQn 0 */
HAL_UART_IRQHandler(&lphuart1);
return;
/* USER CODE END LPUART1_IRQn 0 */
HAL_UART_IRQHandler(&huart1);
/* USER CODE BEGIN LPUART1_IRQn 1 */
/* USER CODE END LPUART1_IRQn 1 */
}
Solved! Go to Solution.
‎2021-03-02 09:23 AM
Hello @jvisser,
Good news :) I am pleased to inform you that this issue is fixed in the latest STM32CubeMX version 6.2.0.
The LPUART1 IRQ Handler is correctly generated by CubeMX.
Thank you for your contribution.
Khouloud.
‎2020-04-17 10:01 AM
Hi @Johannes​ ,
Thanks for bringing this issue to our attention. It is reported to our STM32CubeMX development team.
-Amel
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
‎2021-03-02 09:23 AM
Hello @jvisser,
Good news :) I am pleased to inform you that this issue is fixed in the latest STM32CubeMX version 6.2.0.
The LPUART1 IRQ Handler is correctly generated by CubeMX.
Thank you for your contribution.
Khouloud.