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.

TMS570LC4357: Read from port in Diagnostic Test Mode: DIAGMODE = 7

Part Number: TMS570LC4357

Hello Team,

In Diagnostic Test Mode: DIAGMODE = 7 for checking ECC functionality, as mentioned in step: 5.Select the appropriate port in which the flip is desired using the DIAG_BUF_SEL bits in the FDIAGCTRL register. Only legal values are 0 for port A and 4h for port B.

I have selected port B by writing flashWREG -> FDIAGCTRL |= 0x400. 

In the next step 6. Do a port A or B read to the desired address, 

  1. Which is the desired address mentioned here? is it the flash ECC address range 0xF0000000 to 0xF047FFFF?
  2. How do read port B to this address? Please provide an example?

Additionally, in step 1. Branch to a non-Flash region to execute this sequence.

3.What is mentioned as the non-flash region. Which address rage refers to this?

  • Hello,

    1. The diagnostic mode 7 is to detect the ECC logic by inverting one or more bits of the ECC. Whatever the data is on the bus, you can invert the ECC bit or data bot by XORing the data on the bus and the data in FEMU registers (FEMU_ECC, FEMU_DxSW).

    2. It is not user programmable to use port A or port B.

    3. The test procedure should be executed from SRAM.