SRAM Initialization in each core for S32R274 Microcontroller

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

SRAM Initialization in each core for S32R274 Microcontroller

1,198 次查看
Kavitha
Contributor I

Is it possible for each core to initialize only the SRAM it will use to reduce the startup time for S32R274 controller.

Any example startup script would be highly greatful.

0 项奖励
回复
1 回复

1,191 次查看
petervlna
NXP TechSupport
NXP TechSupport

Hello,

Yes this is possible. There are multiple strategies how to initialize RAM in order to save initialization time.

You can even use DMA to do the initialization in order to offload cores.

As I do not have any knowledge on your application I will answer only generally.

You can do partial RAM initialization (small block like 4k) during assembly startup after power on reset on your boot core so the application will have time to do another time critical initialization. In parallel you can initialize from second core another part of RAM.

Once you have your core application part up and running you can initialize rest of RAM at once or again step by step.

All this is application dependent and require feasibility study from your side, to prevent any corner case issues.

I do not have example for partial RAM initialization, you need to modify linker file and also your assembly startup code. (check for RAM initialization loop and shorten it according to your needs, you can copy and adopt it for the second core startup)

best regards,

Peter

0 项奖励
回复