ddr_init takes long time on M7 core in S32G2 platform

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

ddr_init takes long time on M7 core in S32G2 platform

Jump to solution
1,254 Views
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

Tags (1)
0 Kudos
Reply
1 Solution
1,167 Views
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

View solution in original post

0 Kudos
Reply
4 Replies
1,236 Views
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 Kudos
Reply
1,211 Views
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

 

 

Tags (1)
0 Kudos
Reply
1,192 Views
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 Kudos
Reply
1,168 Views
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 Kudos
Reply