The startup time in S32R274 is too long

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

The startup time in S32R274 is too long

跳至解决方案
821 次查看
q_zhang
Contributor I

The startup time is too long for me, and I found the process of initializing SRAM ECC costs about 80ms. If I delete this process, It cannot start normally. So, How can I reduce the time in startup.s?

捕获.PNG

捕获1.PNG

标记 (1)
0 项奖励
1 解答
731 次查看
petervlna
NXP TechSupport
NXP TechSupport

Hi,

You can initialize RAM by parts.

First initialize minimum RAM needed for your application to run.

During application runtime initialize rest of RAM as you like.

PS: RAM has to be initialized once its content is destroyed as it implements ECC protection.

regards,

Peter

在原帖中查看解决方案

3 回复数
732 次查看
petervlna
NXP TechSupport
NXP TechSupport

Hi,

You can initialize RAM by parts.

First initialize minimum RAM needed for your application to run.

During application runtime initialize rest of RAM as you like.

PS: RAM has to be initialized once its content is destroyed as it implements ECC protection.

regards,

Peter

731 次查看
q_zhang
Contributor I

I tried to reduce the size of RAM to 128K. which is m_data. The chip runed normally if I didn't use the RAM named sys_data, Mag, temptracksect,etc. However, If I added the code in the main function which is used to initialize RAM named sys_data, the chip cannot work again.

捕获.PNG

捕获.PNG

捕获.PNG

0 项奖励
731 次查看
petervlna
NXP TechSupport
NXP TechSupport

Hi,

use only RAM which you have initialized. If you use unitialized RAM you will get multibit ECC faults on read.

As I have explained above. Initialize RAM by parts according to you SW needs.

So if your main use RAM which is not yet initialized, do init first and then execute the code which is using it.

There is no real issue here.

regards,

Peter

0 项奖励