Shared memory usage in MPC5746C

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

Shared memory usage in MPC5746C

743 Views
jayasankar_band
Contributor I

Hello,

I am working on MPC5746C MCU and recently I have declared a shared memory regions in SRAM memory section. 

pastedImage_2.png

When I use "memset" function to reset the memory region, it is causing an exception and leading to an ISR.

pastedImage_4.png

The object declaration is as shown below.

pastedImage_5.pngIs this the correct way ? Any mistake in declaring and processing the shared memory ?

0 Kudos
1 Reply

614 Views
stanish
NXP Employee
NXP Employee

Hi,

the snippet of your shared memory section seems to be correct.

Please check in the map file the object ShmMsgToCore1 is placed at valid address 0x4007C800.

I assume the entire SRAM is initialized by the startup to avoid ECC exceptions by core0.

Could you possibly narrow it down to which specific instruction/core  is causing the exception?

Is it indeed memset() or some other following statement?

 Also you might be interested in this example:

Example S32R274 multi-core shared memory - S32DS Power v1.2 

Hope it helps.

Stan

0 Kudos