Skip to main content
Ehsan Behravan
Associate II
June 7, 2017
Question

multiple UARTs Interrupt Usage

  • June 7, 2017
  • 3 replies
  • 1139 views
Posted on June 07, 2017 at 07:26

The original post was too long to process during our migration. Please click on the attachment to read the original post.
    This topic has been closed for replies.

    3 replies

    Ehsan Behravan
    Associate II
    June 10, 2017
    Posted on June 10, 2017 at 07:16

    no reply?????

    Tesla DeLorean
    Guru
    June 10, 2017
    Posted on June 10, 2017 at 15:33

    Support for what you're doing is rather thin on the ground..

    You'd want to make sure you have IRQHandlers correctly calling into the HAL, and ensure that none of the calls you are making return errors or block.

    Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
    Ehsan Behravan
    Associate II
    June 18, 2017
    Posted on June 18, 2017 at 07:37

    Hi, i solve the problem

    just add 4 line in start of program:

    __HAL_UART_ENABLE_IT(&huart8,UART_IT_RXNE);

    __HAL_UART_ENABLE_IT(&huart8,UART_IT_TC);

    __HAL_UART_ENABLE_IT(&huart7,UART_IT_RXNE);

    __HAL_UART_ENABLE_IT(&huart7,UART_IT_TC);

    when i use one uart i don't need this lines but when i use two uart, i need.

    thanks.