I am having difficulty receiving data on USART2. It is receiving one character when I use HAL_UART_Receive_IT interrupts. I am trying to receive some characters from ADUCM360 USART.
I can see transmitting characters from ADUCM360 to STM32.But it does not capture the incoming characters from STM32 using interrupts.
Also, I tried using HAL_UART_Receive_DMA but its still receiving one character when I call it.
Any help on this very much appreciated. Thank you
that does not seem to be Mbed related. Try to visit ST community instead of Mbed when you want help with HALs.
- Learning Plan Detail Standard
- When you download a package for your STM32 family in CubeMX, then you also download examples, take a look to your hard drive - C:/Users/UserName/STM32Cube/Repository/
Yeah, that is probably how it is working. Every single byte causes interrupt and you need handle that.
Maybe try some examples before you try a connection to a device, some UART echo/loopback.
If you want work with Mbed, then APis (including serial) are here - Drivers - API references and tutorials | Mbed OS 6 Documentation