Shared memory usage in MPC5746C

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

Shared memory usage in MPC5746C

1,923 次查看
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 项奖励
回复
1 回复

1,794 次查看
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 项奖励
回复