Part Number: TPS65987D
Other Parts Discussed in Thread: TPS65988
hi ,
we are using tps65987ddh ic in our charging station project, i cant able to flash the binary file using FTD4232h showing an error,
can u plz help me resolve the error ,

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.
Hi R. Mohan,
Are you using a custom board or an EVM?
Are you able to connect with the FTDI chip?
In the GUI, can you navigate to "Adapter -> Configure I2C/SPI Adapter Settings".
Do you get an error message at this step?
If no, can you sweep the I2C addresses and send a screenshot of the result?
Thanks and Regards,
Chris
hi , christopher,
we are using custom board,
yes i can able to connect the FTDI chip,
when i try to sweep the I2C addresses i'm getting a error, like
" Exception Encountered during I2C Address Sweep:*** ERROR in FTDI call (I2C_OpenChannel), status: 3
<type 'exceptions.Exception'>


0675.LMS_USB charger Section _PDF_23Jan2023-5-7 (1).pdf
Schematic from other thread.
Hi christopher,
we are waiting for your response... kindly help us as soon as possible....
Hi R. Mohan,
Sorry for the delays, the schematic you shared did not include the FTDI chip.
Can you verify that the FTDI chip is connected to the I2C lines the same way as the EVM?
Please check that the PD controller is powered properly by checking the Vin3V3 and LDO3V3 pins for 3.3V.
If that is all working, can you probe the I2C line that is connected to the FTDI IC and to I2C2 to verify that I2C communication is happening.
Thanks and Regards,
Chris
Hi Christopher,
Thanks for the reply.
like you said we didn't include the ftdi chip in our schematic, but we connecting FTDI4232H externally for flashing the ic. (Procured Module link below)
https://in.element14.com/ftdi/ft4232h-mini-module/mini-module-usb-serial-comm-interface/dp/1697466
And as per your above comments we done all the things but we have getting the same error .Please help us.
Thank
Sanjeevi.R
Hi R. Mohan,
I'll reach out to the GUI team to see if there is any help we can provide here. If you checked the previous items and copied the EVM exactly, this may be an issue related to the FTDI chip and you may need to reach out to the product support for the FTDI4332H.
Thanks and Regards,
Chris
Hi R. Mohan,
I spoke with the GUI team:
Can you replicate the issues and select the "Show details" tab when you get the error message.
Typically if the I2C sweep is working properly, the GUI will provide a "sweep failed" or "sweep successful" message. The lack of that message indicates that there is something wrong on the FTDI side.

If this is an issue with the FTDI, as mentioned before, you may need to reach out to the FTDI manufacturers for debug. I would recommend trying to re-download the 6.1.3 GUI and make sure to delete and download the FTDI drivers.(There will be an option for this when running the 6.1.3 download)
Unfortunately, we do not have one of those mini modules, so I can not guarantee they will work with our devices.
Although I cannot replicate your setup exactly, the TPS65988EVM has the ability to have a similar configuration. This board has a PCB that you can break into two parts, one housing the PD controller and related circuitry, and the other housing the FTDI chip.
I replicated your situation by connecting the FTDI to the PD board only using jumper wires.
The wires I needed connected for proper operation of the binary flash were:
Once I connected these pins from the FTDI board to the PD board, I was able to use the GUI and sweep the I2C addresses as well as flash a binary file to the SPI.

Just for reference, these are the pins I connected to on the 988EVM.

https://www.ti.com/tool/TPS65988EVM
Options
From my understanding you are mainly interested in being able to flash the EEPROM. There are other tools you can use to flash the SPI EEPROM.
We use the TotalPhase Aardvark if we need to directly flash the SPI EEPROM. You may be able to find cheaper SPI EEPROM flash programmers but we won't be able to help you debug those.
Test
Hook up your FTDI board to your PC and open the GUI. Do not connect the FTDI board to your PD controller yet. Go to Adapter -> USB to I2C/SPI Adapter settings.
You should not get an error message.
Run the Sweep I2C address. The sweep should complete and fail, not finding any I2C addresses.
Thanks and Regards,
Chris
HI chrish, thanks for the reply
Actually now we facing the same issue like what you said....when i click the sweep i2c Address once complete 100% coming like "I2C address sweep failed read for all addresses in range 0x0....0x7F"
so the ftdi trying to sweep the i2c address bit it get failed to read the address.. so what we do next...??

Hi R. Mohan,
Great! This indicates the FTDI is working properly. At this point, identify which I2C lines/pin on the FTDI device are being used for the sweep and make sure they are correctly connected to the I2C2 pins of the PD controller. (Run the sweep and see which I2C lines have activity. Connect I2C2 SDA,SCL)
Also, make sure the PD controller has power. (there should be 3.3V on VIN3V3 if not in dead battery mode).
Once those steps are finished, try running the sweep again.
Thanks and Regards,
Chris
Hi Christopher,
Thanks for your well support .
We are planning to buy "TPS65987D EVM module please provide the better one link" for we ordering in TI Website.
Thanks
R.Mohan
Hi R. Mohan,
Were you able to get your board working? Or are you still running into issues with the I2C?
You should be able to purchase it from the product page.
https://www.ti.com/tool/TPS65987EVM
The board that I mentioned has a separate FTDI board is the TPS65988 Board ( the comments quoted below)
https://www.ti.com/tool/TPS65988EVM#order-start-development
Although I cannot replicate your setup exactly, the TPS65988EVM has the ability to have a similar configuration. This board has a PCB that you can break into two parts, one housing the PD controller and related circuitry, and the other housing the FTDI chip.
I replicated your situation by connecting the FTDI to the PD board only using jumper wires.
The wires I needed connected for proper operation of the binary flash were:
- I2C1_SCL
- I2C1_SDA
- SPI_CLK
- SPI_MOSI
- SPI_MISO
- SPI_CS
Once I connected these pins from the FTDI board to the PD board, I was able to use the GUI and sweep the I2C addresses as well as flash a binary file to the SPI.
Thanks and Regards,
Chris
Hi Chris,
Now we are procured EVK module below one.
https://www.ti.com/product/USB-C-PD-DUO-EVM/part-details/USB-C-PD-DUO-EVM
We need a snap shot image of how to configure the EVM in GUI Tool for obtaining 65W output to charging the laptop.
Kindly help us to enable the all PDO's port setting and charging the different devices.
And second question : small clarification For our custom board SPI read and flash and programming its happen .But I2C swipe address failed is showing now. or I2C configuration its must? But we can able to flash the program into the IC through the SPI.
Thanks
R.Mohan
Hi R. Mohan,
There is a project for the Sink and Source boards on the 6.1.3 GUI. Go to "New Project -> 987DH -> Source/Sink board" I would recommend reading through the user guide. You can update the PDOs in the project with the GUI.
The GUI flashes the SPI Flash over SPI, so I do not think you need I2C configuration for sure. Checking I2C was just a step to make sure you had the FTDI connected to the PD controller correctly.
After checking that the SPI connections are the same (between the 987EVM and your FTDI board), you should try using the Flash From X options and see if it works properly.
Thanks and Regards,
Chris