Hi Jack,
I took a look at the example attached and discovered two possible issues:
1. First one is about XIP_BOOT_HEADER_ENABLE preprocessor defined symbol which is set to 1 and must be set to 0. This version of SPT is not handle XIP_BOOT_HEADER_ENABLE=1;
2. Did you intentional set NonCacheable section as .bss? When NonCacheable section is set as .bss, then there is no relocation of the .data_RAM4 section from flash, because the size of this section is 0.
.data_RAM4 00000000 20240000 20240000 00030004 2**2
CONTENTS
Once NonCacheable section is placed in .data, relocation data is added and image can be loaded by SPT with no error.
.data_RAM4 00000c80 20240000 60005b64 00020000 2**5
CONTENTS, ALLOC, LOAD, DATA
Adrian