STM32F411 Discovery's PB6 not working as I2C1_SCL
I have an STM32F411E-DISCO board and I am facing a problem with the I2C1 Peripheral.
1. I configured the I2C1 (PB6 & PB9) to interface with the CS43L22 Audio DAC on the Discovery Board and it gets stuck at waiting for the SB bit in I2C1->SR1 register to be set.
2. Then, I configured PB6 as I2C1_SCL and PB9 as I2C1_SDA to interface with an external EEPROM, the 24C256N to write data to the memory. It also gets stuck at waiting for the SB bit in I2C1->SR1 register to be set.
3. Then, I changed the I2C1_SCL to PB8 and kept I2C1_SDA as PB9, and I can successfully write and read the EEPROM.
The problem I am facing is, the I2C_SCL for the CS43L22 is mapped to the PB6 of the STM32F411VET6 MCU and it is not possible to have a workaround this.
Can anyone help me?
