S32K358 Is it possible to have both cores execute code from the same flash block?

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

S32K358 Is it possible to have both cores execute code from the same flash block?

Jump to solution
356 Views
DrJonM
Contributor III

Hi,

I'm using an S32K358. Both the Lockstep core and Core 2 will have boot loaders that will verify and launch main application code in each core.

In the initial design, I intend to run the lockstep core boot and application our of flash block 0 and Core 2 out of flash block 1.

However, it would give us some flexibility in the flash layout if we could run the boot loaders for both cores out of block 0 with the application for the lockstep core running out of block 1 and the applications for core 2 out of block 2.

Is this feasible? i.e. can both cores simultaneously execute in place from the same flash block?

If so, what is the performance implication of this

Thanks,

Jon.

0 Kudos
Reply
1 Solution
329 Views
petervlna
NXP TechSupport
NXP TechSupport

Hello,

Is this feasible? i.e. can both cores simultaneously execute in place from the same flash block?

Yes, but not without restrictions.

Since cores has to go to single resource (flash), there will be arbitration in memory access and the cores will wait for access and will slow each other.

But if the second core execute something simple, it will go most of the time from cache, drop in performance will be very small.

Cores has its separate access ports on XBAR:

petervlna_0-1745475835739.png

Best regards,

Peter

View solution in original post

0 Kudos
Reply
1 Reply
330 Views
petervlna
NXP TechSupport
NXP TechSupport

Hello,

Is this feasible? i.e. can both cores simultaneously execute in place from the same flash block?

Yes, but not without restrictions.

Since cores has to go to single resource (flash), there will be arbitration in memory access and the cores will wait for access and will slow each other.

But if the second core execute something simple, it will go most of the time from cache, drop in performance will be very small.

Cores has its separate access ports on XBAR:

petervlna_0-1745475835739.png

Best regards,

Peter

0 Kudos
Reply