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: TPS65988EVM : Cannot write external Flash via FLwd

Part Number: TPS65988

Hi TI team,

I am using the to test the writing of the full 'flash.bin' via the 4CC commands. My initial test is the following:

- Erase the flash via the Application Customization Tool (FTDI).

- Read the flash via the Application Customization Tool (FTDI) to verify it is erased

- Use FLad to set the write start address to 0x0.

- Use FLwd to write 16 bytes of data.

- The Return Code of the  FLwd is 0xFF (Error).

Could you confirm that this scenario is valid?

The script I am using has the following commands:

calling function: Raw Register Write
input value: 0x409
  Input Arguments
    Register Address   0x9
    Write Length       4
    Data               0x0
execute status: Successful write
return value: 0x0
  Data
    Confirmed Read   0x0

calling function: Raw Register Write
input value: 0x64614c460408
  Input Arguments
    Register Address   0x8
    Write Length       4
    Data               0x64614c46
execute status: Successful write
return value: 0x0
  Data
    Confirmed Read   0x0

calling function: Raw Register Read
input value: 0x109
  Input Arguments
    Register Address   0x9
    Read Length        1
execute status: Successful read
return value: 0x0
  Data
    Data   0x0

calling function: Raw Register Write
input value: 0xffffffffffffffffffffffff000020001009
  Input Arguments
    Register Address   0x9
    Write Length       16
    Data               0xffffffffffffffffffffffff00002000
execute status: Successful write
return value: 0xffffffffffffffffffffffff00002000
  Data
    Confirmed Read   0xffffffffffffffffffffffff00002000

calling function: Raw Register Write
input value: 0x64774c460408
  Input Arguments
    Register Address   0x8
    Write Length       4
    Data               0x64774c46
execute status: Successful write
return value: 0x0
  Data
    Confirmed Read   0x0

calling function: Raw Register Read
input value: 0x109
  Input Arguments
    Register Address   0x9
    Read Length        1
execute status: Successful read
return value: 0xff
  Data
    Data   0xff

  • Hi Alex,

    The 'FLxx' commands are used to update the Flash configurations. When the Flash IC is empty, you have to program the full flash image binary to it so that the headers for the 2 regions are set up correctly. To do this you may use the Host or an external programmer such as an Aardvark. Once you program the Flash with the full image then you will be able to successfully use the 'FLxx' 4CC commands.

    I would recommending reading the Flash Firmware Update Over I2C Application Note for more details.

    Thank you,

    Hari

  • Hi Hari,

    Thanks for the clarification! The AN is a bit vague on the means of programming the full flash.bin and can be left to interpretation. Adding the exact explanation that you gave me here in the document will make it clearer.