How to generate SATA test pattern on i.mx6?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to generate SATA test pattern on i.mx6?

3,292 Views
MaxChou
Contributor III


Dear  Sirs.

I have a question about SATA test,

The Reference Manual Section 53.3.5.14 describes the Looback Responder,

High Frequency Test Pattern (HFTP)

Mid Frequency Test Pattern (MFTP)

Low Frequency Test Pattern (LFTP)

Lone Bit Pattern (LBP)

Does Freescale have any sample code for this test?

Sincerely,Max

Labels (1)
0 Kudos
Reply
2 Replies

1,427 Views
admin
Specialist II

Hi Max,

From our HW engineer:

"There is no code for the test patterns. These are Built In Self Test (BIST) patterns contained in the PHY controller. You make the appropriate register setting (either through software, or manually through JTAG or a regisitry utility such as memtool) to SATA_BISTCR[TXO] and the PHY will output the selected, pre-programmed test pattern.

Other settings in the SATA_BISTCR register are used to set up the PHY to transmit the BIST pattern. The section you sited in the Reference Manual should be sufficient to guide you in using the BIST tests.

The SATA controller can initiate a BIST test on an attached device, or receive a command from an attached device to initiate a BIST test on its side, or can run a loop back BIST test. The Reference Manual describes how to do all three. Hopefully I have given you enough of a hint to use the Reference Manual. Please ask more specific questions if you have them."

Also, keep in mind that some BIST cannot be used after the IC is in a BGA package. This is described in the RM.

Hope this helps.


0 Kudos
Reply

1,427 Views
chrislin_wpi
Contributor II

Dear Sir,

I modified the register as below:

Set SATA_TESTR. TEST_IF=0x1 (enable test mode)

Set SATA_BISTCR = 0x00041700 (Set pattern)

But it didn't generate SATA test pattern.

Do I miss anything?

Sincerely, Chris 

0 Kudos
Reply