cancel
Showing results for 
Search instead for 
Did you mean: 

AFIO Probs

thomsonm
Associate II
Posted on January 07, 2008 at 12:41

AFIO Probs

3 REPLIES 3
thomsonm
Associate II
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

asterix
Associate II
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
Associate II
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