The startup time in S32R274 is too long

cancel
Showing results for 
Search instead for 
Did you mean: 

The startup time in S32R274 is too long

Jump to solution
452 Views
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

Tags (1)
0 Kudos
1 Solution
362 Views
petervlna
NXP Employee
NXP Employee

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

View solution in original post

3 Replies
363 Views
petervlna
NXP Employee
NXP Employee

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

362 Views
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 Kudos
362 Views
petervlna
NXP Employee
NXP Employee

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 Kudos