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.

TPS65987D: The full FLASH programming over I2C

Part Number: TPS65987D
Other Parts Discussed in Thread: TPS65988, TPS65987

I'm studying the  SLVAE21A  "TPS65987 and TPS65988 SPI Flash Firmware Update Over I2C" for the purpose of writing my own EC code. 

It seems the application flow described there assumes that FLASH already has the valid code in at least one region and the task is to do the safe FLASH update.  

What is the procedure of programming the FLASH that has no valid image using "Full Flash Image"? Obviously  the sample code will fail since there are no valid region pointers. 

Should I just execute "Flem" for the entire size of the FLASH then set "FLad" to 0 and do "FLwd" for entire "Full Flash Image"?