Shared memory usage in MPC5746C

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Shared memory usage in MPC5746C

1,924件の閲覧回数
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,795件の閲覧回数
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 件の賞賛
返信