As you may well know, these devices must first be erased before they can be programmed. Typically the erase size (sector/block) supported by the flash device is significantly larger than the program size (page). Hence the programming operation is s sequence of erases, program, program program ... Our flash drivers may concatenate the required erase operations at the start of the programming sequence, before streaming the data to be programmed to the driver.
The Hyperflash flash driver used by LinkServer is optimised for programming performance. A consequence of this is that the largest erase size (256KB) is used as part of the programming operations. This erase size represents 1/256 th (<1/2 %) of the device. If you wish to program two separate images (or binaries) into this flash, then each must start on a 256KB boundary. So if there is code programmed at the start of flash, the next address available for use is 0x60040000.
Note: when a LinkServer/CMSIS-DAP debug operation is performed, the debug log contains the sector/block erase size (as used by the driver), as well as the total flash size, as shown in the log fragment shown below.
...
Opening flash driver MIMXRT1050-EVK_S26KS512S.cfx
Sending VECTRESET to run flash driver
flash variant 'S26KS512S' detected (64MB = 256*256K at 0x60000000)
Closing flash driver MIMXRT1050-EVK_S26KS512S.cfx
...
Yours,
MCUXpresso IDE Support