Hello,
I am working on MPC5746C MCU and recently I have declared a shared memory regions in SRAM memory section.
When I use "memset" function to reset the memory region, it is causing an exception and leading to an ISR.
The object declaration is as shown below.
Is this the correct way ? Any mistake in declaring and processing the shared memory ?
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