CubeMx corrupting the project
This definitely bug of the AC6.
The problem appears when you need to make some changes in configuration and regenerate the files. After that all links of used .c files changed to file startup_stm32l152xe.s Every single c.file used in the prject: Application, Drivers, etc...
The cure I’ve found so far:
- Click on + signs for the project .c files. If it shows internal defines, variable, functions, it is OK. If ” sign disappeares, the link has been changed.
- Choose those files in windows showing your working directories and drug&drope them into required place.
- Choose link files. They will be placed into the project correctly.
Don’t forget to submit your current working project to the version control system before changing configuration.
I hope the AC6 team will fix this bug ASAP. It is really embarradsing.