This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Trying to implement UART interupt control using HAL API

Hi ,

I am trying to implement UART with interupt control in my system , and trying to print the sent and received data on PC terminal via a micro-usb port. In my system UART is working great in polling mode.
I am using STM32F415RG, when I am using these APIs like HAL_UART_Transmit_IT and HAL_UART_Receive_IT, I am getting HAL_Busy as a return error, and I don't see any msgs on terminal.

I have tried looking for some online code for reference and most of them are using APIs
like RCC_APB2PeriphClockCmd
RCC_AHB1PeriphClockCmd

I tried to implement this in my code, but it gives compilation error, I couldn't find the respective driver file for these APIs.

Please let me know what needs to done in this case, I can share my code if you want to take a look at it.

Abhi

0