P2041 Serdes PLL could not work correct

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

P2041 Serdes PLL could not work correct

5,334 Views
zhaopingyang_sg
Contributor III

I use P2041 with LANE H as SGMII and Lane E/F as PCIE-2.

but when cpu bootup,I found SDRDS Register is as Follows:

|---B0RSTCTL = 0x26474507.
|---B1PLLCR0 = 0x0000000c.
|---B1PLLCR1 = 0x08000100.

it means that Serdes is reset failed.

follows is my RCW:

pastedImage_1.png

after this,i excute a reset sequence for SRDES,it out put as follows and reset failed at last:

-> serdes_reset
|---B0RSTCTL = 0x26474507.
|---B1PLLCR0 = 0x0000000c.
|---B1PLLCR1 = 0x08000100.
Set SD_RST
|---B0RSTCTL = 0x26474547.
|---B1PLLCR0 = 0x0000000c.
|---B1PLLCR1 = 0x08000100.
SET SDPD and PLLRST
|---B0RSTCTL = 0x26474567.
|---B1PLLCR0 = 0x0000000c.
|---B1PLLCR1 = 0x08000100.
SET RSTREQ
|---B0RSTCTL = 0x06474562.
|---B1PLLCR0 = 0x0000000c.
|---B1PLLCR1 = 0x08000100.
Clear SD_RST SDPD and PLLRST
|---B0RSTCTL = 0x06474504.
|---B1PLLCR0 = 0x0000000c.
|---B1PLLCR1 = 0x08000100.
value = 27 = 0x1b

-> serdes_dump
|---B0RSTCTL = 0x26474507.
|---B1PLLCR0 = 0x0000000c.
|---B1PLLCR1 = 0x08000100.
value = 27 = 0x1b

0 Kudos
22 Replies

2,651 Views
leowang1
Contributor I

会不会是焊接问题导致的?

0 Kudos

4,895 Views
ufedor
NXP Employee
NXP Employee

Please provide:

1) U-Boot log as text attachment

2) SerDes reference clocks frequencies

0 Kudos

4,895 Views
zhaopingyang_sg
Contributor III

hi,ufedor!

My operation system is vxWorks,no u-boot.

Serder reference clocks is 100M.

thanks...

0 Kudos

4,895 Views
ufedor
NXP Employee
NXP Employee

> Serder reference clocks is 100M.

Both reference clocks or one?

If one - which exactly SD_REF_CLK1 or SD_REF_CLK2?

Please provide RCW in either form:

- text file of the RCW dump

- binary image

0 Kudos

4,895 Views
zhaopingyang_sg
Contributor III

Yes,both SD_REF_CLK is 100M。

RCW is as follows:

pastedImage_1.png

0 Kudos

4,895 Views
ufedor
NXP Employee
NXP Employee

Excuse me, by it was written "text file".

This means - not picture.

0 Kudos

4,892 Views
zhaopingyang_sg
Contributor III

sorry! by the way, system do not have sd_ref_clk_2.

0xf8000000: aa 55 aa 55 01 0e 01 00 4c 58 00 00 00 00 00 00
0xf8000010: 18 18 00 00 00 00 00 00 64 8e d0 c0 f7 c0 20 00
0xf8000020: de 80 00 00 40 00 00 00 00 00 00 00 00 00 00 00
0xf8000030: 00 00 00 00 f0 19 ce f3 00 00 00 00 00 00 00 00
0xf8000040: 00 00 00 00 00 00 00 00 09 13 80 c0 00 00 09 c4
0xf8000050: 09 00 00 10 00 00 00 00 09 13 80 c0 00 00 09 c4
0xf8000060: 09 00 00 14 00 00 00 00 09 13 80 c0 00 00 09 c4
0xf8000070: 09 00 00 18 81 d0 00 00 09 13 80 c0 00 00 09 c4
0xf8000080: 89 0b 00 50 00 00 00 02 09 13 80 c0 00 00 09 c4
0xf8000090: 89 0b 00 54 00 00 00 02 09 13 80 c0 00 00 09 c4
0xf80000a0: 89 0b 00 58 00 00 00 02 09 13 80 c0 00 00 09 c4
0xf80000b0: 89 0b 00 5c 00 00 00 02 09 13 80 c0 00 00 09 c4
0xf80000c0: 89 0b 00 90 00 00 00 02 09 13 80 c0 00 00 09 c4
0xf80000d0: 89 0b 00 94 00 00 00 02 09 13 80 c0 00 00 09 c4
0xf80000e0: 89 0b 00 98 00 00 00 02 09 13 80 c0 00 00 09 c4
0xf80000f0: 89 0b 00 9c 00 00 00 02 09 13 80 c0 00 00 09 c4
0xf8000100: 89 0b 01 08 00 00 00 12 09 13 80 c0 00 00 09 c4
0xf8000110: 89 02 10 08 00 00 f0 00 09 13 80 c0 00 00 09 c4
0xf8000120: 89 02 10 28 00 00 f0 00 09 13 80 c0 00 00 09 c4
0xf8000130: 89 02 10 48 00 00 f0 00 09 13 80 c0 00 00 09 c4
0xf8000140: 89 02 10 68 00 00 f0 00 09 13 80 c0 00 00 09 c4
0xf8000150: 09 13 80 00 00 00 00 00 08 13 80 40 8a da 60 88

0 Kudos

4,892 Views
ufedor
NXP Employee
NXP Employee

> by the way, system do not have sd_ref_clk_2.

In this case SRDS_LPD_B2 - Lane C has to be powered down.

0 Kudos

4,892 Views
zhaopingyang_sg
Contributor III

thanks for your answer.

I set the lane C to power down.but it's still not work.new RCW is as follows:

0xf8000000: aa 55 aa 55 01 0e 01 00 4c 58 00 00 00 00 00 00
0xf8000010: 18 18 00 00 00 00 00 00 64 8e d0 c0 ff c0 20 00
0xf8000020: de 80 00 00 40 00 00 00 00 00 00 00 00 00 00 00
0xf8000030: 00 00 00 00 f0 19 ce f3 00 00 00 00 00 00 00 00
0xf8000040: 00 00 00 00 00 00 00 00 09 13 80 c0 00 00 09 c4
0xf8000050: 09 00 00 10 00 00 00 00 09 13 80 c0 00 00 09 c4
0xf8000060: 09 00 00 14 00 00 00 00 09 13 80 c0 00 00 09 c4
0xf8000070: 09 00 00 18 81 d0 00 00 09 13 80 c0 00 00 09 c4
0xf8000080: 89 0b 00 50 00 00 00 02 09 13 80 c0 00 00 09 c4
0xf8000090: 89 0b 00 54 00 00 00 02 09 13 80 c0 00 00 09 c4
0xf80000a0: 89 0b 00 58 00 00 00 02 09 13 80 c0 00 00 09 c4
0xf80000b0: 89 0b 00 5c 00 00 00 02 09 13 80 c0 00 00 09 c4
0xf80000c0: 89 0b 00 90 00 00 00 02 09 13 80 c0 00 00 09 c4
0xf80000d0: 89 0b 00 94 00 00 00 02 09 13 80 c0 00 00 09 c4
0xf80000e0: 89 0b 00 98 00 00 00 02 09 13 80 c0 00 00 09 c4
0xf80000f0: 89 0b 00 9c 00 00 00 02 09 13 80 c0 00 00 09 c4
0xf8000100: 89 0b 01 08 00 00 00 12 09 13 80 c0 00 00 09 c4
0xf8000110: 89 02 10 08 00 00 f0 00 09 13 80 c0 00 00 09 c4
0xf8000120: 89 02 10 28 00 00 f0 00 09 13 80 c0 00 00 09 c4
0xf8000130: 89 02 10 48 00 00 f0 00 09 13 80 c0 00 00 09 c4
0xf8000140: 89 02 10 68 00 00 f0 00 09 13 80 c0 00 00 09 c4
0xf8000150: 09 13 80 00 00 00 00 00 08 13 80 40 89 e0 dd 1f

the serder pll reset output message as follows:

-> serdes_reset
|---B0RSTCTL = 0x26474507.
|---B1PLLCR0 = 0x0000000c.
|---B1PLLCR1 = 0x08000100.
Set SD_RST
|---B0RSTCTL = 0x26474547.
|---B1PLLCR0 = 0x0000000c.
|---B1PLLCR1 = 0x08000100.
SET SDPD and PLLRST
|---B0RSTCTL = 0x264745e7.
|---B1PLLCR0 = 0x0000000c.
|---B1PLLCR1 = 0x08000100.
SET RSTREQ
|---B0RSTCTL = 0x064745e1.
|---B1PLLCR0 = 0x0000000c.
|---B1PLLCR1 = 0x08000100.
|---B0RSTCTL = 0x064745e4.
|---B1PLLCR0 = 0x0000000c.
|---B1PLLCR1 = 0x08000100.
|---B0RSTCTL = 0x064745e4.
|---B1PLLCR0 = 0x0000000c.
|---B1PLLCR1 = 0x08000100.
|---B0RSTCTL = 0x064745e4.
|---B1PLLCR0 = 0x0000000c.
|---B1PLLCR1 = 0x08000100.
|---B0RSTCTL = 0x264745e7.
|---B1PLLCR0 = 0x0000000c.
|---B1PLLCR1 = 0x08000100.
|---B0RSTCTL = 0x264745e7.
|---B1PLLCR0 = 0x0000000c.
|---B1PLLCR1 = 0x08000100.
|---B0RSTCTL = 0x264745e7.
|---B1PLLCR0 = 0x0000000c.
|---B1PLLCR1 = 0x08000100.
|---B0RSTCTL = 0x264745e7.
|---B1PLLCR0 = 0x0000000c.
|---B1PLLCR1 = 0x08000100.
|---B0RSTCTL = 0x264745e7.
|---B1PLLCR0 = 0x0000000c.
|---B1PLLCR1 = 0x08000100.
|---B0RSTCTL = 0x264745e7.
|---B1PLLCR0 = 0x0000000c.
|---B1PLLCR1 = 0x08000100.
Clear SD_RST SDPD and PLLRST
|---B0RSTCTL = 0x26474507.
|---B1PLLCR0 = 0x0000000c.
|---B1PLLCR1 = 0x08000100.
LAST Status.
|---B0RSTCTL = 0x26474507.
|---B1PLLCR0 = 0x0000000c.
|---B1PLLCR1 = 0x08000100.

0 Kudos

4,894 Views
ufedor
NXP Employee
NXP Employee

> the serder pll reset output message as follows:

What are the following lines?

Have you programmed the RCW into a Flash?

0 Kudos

4,894 Views
zhaopingyang_sg
Contributor III

thanks for all your reply,do you have some document  to explain how configure SerDer and Debug it.  

0 Kudos

4,894 Views
ufedor
NXP Employee
NXP Employee

SerDes parameters have to be configured in accordance with the QorIQ P2040 Reference Manual descriptions:

Table 3-13. SerDes Lane Multiplexing/Configuration

Table 4-14. Valid SerDes RCW Encodings and Reference Clocks

There are no additional documents concerning SerDes debugging.

Usually RCW is programmed into the boot Flash and tested by powering-on the board.

No additional debug or software control is needed because SerDes is configured by internal microcode using RCW data during POR sequence.

0 Kudos

4,894 Views
zhaopingyang_sg
Contributor III

Table 3-13. SerDes Lane Multiplexing/Configuration : I select 0x19 for use SGMII 4 for dtsec and PCIE2.

Table 4-14. Valid SerDes RCW Encodings and Reference Clocks: Ratio set 50:1 and set DIV to /2.

did some error in my RCW.

why SerDes PLL always could not lock?

thanks!

0 Kudos

4,894 Views
ufedor
NXP Employee
NXP Employee

Use a digital scope and provide traces of the SD_REF_CLK1 at the processor's pins.

0 Kudos

4,894 Views
zhaopingyang_sg
Contributor III

PIC1:REF_CLK_P and REF_CLK_N On each channel

pastedImage_1.png

PIC2: REF_CLK_P On oscilloprobe's GND and REF_CLK_N on oscilloprobe's signal pin

pastedImage_2.png

0 Kudos

4,894 Views
ufedor
NXP Employee
NXP Employee

Please provide complete processor connection schematics as PDF.

0 Kudos

4,894 Views
zhaopingyang_sg
Contributor III

Sorry I can not provide whole schematics as PDF,follwos is main schematics about  clock src and signals to CPU:

pastedImage_1.png

pastedImage_2.png

0 Kudos

4,894 Views
zhaopingyang_sg
Contributor III

ufedor‌ Could you give me some advise?thanks...

0 Kudos

4,892 Views
ufedor
NXP Employee
NXP Employee

I've already sent you response from the corresponding Technical Case.

I'm waiting for the complete processor connection schematics.

0 Kudos

4,894 Views
zhaopingyang_sg
Contributor III
  • How can I send you the schematics?

0 Kudos