Skip to main content
WLear
Associate II
July 28, 2022
Solved

STM32CubeMX does not always update .project files

  • July 28, 2022
  • 2 replies
  • 1212 views

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?

This topic has been closed for replies.
Best answer by Sara BEN HADJ YAHYA

Hello @WLear​ ,

Thanks for your feedback,

I confirm the issue and I reported it to the dev team to fix it. In the meantime you can avoid the compilation error by deleting the .project files before re-generating the project.

Internal ticket number: 132697 (This is an internal tracking number and is not accessible or usable by customers).

If your issue is solved, please close this post by clicking the "Select as Best" button. This will help other members of the community find this response more quickly :)

Sara.

2 replies

Sara BEN HADJ YAHYA
Technical Moderator
August 3, 2022

Hello @WLear​ ,

Thanks for your feedback,

I confirm the issue and I reported it to the dev team to fix it. In the meantime you can avoid the compilation error by deleting the .project files before re-generating the project.

Internal ticket number: 132697 (This is an internal tracking number and is not accessible or usable by customers).

If your issue is solved, please close this post by clicking the "Select as Best" button. This will help other members of the community find this response more quickly :)

Sara.

In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question.
WLear
WLearAuthor
Associate II
August 3, 2022

Thank you very much for your prompt response.

That is an acceptable workaround.