AnsweredAssumed Answered

9-BIT UART TRANSMISSION STM32 cubemx hal driver

Question asked by Ibrahim Benaddi on Dec 6, 2017
Latest reply on Dec 7, 2017 by Ibrahim Benaddi


I'm using STM32cubemx and I have created a project using UART in 9-bit configuration. The code is generated and I can find the "HAL_UART_Transmit" function but the pData parameter is a 8-bit pointer:

HAL_StatusTypeDef HAL_UART_Transmit(UART_HandleTypeDef *huart, uint8_t *pData, uint16_t Size, uint32_t Timeout)

pData should be a 16-bit parameter. I cannot understand how can I send a 9-bit data with this function. Is it a bug in STM32CubeMX?