Skip to main content
phd
Associate
May 12, 2016
Question

USART2 (PA2, PA3) in polling mode

  • May 12, 2016
  • 3 replies
  • 899 views
Posted on May 12, 2016 at 07:17

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

    Tesla DeLorean
    Guru
    May 12, 2016
    Posted on May 12, 2016 at 17:17

    Is this on a board we might be familiar with?

    Are you attempting this with break-points and a debug view of the peripheral parked on the registers you are using? Is so, try not doing that.

    Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..
    phd
    phdAuthor
    Associate
    May 13, 2016
    Posted on May 13, 2016 at 02:46

    dear clive1.

    I connected PA2 and PA3 of STM32f407 to a slave processor. 

    I want both processor to communicate using USART2. 

    I didn't use break-point and debug view. 

    I just tried to forward the received data from USART2 to USART1. 

    USART1 is connected to the PC terminal to check the received data. 

    Thank you. 

    chernobay
    Associate II
    May 13, 2016
    Posted on May 13, 2016 at 21:41

    try DMA mode

    http://arm-stm.blogspot.com/2015/02/dma-uart-in-out.html