cancel
Showing results for 
Search instead for 
Did you mean: 

When CubeMX generates a Keil project, it overwrites the sct file and resets the Keil project sct setting

Zack
Associate II

I use my own modified sct file in Keil, and when CubeMX generates project, it overwrites the sct file in the default location.

Even ignore the default sct file and chang the Keil sct settings (using a modified sct file stored in a non-default location), CubeMX will reset this setting to the default file when cubemx generates the project.

 

Keil 5.43.1

CubeMX 6.15

MCU Package F3 1.11.5

1 ACCEPTED SOLUTION

Accepted Solutions
Ghofrane GSOURI
ST Employee

Hello @Zack 

Could you please provide your entire project, including the customized .sct file? This will help us reproduce the behavior and investigate the underlying cause more effectively.

THX

Ghofrane

 

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.

View solution in original post

2 REPLIES 2
Ghofrane GSOURI
ST Employee

Hello @Zack 

Could you please provide your entire project, including the customized .sct file? This will help us reproduce the behavior and investigate the underlying cause more effectively.

THX

Ghofrane

 

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.

 

I created new projects to try to reproduce the problem.
In short the overwrite problem is solved and the keil sct settings being reset is reproducible.(Since the sct file overwrite issue has been resolved, resetting the Keil sct settings is no longer a problem)

There was only once sct file overwrite after the first new creation of the project. After that I modified and saved the default sct file and the sct file is retained correctly. In the same way, I pasted and saved the sct file of the original project, which also solved the overwriting problem.

The issue of Keil sct settings being reset is reproducible. Keil Linker-ScatterFile settings will be restored from ‘modified.sct’ to ‘stm32f334xx_flash.sct’ after CubeMX regeneration.