cancel
Showing results for 
Search instead for 
Did you mean: 

EVSPIN32G4-DUAL I2C Pin Mapping Mismatch Between Schematic and MCSDK 6.4.1

pelino
Associate

 

I am currently working with the EVSPIN32G4-DUAL board and have a question regarding the I2C pin configuration.

According to the EVSPIN32G4-DUAL schematic, the I2C signals are connected to pins PC4 and PA8.
However, when generating a project using MCSDK version 6.4.1 and checking the pin mapping, the I2C interface is assigned to PC9 and PC8.

When I modify the project to change the I2C pins from PC9/PC8 to PC4/PA8 and then update the firmware image, the system does not operate correctly.

Could you please clarify the reason for this discrepancy between the schematic and the MCSDK pin configuration, and advise on the correct way to configure the I2C pins for this board?

pelino_1-1768483427585.png

 

pelino_0-1768483269415.png

 

Thank you for your support.

Best regards,
Pelino

 

1 REPLY 1
GMA
ST Employee

Hello @pelino,

STM32CubeMX tool displays STM32G431 MCU I/O, which is integrated in the STSPIN32G4 system-on-chip package.
PC8 and PC9 are linked to I²C3 and are used internally. Therefore, the I²C3 peripheral is reserved, and PC8 and PC9 are not accessible from the STSPIN32G4 system-on-chip package.
PC4 and PA8 are linked to I²C2. I²C2 IP and the pins are available from the STSPIN32G4 system-on-chip.
Refer to STSPIN32G4 datasheet. 

If you agree with the answer, please accept it by clicking on 'Accept as solution'.
Best regards.
GMA