Skip to main content
gdiez
Associate III
Mar 1, 2011 4:11 PM UTC
Question

GPIO Remap

Posted on March 01, 2011 at 17:11

GPIO Remap

    This topic has been closed for replies.

    5 replies

    Tesla DeLorean
    Guru
    May 17, 2011 12:26 PM UTC
    Posted on May 17, 2011 at 14:26

    Normally USART4 if you program the GPIO as AF

     

     

    To get USART3 to move there use

     

     

    GPIO_PartialRemap_USART3

     

    or

     

    GPIO_FullRemap_USART3

    A Partial Remap would move RX, TX

    A Full Remap would move RX, TX, CTS, RTS, CK

    Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
    Tesla DeLorean
    Guru
    May 17, 2011 12:26 PM UTC
    Posted on May 17, 2011 at 14:26

    1) The left box is the NORMAL mapping of USART3, the right box is a FULL REMAP of USART3. Look at the titles of the columns in the manual.

    2) You will have to set the GPIO's attached to the peripheral (ie AF / Alternate Function - not a GPIO) for the outputs. And floating for inputs.

    0690X00000602iiQAA.jpg

    Remember also the the AFIO clock must be enabled to perform the Remap.

    Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
    gdiez
    gdiezAuthor
    Associate III
    May 17, 2011 12:26 PM UTC
    Posted on May 17, 2011 at 14:26

    Thks for the quick reply.

    1.- But how can i distinguish to this different columns that I?ve marked with red square?

    2.- If i do  GPIO_PinRemapConfigGPIO the pins gets multiplexed so then I can configure them?

    0690X00000602idQAA.jpg

    John F.
    Associate III
    May 17, 2011 12:26 PM UTC
    Posted on May 17, 2011 at 14:26

    RM0008 Reference manual rev 11

    http://www.st.com/stonline/products/literature/rm/13902.pdf

    gdiez
    gdiezAuthor
    Associate III
    May 17, 2011 12:26 PM UTC
    Posted on May 17, 2011 at 14:26

    Thks for the reply.

    What document is that? I´ve the datasheet and the user manual and I havent this table.