Skip to main content
thomsonm
Associate
January 7, 2008
Question

AFIO Probs

  • January 7, 2008
  • 3 replies
  • 713 views
Posted on January 07, 2008 at 12:41

AFIO Probs

    This topic has been closed for replies.

    3 replies

    asterix
    Associate III
    May 17, 2011
    Posted on May 17, 2011 at 12:20

    Hi thomsonm,

    I think that you should first enable the clock for the AFIO block

    by writing 1 to RCC_APB2ENR register before using Remapping feature.

    Hope this helps you. Magigimix :)

    thomsonm
    thomsonmAuthor
    Associate
    May 17, 2011
    Posted on May 17, 2011 at 12:20

    I have STM32F101-R8T6 and I am trying to use the alternate-alternate function of the I2C1 pins on PB8 & 9. I write a value of 2 to 0x40010004 the AFIO-MAPR, but I read a 0 subsequent to that.

    I am not confident that this is legal because the pin descriptions on the spec sht don't mention the I2C1_SDA & SCL options for PB8 and 9, but Section 5.4.1 of UM0306 does.

    Whats the story Mory?

    thanks

    Mac Thomson

    thomsonm
    thomsonmAuthor
    Associate
    May 17, 2011
    Posted on May 17, 2011 at 12:20

    That was it! You are a Scholar, I didn't know that there was a clock power domain for the AFIO.

    thanks

    Mac