Other Parts Discussed in Thread: TPS65987, TPS65988
Hello Team,
We are working on validating TPS65987 PD Controller with SoC based Host.
We are aware that we can update Regions(0 and 1) on SPI Flash using
(TPS65987 and TPS65988 SPI Flash Firmware Update Over I2C)SLVAE21A.pdf .
But here we found that, SPI Flash memory should be preflashed with Fullflash.bin to have proper region pointers and Headers.
But our case is where we are going to place blank SPI on production board attached with TPS65987. And we want to flash SPI with fullflash.bin via a program once the system start booting. We will implement functionality to check if SPI is flashed or not during subsequent boot.
Now if there is no configuration in SPI Flash then what will be the status of TPS controller. Does it allows to read/write 4CC registers as I am facing issue. As I tried with my board to write 0xFF in whole SPI range.
Now below is the status, when I am trying to write Fullflash.bin to SPI then I am facing issue in Writing and Reading 4CC commands in register 0x08, when there is no configuration in SPI Flash.
===========================================================
######Previous status######
IIC Read Regadrs = 0x0f
OLD Version # (0xDD.MM.mm.BB) = 0xf7.07.10.08.
IIC Read Regadrs = 0x2d
PatchHeaderErr (Bit 0): 0
SpiFlashPresent (Bit 3): 1
Region0 Attempted (Bit 4): 1
Region1 Attempted (Bit 5): 0
######Status after erasing SPI FLash by writing 0xFF ###############
IIC Read Regadrs = 0x0f
OLD Version # (0xDD.MM.mm.BB) = 0xf7.07.10.00.
IIC Read Regadrs = 0x2d
PatchHeaderErr (Bit 0): 0
SpiFlashPresent (Bit 3): 1
Region0 Attempted (Bit 4): 1
Region1 Attempted (Bit 5): 1
===========================================================
Now unable to flash SPI again as "FLrr" "FLem" "FLad" "FLwd" are not responding.
So Questions in short
- Is it posibble to flash blank SPI FLash with full-flash.bin from TPS65987 via Host I2C in production phase? (We have no plan to use seperate flashing method)
- If yes then please suggest right document, Code Snippet to follow and suggestion if any?
Thanks
Girish Sharma