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.

TPS65982: Programming the Flash via I2C

Part Number: TPS65982

Hi,

I am trying to figure out how to implement an application where my host MCU can re-program the serial flash with configuration data.

On the EVM the serial flash is directly connected to the TPS65982 in an unshared fashion and the only way to reconfigure it is to "hack" the bus with Aardvark. I could connect my MCU on the same bus but that would create obvious issues with Multi-Master contention and power sequencing.

On the datasheet it seems to suggest the slave I2C port can be used for programming but the config tool seems to only be able to "read" data rather than reprogram the device.

a) Can my MCU use the I2C as a master (with TPS65982 as slave) to reconfigure it?

b) If not what is the recommended way to "share" the SPI bus between 2 masters?

c) If I use an external (eg Aardvark) bridge, for production programming I would also need to provide external power or can I reprogram the Flash when the board is bus-powered directly from VBUS? Is there again an SPI contention issue in that case?

Thanks,

Petros

  • Hi Petros,

    your host MCU can reconfigure the TPS65982 over I2C. We have an application note on updating the firmware on your device via an embedded controller. This same guideline can be followed in your application. You can refer to it at the following link: www.ti.com/.../slva783a.pdf

    If you do not see the features adjusted that you want to adjust, you can refer to our Host Interface Technical Reference manual which describes every configuration register which can be adjusted via I2C. You can refer to the host interface at the following link: www.ti.com/.../slvuan1a.pdf

    To answer question c, you can reprogram the Flash when you are powered from VBUS only if your SPI Flash chip is powered from the LDO_3V3 pin from the TPS65982.

    Thank you,
    Eric
  • Hi,

    I purchased the EK-TM4C123GXL evaluation kit and would like to load the code presented in slva783a. Do you already have a sample project or at least the full code posted somewhere?

    Thanks.

  • Hi Ari,

    We do not have the full code available. Only the sample code in the App Note is available for use. It is expected that the end customer creates the full code for their specific application.

    Thank you,
    Eric