AM263P4-Q1: SBL : Changing QSPI Protocol Breaks ELF Header Check

Part Number: AM263P4-Q1

Hello,

I have a working SBL using Infineon S25FL128LAGNFI010 - Quad SPI flash | Infineon Technologies running 1S-1S-4S protocol.

When I change the protocol to 4S-4S-4S, the function Bootloader_parseAndLoadMultiCoreELF() fails because the ELF header bytes read from flash are shifted by one byte in the buffer:

1S-1S-4S (Working):

image.png

4S-4S-4S (NG):

image.png

 

Here are the generated changes:

image.png

image.png

Flash reading must work in principle otherwise I would get garbage but it's just the placement of the 0x7F E L F in the buffer which is problematic.

Can you point me to a potential cause please?