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.

DRA821U: Error loading SBL OSPI boot

Part Number: DRA821U
Other Parts Discussed in Thread: J7200XSOMXEVM, DRA821, J721EXCPXEVM

hardware

・J7200XSOMXEVM DRA821 system-on-module
・J721EXCPXEVM Common processor board for JacintoTm 7 processors

SDKs

・PROCESSOR-SDK-RTOS-J7200 08.04.00.04

Question

An OSPI Flash read error occurs when SBL xSPI is started, and the application cannot be read.
Please tell me how to resolve.

Status quo

When starting SBL xSPI, an error occurred in the application's RPRC format parsing, resulting in an error in reading.
RPRC is written to OSPI Flash, but a BOARD_FLASH_EFAIL error occurs in the Board_flashRead function.

Source code excerpt

<SDK Install Path>\pdk_j7200_08_04_00_19\packages\ti\board\src\flash\board_flash.c


Board_flash_STATUS Board_flashRead(Board_flashHandle handle, uint32_t offset, uint8_t *buf, uint32_t len, void *params)

    if (NOR_read(flashInfo->flashHandle, offset, len, buf, readMode) \
    != NOR_PASS)
    {
        return (BOARD_FLASH_EFAIL);
    }

Boot log (SBL_LOG_MAX setting)

SBL Revision: 01.00.10.01 (Oct 27 2022 - 14:29:55)
TIFS ver: 21.5.0--v2021.05 (Terrific Llam
SCISERVER Board Configuration header population... PASSED
Sciclient_setBoardConfigHeader... PASSED
Initlialzing PLLs ...done.
InitlialzingClocks ...done.
Initlialzing DDR ...done.
Initializing GTC ...done.
Begin parsing user application
Calling Sciclient_procBootRequestProcessor, ProcId 0x20...
Calling Sciclient_procBootRequestProcessor, ProcId 0x21...
Calling Sciclient_procBootRequestProcessor, ProcId 0x1...
Calling Sciclient_procBootRequestProcessor, ProcId 0x2...
Calling Sciclient_procBootRequestProcessor, ProcId 0x6...
Calling Sciclient_procBootRequestProcessor, ProcId 0x7...
OSPI RCLK running at 133333333 MHz.
Board_flashRead : 41c355ec 100000 41c7fe34 4 1
Board_flashRead failed! : -1
Ospi Read speed for 0x4 bytes from offset 0x100000 = 16 bytes per sec
SBL_OSPI_ReadSectors : 0
Searching for X509 certificate ...not found
Board_flashRead : 41c355ec 100000 41c7ff0c 10 1
Board_flashRead failed! : -1
Ospi Read speed for 0x10 bytes from offset 0x100000 = 64 bytes per sec
SBL_OSPI_ReadSectors : 0
Invalid magic number in Single image header
SBL_ospiClose called
Sciclient_procBootReleaseProcessor, ProcId 0x20...
Sciclient_procBootReleaseProcessor, ProcId 0x21...
Sciclient_procBootReleaseProcessor, ProcId 0x1...
Sciclient_procBootReleaseProcessor, ProcId 0x2...
Sciclient_procBootReleaseProcessor, ProcId 0x6...
Sciclient_procBootReleaseProcessor, ProcId 0x7...