DDR initialization

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

DDR initialization

1,358 次查看
abi01
Contributor I

I'm running baremetal sample that comes with CW (File->New->ARMv8 Stationery->Hello World C Project) for LS1012A device (freedom board + cmsis-dap). Target init script execution is disabled:

pastedImage_1.png

I would like to know where is the code that performs DDR initialization located, since target init file is a python script which is not executed according to the screenshot? 

0 项奖励
回复
5 回复数

1,047 次查看
addiyi
NXP Employee
NXP Employee

The ddr initialization is located only in python script.

Adrian

0 项奖励
回复

1,047 次查看
abi01
Contributor I

Ok, but the sample is operational even if target initialization file is not executed (see screenshot from the previous post). 

pastedImage_1.png

So my conclusion was that the DDR is initialized also somewhere else. Can you please explain how is this possible?

0 项奖励
回复

1,047 次查看
addiyi
NXP Employee
NXP Employee

Do you have uboot running on your board? Check in Debug configuration > Startup you have Reset and Delay = 0 selected and also Halt selected. Using this config you can be sure that nothing (in this case uboot) is initialize the ddr and the code will not be able to be downloaded into ddr.

Adrian

0 项奖励
回复

1,047 次查看
abi01
Contributor I

I have a default configuration: baremetal sample template that comes with CW and target board(frdm) out of the box. Here is my startup config:

pastedImage_1.png

The sample starts working when I unchecked target initialization file. Until then it doesn't. 

0 项奖励
回复

1,047 次查看
addiyi
NXP Employee
NXP Employee

Usage of cmsis-dap will generate a reset skid, meaning the core cannot be stopped immediately. Becasue of this uboot have time to run ddr initialization.

You can use a CWTAP to avoid reset skid or detele the uboot on your board.

Adrian

0 项奖励
回复