STM32CubeMX does not always update .project files
STM32CubeMX does not always update the .project files when code is regenerated on an STM32H7 project.
This is especially true when moving a peripheral from one core to the other.
For example, I generated a project with SPI1 and I2C4 in the M4 context, and verified the project built cleanly. I then moved the two peripherals to the M7 context and regenerated code. The .project files were unchanged, and both the M4 and M7 projects failed. I manually moved the necessary HAL libraries from the M4 .project to the .M7 .project and everything built cleanly again.
The problem was similar when I tried to move USB (and CDC class) from M4 to M7. The USBDEVICE files were moved between cores correctly, but the .project files were untouched.
Is there a way to force CubeMX to update the .project files?