Skip to main content
sanjib
Associate III
June 30, 2014
Question

Pa2 and Pa3 pins not working in stm32f030

  • June 30, 2014
  • 3 replies
  • 971 views
Posted on June 30, 2014 at 07:25

I have configured simple USART transmit and receive interrupt....It is working fine with othe pins for e.g PB6 and PB7.....but if I used Pa2 and Pa3 it's is neither transmitting nor receiving....What may be the problem ......

I am attaching the file
    This topic has been closed for replies.

    3 replies

    raptorhal2
    Lead
    June 30, 2014
    Posted on June 30, 2014 at 14:32

    The code is initializing USART1, PA2 & 3 are for USART2

    Cheers, Hal

    sanjib
    sanjibAuthor
    Associate III
    June 30, 2014
    Posted on June 30, 2014 at 14:38

    but in data sheet it is mentioned for USART 1 as well ...why that so?

    Tesla DeLorean
    Guru
    June 30, 2014
    Posted on June 30, 2014 at 14:46

    Read the manual more carefully, if you have an STM32F030x8 it's USART2, for x4 and x6 devices it's USART1

    Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..