SRAM Initialization in each core for S32R274 Microcontroller

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

SRAM Initialization in each core for S32R274 Microcontroller

1,195 Views
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 Kudos
Reply
1 Reply

1,188 Views
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 Kudos
Reply