2025-12-07 9:18 PM
Overview
After migrating a project from CubeMX v5 to v6 (DB 6.0.150), the pin assignment for I2C1_SCL (PB8) and I2C1_SDA (PB9) is automatically removed when SPI1 is enabled.
This issue did not occur in CubeMX v5, and on real hardware both I2C1 and SPI1 can operate simultaneously.
Steps to Reproduce
Open a project created in CubeMX v5 and migrate to CubeMX v6
Assign PB8 → I2C1_SCL, PB9 → I2C1_SDA
Enable SPI1 (Full-Duplex, Master or Slave)
PB8/PB9 immediately lose their I2C1 assignments
In some cases, I2C1 disappears entirely from the .ioc, and MX_I2C1_Init is no longer generated
Environment
MCU: STM32F103CBTx
CubeMX: 6.15.0
DB: 6.0.150
Firmware Package: STM32CubeF1 v1.8.4 / v1.8.6
Previous project created with: CubeMX 5.x (DB 5.x)
Requests
Please confirm whether this behavior is a known issue
Provide any available workaround
2025-12-07 11:14 PM
Hello @yuichiro and welcome to the Community,
Please share your ioc file, this will help to reproduce the issue.
I will move this post to the "STM32CubeMX" forum.
2025-12-08 12:32 AM
Hello @Imen.D ,
Thanks for your reply! I have attached the .ioc file.