Other Parts Discussed in Thread: UNIFLASH,
I am testing our customised device with automotive lab demo sbl.
This issue happens in our customised AWR1843 device which uses QSPIFlash IS25LP016D (www.issi.com/.../25LP-WP016D.pdf). I have modified the QSPIFlash driver to adapt it to the used flash memory.
Modifications include:
1) add a new file qspiflash_device_issi.c:
2) updated qspiflash.h and qspiflash.c
qspiflash.h
...
/* SPI flash manufacture id */
#define SPANSION_DEV (0x01U)
#define MACRONIX_DEV (0xC2U)
#define MICRON_DEV (0x20U)
#define ISSI_DEV (0x9DU)
...
qspiflash.c
...
extern QSPIFlash_deviceFxn QSPIFlash_deviceFxnTbl_issi;
...
else if (devId.Manufacture == ISSI_DEV)
{
ptrQSPIFlashDrv->devFxnTbl = QSPIFlash_deviceFxnTbl_issi;
}
else
{
retVal = QSPIFLASH_ENOTSUPPORTED;
goto Exit;
}
...
3) update lib make file
qspiflashlib.mak
QSPIFLASH_DRV_SOURCES += qspiflash_device_issi.c
4)Build qspiflash driver
execute command: make drv from c:\ti\mmwave_sdk_03_01_00_02\packages\ti\drivers\qspiflash
5) Rebuild sbl demo The images are then rebuild based on the new driver.
Test:
1. Flashing multiple images into the device by using UniFlash.
2. Reboot the device and monitor the sbl log, I get the "Error: Meta header absent!!!" in flash address: c0180000.
3. I added Debug Log to metaheader_parser.c and saw that the value of meta header start is 0xCCCCCCCC. It seems that sbl has not read the image correctly from the flash.
This error doesn't occur in AWR1843Boost. It works for loading image from flash in AWR1843Boost.