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.

TPS65987EVM: Flash update over I2C libraries

Part Number: TPS65987EVM

Hello,

I'm trying to use the example code in "USB-C PD AN SPI Flash Over I2C – slave21a.pdf" on page 7.  Where is definition and library of functions (document)?

I am using the Aarvark host controller connected to the TPS65987EVM I2C1 port.

Thanks,

Tim

  • Hi Tim,

    Please refer to the Host Interface Technical Reference Manual for the list of registers and relevant 4CC commands.

    Thanks,

    Emma

  • Hi Emma,

    Thanks for the quick reply.  I am already aware of the Host Interface Reference manual and would like to take advantage of the example C code.  However, the C code appears to reference library functions and would like to get those.  For example:

    1.       USB-C PD AN SPI Flash Over I2C – slave21a.pdf

    Example code on page 7, 8, 9:

     

    1. retVal = ReadReg(REG_ADDR_BOOTFLAG, REG_LEN_BOOTFLAG, &outdata[0]);
      1. retVal = WriteReg(REG_ADDR_PORTCONFIG, REG_LEN_PORTCONFIG, &indata[0]);
      2. retVal = ExecCmd(FLem, sizeof(flemInData), (int8_t *)&flemInData, TASK_RET_CODE_LEN, &outdata[0]);

     

    Are these functions, part of library? If , Yes – Where is definition and library of functions (document)?

     

    1. USB-C PD AN FW Update Over I2C – slav783a.pdf

    Page 7.

     

    C file containing the fundamental global functions used for controlling the

    TPS6598x:

    1. ReadIICRegister() ¨ I2C Read . A generic I2C read function that can be used for any register of the TPS6598x
    2. WriteIICRegister() ¨ I2C Write . A generic I2C write function that can be used for any register of the TPS6598x, using the register length and data as an input
    3. fourCC_Command() ¨ 4CC Commands . A case statement uses the switch() operator using selected 4CC variables required to perform the FW update

     

    above 3 function need this    HostCommandSend(&i2cMessage);

                    is it part of libraray or .dll?

    I also tried downloading SW-TM4C but could not find relevant functions in there either.

    Thanks,

    Tim

  • Hi Tim,

    Let me check with the team. I will get back to you in a few days on this question.

    Thanks,

    Emma

  • Hi Tim,

    After talking with the team, this is sample code that can be used with Tiva microcontroller, the TM4C123GH6PM. We do not have the specific libraries. Please try investigating the Tiva libraries to see if you can find what you are looking for. 

    Thanks,

    Emma

  • Hi Emma,

    We did not find any relevant libraries.

    Thanks for checking,

    Tim

  • Hi Tim,

    No problem. Hope you can find what you are looking for. 

    Thanks,

    Emma