2008-01-07 03:41 AM
AFIO Probs
2011-05-17 03:20 AM
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 Thomson2011-05-17 03:20 AM
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 :)2011-05-17 03:20 AM
That was it! You are a Scholar, I didn't know that there was a clock power domain for the AFIO.
thanks Mac