imx6q Jtag init ram failed

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

imx6q Jtag init ram failed

ソリューションへジャンプ
1,987件の閲覧回数
faustosessego1
Contributor III

Hi,

i'm trying to initialize my DDR3L using the values generated by DDR3 script aid v0.10, but i'm not able to read any registers by jtag.

The SDRAM model is MT41K512M16_DDR3L_8Gb_x16_2CS_TwinDie_V80A

I configured the script as:

Immagine.png

Is it correct? I have the dought about the chip select.

In the schematic i see the  i.MX6Q - DDR module has only DRAM_CS0 connected to CS0 and CS1 MT41K512M16 module.

I see if i use the configuration of Nitrogen6x board, i'm able to read and write the registers.

Thanks

ラベル(1)
0 件の賞賛
返信
1 解決策
1,365件の閲覧回数
igorpadykov
NXP Employee
NXP Employee

Hi Fausto

script usage is described in presentation DRAM Controller Optimization

for i.MX Application Processors :

https://community.freescale.com/docs/DOC-104363

also : what reference design is based your board. Do you mean that

you are using DDR memory 16bit width with i.MX6Q, what is the reason ?

Attached is 16 bit example, one can look at other Sabre SD DDR init scripts on

https://community.freescale.com/docs/DOC-105652

Best regards

igor

-----------------------------------------------------------------------------------------------------------------------

Note: If this post answers your question, please click the Correct Answer button. Thank you!

-----------------------------------------------------------------------------------------------------------------------

元の投稿で解決策を見る

0 件の賞賛
返信
6 返答(返信)
1,366件の閲覧回数
igorpadykov
NXP Employee
NXP Employee

Hi Fausto

script usage is described in presentation DRAM Controller Optimization

for i.MX Application Processors :

https://community.freescale.com/docs/DOC-104363

also : what reference design is based your board. Do you mean that

you are using DDR memory 16bit width with i.MX6Q, what is the reason ?

Attached is 16 bit example, one can look at other Sabre SD DDR init scripts on

https://community.freescale.com/docs/DOC-105652

Best regards

igor

-----------------------------------------------------------------------------------------------------------------------

Note: If this post answers your question, please click the Correct Answer button. Thank you!

-----------------------------------------------------------------------------------------------------------------------

0 件の賞賛
返信
1,365件の閲覧回数
faustosessego1
Contributor III

Hi Igor,

Yes i use Imx6q and 16bit because my board is very small (44cm x 44cm)

WM-1_Top_LowRes.jpg

The schematic is:

schemaDDR3.jpg

I found a HW problem ( i missed to connect the ODT[1:0],Chip Select and CKE1 for TwinDie memory).

My questions are:

1)Can i use only the half memory (512KB) before patching the board?

2)which is the right configuration of  DDR3 script aid v0.10? I'm trying multiple choises but the board doesn't work. The attached 16 bit example works but why? You give me a generic configuration where the micro was imx6DL and not imx6q, and the DDR3 are different. I'm confused.

thanks a lot

0 件の賞賛
返信
1,365件の閲覧回数
igorpadykov
NXP Employee
NXP Employee

Hi Fausto

1. yes

2. i.MX6DL and i.MX6Q have similar MMDC modules. For configuration of

DDR3 script aid v0.10 one can look at presentation DRAM Controller Optimizationfor

i.MX Application Processors, it gives example for SDB board. Then change settings

for custom board.

Best regards

igor

0 件の賞賛
返信
1,365件の閲覧回数
faustosessego1
Contributor III

Hi Igor,

now i'm able to init the ram using the configuration generated by DDR3 script aid v0.10.

I used the configuration of MT41K256M16 / 4Gb ( MT41K512M16 / 8Gb)  to int half memory (as you suggested me)

If i try to write and read the PC register i have 2 different behaviours:

ImmagineDDr.png

i.Mx6DL

(gdb) mon imx6.cpu.0 mdw 0x17800000 0x04

0x17800000 d2192a00 82100655 84028205 4210de02 .*..U..........B

(gdb) mon imx6.cpu.0 mww 0x17800000 0x123456ab 0x04

(gdb) mon imx6.cpu.0 mdw 0x17800000 0x10

0x17800000 123456ab 123456ab 123456ab 123456ab .V4..V4..V4..V4.

ImmagineDDr1.png

i.Mx6Q

(gdb) mon imx6.cpu.0 mdw 0x17800000 0x04

0x17800000 ff7dff9e 9c1c1b37 dbb8cf65 2bdf8f0d ..}.7...e......+

(gdb) mon imx6.cpu.0 mww 0x17800000 0x123456ab 0x04

(gdb) mon imx6.cpu.0 mdw 0x17800000 0x10

0x17800000 ff34ffab 123456ab 123456ab 123456ab ..4..V4..V4..V4.

if you take a look the reading, you can see hte first 64bits ( ff34ffab  instead of 123456ab ) are wrong when i set i.Mx6Q.

My question is:

Why the configuration works fine if i set Mx6DL instead of Mx6Q? My Micro is Mx6Q and not Mx6DL.

Thank you

Fausto

0 件の賞賛
返信
1,365件の閲覧回数
faustosessego1
Contributor III

Hi

Now the i.Mx6Q works fine if i change the following registers from 0 value to:

//For target board, may need to run write leveling calibration to fine tune these settings

mww phys0x021b080c  0x0040003C

//Read DQS Gating calibration

mww phys0x021b083c  0x42350231

I get those values from another configuration file found in internet.

Why doesn't the debugger work fine if those 2 registers are set to 0?

thanks

0 件の賞賛
返信
1,365件の閲覧回数
igorpadykov
NXP Employee
NXP Employee

please check AN4467 i.MX 6 Series DDR Calibration

http://www.nxp.com/files/32bit/doc/app_note/AN4467.pdf

~igor

0 件の賞賛
返信