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.

TPS65988DJEVM: Can't update Flash FW with the FLxx commands over I2C (using an EC) when the flash is empty / erased

Part Number: TPS65988DJEVM

Tool/software:

Hello,

I have a TPS65988DJEVM and I'm working on flash update using the logic explained in slvae21.pdf (and slva783a.pdf ) using a stm32 over I2C interface.

I can update the flash on the evm using a low region binary if the flash is already programmed with a previous valid flash image (using Application Customization Tool over SPI). This part is OK and working. I can change the flash FW with a new binary without any problems.

However if I erase the flash first (with Customization Tools) and try to program again from EC over I2C I get regionX.invalid and regionX flags set in the boot flags and can't program the flash. I also tried to use a full flash image and/or tried to set region and pointer addresses using 'FLrr and FLad' but same thing happens. 

SW checks region0 and region 1 flags and can't satisfy the conditions below (as in  page 8  of slvae21a.pdf document)

if(0 == p_bootflags->region1)

...

else if ( (1 == p_bootflags->region1) && \
(1 == p_bootflags->region0) && \
((0 == p_bootflags->region1crcfail) && \
(0 == p_bootflags->region1flasherr) && \
(0 == p_bootflags->region1invalid)) )

Is there a way to program the flash when it's erased initially using FLxx commands or is it only possible using Application Customization Tool (over SPI)?

Or am I missing some steps for empty flash update?

Can you please help clarify this?

Thank you

  • Hi Asil, 

    Thank you for reaching out!

    The external SPI-Flash must be programmed with a full flash binary the very first time the device is powered up so that the region headers are set up correctly. You can generate the full flash binary using the Application Customization Tool. 

    Please let me know if you have additional questions/concerns. 

    Best Regards, 

    Aya Khedr