AnsweredAssumed Answered

I2C Alternate Function Configuration

Question asked by miller.mike.006 on Aug 9, 2016
Latest reply on Aug 10, 2016 by miller.mike.006
All,

I believe that I have all my registers configured correctly for my I2C interface on the  STM32F429ZIT6 but I have a question regarding the settings of the GPIO alternate function settings in GPIOx_AFRL and GPIOx_AFRH.

1.) I want to have the alternate function of I2C3 enabled for PA8 (pin 100) and PC9 (pin 99).

2.)  When I call the following functions using the standard peripheral drivers

    GPIO_PinAFConfig(GPIOA, GPIO_Pin_8, GPIO_AF_I2C3);
    GPIO_PinAFConfig(GPIOC, GPIO_Pin_9, GPIO_AF_I2C3);

I don't see the registers GPIOA_AFRL, GPIOA_AFRH, GPIOC_AFRL and GPIOC_AFRH get updated in the debugger. I just see all the bits remain zero's.  I am looking int the debugger in AC6.

Thanks for your thoughts.

 389302430928l.png

-Mike

 

Outcomes