ddr_init takes long time on M7 core in S32G2 platform

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

ddr_init takes long time on M7 core in S32G2 platform

跳至解决方案
1,259 次查看
harry_choi
Contributor IV

Hello Community,

I am wondering why ddr_init() takes long time on M7 core in S32G2 platform.

When I measure the time, it took about 720ms.

DDR code was generated using S32 Debug Probe on S32DS DDR configuration tool.

And the result value of ddr_init is OK.

Please let me know why it took long time in M7 core.

Thanks,

Harry

标记 (1)
0 项奖励
回复
1 解答
1,172 次查看
harry_choi
Contributor IV

Hello Jeoy,

I had a mistake on setting DDR clock.

It is little difficult to set clock in Mcu MCAL(AUTOSAR) module.

Anyway, after I set the correct DDR clock, it took 200ms and DDR is also working.

So, I believe I can close this ticket.

Thanks,

Harry

在原帖中查看解决方案

0 项奖励
回复
4 回复数
1,241 次查看
Joey_z
NXP Employee
NXP Employee

hi,harry_choi

In order to provide you with better support, do you use custom boards? If not, is it an RDB or EVB board?
In addition, which version of RTD do you use? Can you give me more detailed information about how you configure ddr?

BR

Joey

0 项奖励
回复
1,216 次查看
harry_choi
Contributor IV

Hello Joey,

I used below DDR configuration in S32DS and generated ddr codes. 

harry_choi_0-1735871699488.png

I am developing on my custom board not on EVB using GoldVIP v1.12.0(SW32_RTD_4_4_2_0_0_D2105).

Normally how long does it take to init ddr on M7 core?

Thanks,

Harry

 

 

标记 (1)
0 项奖励
回复
1,197 次查看
Joey_z
NXP Employee
NXP Employee

hi,harry_choi

Thank you for your reply.

We do not provide the initialization procedure of M core DDR, and we cannot provide you with an accurate initialization time. However, when the M core is up to 400MHz to initialize the DDR register, the time should not need as long as you mentioned, and the specific initialization performance is recommended to use debugging tools to trace debugging.

BR

Joey

0 项奖励
回复
1,173 次查看
harry_choi
Contributor IV

Hello Jeoy,

I had a mistake on setting DDR clock.

It is little difficult to set clock in Mcu MCAL(AUTOSAR) module.

Anyway, after I set the correct DDR clock, it took 200ms and DDR is also working.

So, I believe I can close this ticket.

Thanks,

Harry

0 项奖励
回复