Details
Description
SQI(rx) : ORIGIN = (0x0C000000 + 128K + 0x40), LENGTH = 4M - 0x40 - 128K
netx52_intram_xip.ld (netX52, netX52_SinglePort and netRAPID52)
According to H:\Manual netX Products\2nd Stage Bootloader\netX 2nd Stage Bootloader\Man.014 page 34, in an execute in place scenario, flash file system starts in SQI rom at offset 2M.
This means that the line should be:
SQI(rx) : ORIGIN = (0x0C000000 + 128K + 0x40), LENGTH = 2M - 0x40 - 128K
where 2M is the remaining usable size of the ROM and 128K is the size occupied by 2nd stage loader. No idea what 0x40 is for, presumably boottokens passed from second stage to rcX.
Anyway, section length should be adjusted in those scripts to avoid overwriting the FFS. Spotted by Maher and Andreas B.