This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

[FAQ] TDA4VM: SBL OSPI boot error: Invalid magic number in Single image header

Part Number: TDA4VM

I'm trying to boot using SBL from OSPI on TDA4 device but I see the below error. What could be the issue?

  • Most likely the PHY tuning pattern is not flashed at the last sector of the OSPI flash. PHY tuning is required to set the optimal Tx and Rx delay in the OSPI controller for best performance.

    Application note on OSPI PHY tuning: https://www.ti.com/lit/an/spract2/spract2.pdf 

    Where to find the PHY tuning binary in the SDK: ti-processor-sdk-rtos-j721e-evm-xx_yy_zz_ww/pdk_jacinto_xx_yy_zz_ww/packages/ti/board/src/flash/nor/ospi/nor_spi_patterns.bin

    What offset to flash the binary to: nor_spi_patterns.bin needs to be flashed at the last sector of the OSPI flash.

    flashing_offset = size_of_flash - sector_size

    Example

    • for a 512Mb Cypress Semper flash the offset for PHY tuning binary would be 0x3fc0000 as the sector size is 0x40000.
    • for a 512Mb Micron MT35XU512ABA flash the offset of the PHY tuning binary would be 0x3fe0000 as the sector size is 0x20000.

    Regards

    Karan