LPUart1 initialization fails on initialization (runtime)
using STM32H743ZIT
We are using all the serial ports (i.e) 4 UART and 4 USART and all is good. In addition to the UARTS we are using thre I2c, and CAN
When attempting to add the LPUart1, the initialization fails. There is no pin assignment error etc. The code is generated fine but at runtime we end up in error_handler due to an assert on the following:
/**
* @brief Set the TXFIFO threshold.
* @param huart UART handle.
* @param Threshold TX FIFO threshold value
* This parameter can be one of the following values:
* @arg @ref UART_TXFIFO_THRESHOLD_1_8
* @arg @ref UART_TXFIFO_THRESHOLD_1_4
* @arg @ref UART_TXFIFO_THRESHOLD_1_2
* @arg @ref UART_TXFIFO_THRESHOLD_3_4
* @arg @ref UART_TXFIFO_THRESHOLD_7_8
* @arg @ref UART_TXFIFO_THRESHOLD_8_8
* @retval HAL status
*/
HAL_StatusTypeDef HAL_UARTEx_SetTxFifoThreshold(UART_HandleTypeDef *huart, uint32_t Threshold)
{
uint32_t tmpcr1;
/* Check parameters */
assert_param(IS_UART_FIFO_INSTANCE(huart->Instance));
Can someone help.
I have attempted to build using only LPUart and it works fine. Could this be an issue regarding some limitation of using all these peripherals simultaneously?
Thanks
