With MDK 5.40, the Configuration Wizard feature as it applies to scatter files seem to be broken.
I created a sample project and got a generated stm32u5a5xx_flash_ns.sct file to use to illustrate the problem.
In the scatter file there is a section
/*// <<< Use Configuration Wizard in Context Menu >>> *//*// <h> Flash Configuration// <i> specify the base address and the size of the used Flash// <o0> Flash Base Address <0x0-0xFFFFFFFF:8>// <o1> Flash Size (in Bytes) <0x0-0xFFFFFFFF:8>// </h> */#define __ROM_BASE 0x08200000#define __ROM_SIZE 0x00200000But when looking at it from the Configuration Wizard
Flash Base Address obviously does not reflect the value of __ROM_BASE.
If I change Flash Base Address in the UI, to for example 1000, the scatter file has changed, in an unexpected location as can be seen below.
/*// <h> Flash Configuration// <i> specify the base address and the size of the used Flash// <o0> Flash Base Address <0x0-0xFFFFFFFF:8>// <o1> Flash Size (in Bytes) <0x1000-0xFFFFFFFF:8>// </h> */#define __ROM_BASE 0x08200000#define __ROM_SIZE 0x00200000
If I rename the scatter file temporarily from .sct to .h, the Configuration Wizard works as expected.
I have not tested this in earlier versions, but I do not recall ever having this problem before.