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.

TPS65988: TPS65988: Write SPI Flash from I2C

Part Number: TPS65988
Other Parts Discussed in Thread: TPS25750

Hello,

I have a FTDI USB-to-I2C device connected to the TPS65988.

I am able to communicate with the device using the Application Customization software provided by TI.

There is a test option where I can read the SPI Flash over I2C and see the first few bytes.
However, I am unable to find the option where I can program the SPI Flash over I2C.
The option to program the SPI Flash hints that I should be using an USB-to-SPI adapter to program the SPI Flash.

There is an application note with example software which shows how to program the SPI Flash over I2C so I know it is possible.

Does the functionality to program the SPI Flash over I2C exist in the Application Customization Tool or will I need to develop my own software to do that?

Thanks.

  • Hi Jose,

    I assume you are referring to the TPS65988 EVM board, is this correct? The FTDI adapter should be able to let you perform a SPI Flash write via the Application Customization Tool. Please ensure you are using the latest version. 

    I believe if you look at the EVM user's guide you will see that the FTDI chip is connected to the SPI pins and the I2C pins of the PD controller, but the Flash IC is only connected via SPI lines. 

    Did you configure the adapter you are using by clicking the adapter button on the GUI Tool menu? You should be able to test the I2C and SPI reads from there. Also, when you click on the binary button, you will see an option for "Flash from current project" this is the option you can select and it will Flash your project using FTDI adapter.

    Thank you,

    Hari

  • Hello Hari,

    I am not using the EVM board. I am using a custom design where only the USB-to-I2C portion of the FTDI is connected to the TPS65988.
    I am able to communicate with the TPS65988 over I2C no problem.

    The SPI signals are not exposed on my device because I was under the assumption that the Application Customization Tool could program the SPI Flash over I2C.

    To program the SPI Flash over I2C, I was referring to this Application Note.

    TPS65987 and TPS65988 SPI Flash Firmware Update Over I2C (Rev. A)

    I know it is possible but it appears this functionality was not added to the Application Customization Tool. Is that correct?

  • Hi Jose,

    The application note that you are referring to goes over the Firmware Update overall. There are 2 options available, one is using an external Host(usually an EC) to program the patch via I2C or the other option is using a Flash via SPI. The host can also either directly download the patch onto the device's SRAM or program it to the Flash IC using the device's interface as you will see in the Abstract section of the application note. The application note will also describe the requirements for the Flash that you will see in Section 4.1.

    You can program the SPI Flash over I2C in a way, however you will have to use an external Host to download the contents onto the Flash using the device's SPI interface which would be connected to the Flash chip. The Host can send the 4CC commands described in Section 4.3 to use the device's host interface to program to the Flash.

    Thank you,

    Hari

  • If you explicitly answer that the TI Application Customization Tool does not support programming the SPI flash over I2C then I will accept the answer.

  • Technically yes the Application Customization Tool for specifically TPS65988 does not support programming a SPI Flash over I2C. However, this is more of a device limitation as we only support using a SPI Flash on the TPS65988 not an I2C Flash IC. 

    For example, on our new device that we will be releasing, the TPS25750, the Application Customization Tool will support programming an I2C Flash for this device.