Other Parts Discussed in Thread: AM2434, SYSCONFIG, UNIFLASH
Hi, I am just using your fresh released SDK mcu_plus_sdk_am243x_08_03_00_18 with our custom board based on AM2434.
I have prepared and tested your SPL_OSPI bootloader example on a EMMC flash filled with an application starting at 0x80000.
So my steps were:
- loading the SoC initialization script with CCS version 1120
- loading the spl_ospi bootloader (I removed the line Bootloader_socWaitForFWBoot since the SysFW was already loaded)
- I could see my application successfully started
Later on I wanted to flash the spl_ospi bootloader at the beginning of EMMC flash, so I used the SPL_JTAG bootloader just after SoC initialization script.
Unexpectedly the SPL_OSPI bootloader flashed on EMMC coudn't run !
It fails on Board_driversOpen(); because the EMMC flash is unreadable.
I found the issue is in flash_nor_xspi.c then it tries to read the attack vector in OSPI_phyReadAttackVector.
In order to debug the issue I reflashed the SPL_OSPI bootloader with loop_forever() just before Board_driversOpen() so I could connect the debugger and load the symbols.
After OSPI_enableDacMode(handle) in OSPI_phyReadAttackVector in source\drivers\ospi\v0\ospi_phy.c, I tried to inspect the EMMC content with memory browser: I've just found zeros.
BUT -----------------
If I continue to start the same code just after SoC Initialization script, instead of flashing on EMMC, it works !
The previous SDK 08.02.00.31 isn't affected by this issue and the SPL_OSPI bootloader could successfully run either after SoC initialization script or directly from EMMC
How about SysFw or BlobConfiguration ?
Looking forward
Andrea