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.

TPS65988EVM: Unable to restore board to default values

Part Number: TPS65988EVM

I am attempting to restore to default values, following Robert Almendarez tip:

The device factory settings can be recovered via the following process:

  1. Open the Application Customization Tool
  2. Click Project -> New Project
    1. TPS65988DH
    2. Standard (Recommended)
    3. Upstream Facing Port (UFP) Only
  3.  Click Device -> Re-Flash EVM Firmware (Recovery)
    1. Select the tps65988_evm_flash_image.bin for the EVM Recovery File
  4. Click OK

This will restore the original EVM firmware.

I receive the following error:

Exception Encountered during EVM Recover:hw_spi_flash_erase failure: attempting to erase to null handle

<type 'exceptions.Exception'>


Traceback (most recent call last):
File "dialogWindow.pyc", line 6553, in flash_device
File "hw_interface.pyc", line 629, in hw_spi_flash_erase
Exception

  • Hello,

    There appears to be a hardware issue with the onboard flash.  Do you have a way to monitor the communication between the TIVA processor and the onboard flash (eeprom)?  Please capture the waveforms and if possible attempt on another EVM.

    Thanks and Regards,

    Chris

  • Chris,

    I'm using FTDI interface. I don't think there is a TIVA processor on the board....

  • Roy,

    Ok.  Can you capture the communication between the FTDI chip and the EEPROM?

    Thanks,
    Chris

  • Chris, I apologize for the delay in responding. I was reading your messages in email, and didn't realize it was a "no reply" email that you sent.
    An update. I am now able to read and write to flash. The way I accomplished this was to remove the FTDI board from the eval board, and plug in the FTDI board from the TPS65988DJEVM that we purchased in error.
    I can now program the flash, and when I re-boot, the changes take place. I can also restore flash to default.
    The only thing I cannot do is write to device ram. When I try, I receive the following message:
    Exception Encountered during Import From Device:Tiva error: STATUS: ERROR_I2C - Command result: 0000000c - Length byte address ack error.

    <type 'exceptions.Exception'>

    Traceback (most recent call last):
      File "dialogWindow.pyc", line 9772, in import_config
      File "device_rw.pyc", line 680, in read_reg
      File "ppc_tiva_host.pyc", line 544, in read_reg_exchange
      File "ppc_tiva_host.pyc", line 514, in i2c_read_exchange
      File "ppc_tiva_host.pyc", line 183, in _i2c_read_exchangeMethod
    Exception: Tiva error: STATUS: ERROR_I2C - Command result: 0000000c - Length byte address ack error.
    Before I perform this step, I repeat the steps to make sure that the adapter settings are correct,and I can test read and get the APP response.
    Roy
  • Hello Roy,

    Are you using this mechanism described in the user guide?

    https://www.ti.com/lit/ug/slvub60c/slvub60c.pdf#page=22

    Thanks,
    Chris

  • Yes, exactly so.

    Roy

  • Roy,

    (1) When you perform the test read does it return APP?

    (2) What is the BusPowerZ configuration? https://www.ti.com/lit/an/slvae21a/slvae21a.pdf#page=11

    Thanks,
    Chris

  • (1) Yes, it returns APP

    (2) Switch 2 positions 4 - 6

      4 - Off
      5 - Off
      6 - On


    Switch 6 On - 011b (090) BP_NoWait)

     

  • Hi Roy, 

    Chris is out of office and will return 10/10.

    Thanks and Regards,

    Raymond LIn

  • Raymond, I appreciate the message. However, I'm way behind on my ability to recommend the TPS65988DH to my people because I cannot get the evaluation board to function. I have had no satisfactory answers. Many responses were asking me questions that were answered in an earlier email.

    I need help. If I have a defective board, I'll get a new one. If I'm doing something wrong, tell me.

    Roy

  • Hi Roy, 

    Have you checked through the Adapter settings in the GUI if the device (FTDI) is available to use and if it is able to properly sweep and find the I2C address of the PD controller as well as the flash?

    Are you able to flash the EVM with any configuration or does the error message continuously pop up? 

    Thanks and Regards,

    Raymond Lin

  • Raymond, I have covered this. The FTDI settings are in fact correct to the best of my knowledge. I am able to sweep and find the addresses 0x20 and 0x24, and perform the test reads successfully. I am unable to flash the EVM, period.

  • Also, please note that I have tried swapping out the FTDI board from the TPS65988, and replacing it with the TIVA board from the TPS65988DJEVM. Once again, I can perform the sweep and the tests, but cannot go any further.

  • Hello,

    I do not see any issues with what you are doing and would recommend ordering another EVM.  Let us know if you experience the same issue with multiple EVMs.

    Regards,

    Chris

  • I have ordered a new TPS65988EVM for delivery tomorrow morning. Would you suggest I continue with the TIVA interface or leave the board with the FTDI interface?

    Thank you very much,

    Roy

  • Hello,

    I would recommend leaving the board with the FTDA interface.

    REgards,

    chris

  • Hi Chris,

    Ok, I did. Not only that, I removed all drivers, uninstalled the program, reinstalled the program, and rebooted the Windows 11 system.

    I then carefully connected the board, and followed the following steps:

    1. Started app

    2. Selected new project, TPS65988DH, and Upward facing port only

    3. Configured the adapter as FTDI, scanned for all ports, and saw ports 20 and 24

    4. Tested port 20 with all three tests, and received the appropriate response

    5. Attempted to write project data to device ram using port 20, tested the port and recevied APP,attempted to write and received the following error:

    Exception Encountered reading from device ***error in FTDI call (i2c_devicewrite) status: 2 <type 'exceptions.Exception'>

    Details:

    Traceback (most recent call last)

    file "DialogWindow.pyc", line 9772, in import_config

    file "device_rw.pyc",line 707, in read_reg

    file "hw_interface.pyc", line 417, in hw_i2c_write_no_stop

    file "ftdi.pyc", line 615, in ftdi_i2c_write

    Exception

    Please note that all switches and jumpers were left as the board was received from DigiKey, in a sealed container. System power is being supplied by a 20 volt highly regulated DC supply.

    I can swap to the TIVA communications board, but that means snapping off the FTDI board, leaving me with a board that I cannot return.

    Roy

  • As always, I'm able to read from the device ram and save it to global settings. Also, I can do a binary read to a file of my choice. When I attempt to write to flash with the file that I just saved in the previous step, I read the current region offsets and get an invalid region pointers error, and it defaults to the region 0 address of 0x2000 and the region 1 address of 0x20000. When I click ok to initiate the write, the app hangs on "erasing device" for a long time. Realizing that this step can take a while, a let the system sit for 15 minutes. Still no response and no green progress bar. I finally aborted the process, and the app did not respond, forcing me to quit the app and restart.

    The next step was to restart the app, go through all of the previous steps, and try to manually erase flash. This also failed, with no green progress bar.

    I then moved the project to another Windows 11 machine with the same results.

    I'm lost.

  • Roy,

    I am still investigating on my side.  I cannot find any description about the S5 switch on the EVM.  This appears to connect the FTDI to the SPI flash.  Can you confirm the settings?

    Chris

  • Hi Chris,

    Switch 5 has all switches "ON"

    Switch 3 has all switches "OFF"

    Switch 4 has both switches "ON"

  • Updated status:

    I have swapped over to the TIVA interface, and things have changed.

    When I use the FTDI board to communicate with the EVM, and perform the test "Test SPI Flash Read (Adress 0x00) I receive the response 255,255,255,255

    When I use the TIVA interface, I receive 0,32,0,0

    ALSO

    I am now able to read flash to a file, and write to flash from a file. I could not do that on the other board, with FTDI or TIVA.

    I am also able to write directly to device ram, which has been the biggest problem to date.

    I want to thank you all for your patience with me, while I struggled to get to this point.

    Roy