2391078_en-US

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

2391078_en-US

2391078_en-US

S32K358 multi core data sharing

Hello ,

I am trying to use shared memory in s32k358 multi core.

I am following user define example, 

When i try to assign some value in buzzer_state_shared_data_U32 ( currently only core 0 is accessing this memory), core 0 is hanging and swt resetting the controller.

But when i flash the code in debug flash, its running properly. With power on reset, core 0 is hanging. 

Why its running properly in when flashing and not running in power off and on.

nirmal_masilamani_0-1783316750067.png


Re: S32K358 multi core data sharing

Hello @Julián_AragónM ,

Thank you for your quick response,

I check the startup files, SRAM Init is happening.

I have attached my startup files and linker files. Please support me to resolve this issue

Re: S32K358 multi core data sharing

Hello @nirmal_masilamani,

But when i flash the code in debug flash, its running properly. With power on reset, core 0 is hanging. 

This is most likely caused by ECC RAM error. Usually, debuggers initialize the ECC on volatile memories, however, when powering on and off, debugger does not initialize RAM, and hardfault occurs when trying to access memory.

This is usually done in the startup code, before main.

The section should be also configured as non-cacheable.

Regarding your second issue: but when i try to access it from timer ISR or OS task, core 0 going to hardfault.

You can try to trace back your hardfault. Halt the core in the HardFault_Handler(), and find the SP value in the core registers: How To Debug A Fault Exception On ARM Cortex-M(V7M) MCU(S32K3XX).

Best regards,
Julián

Re: S32K358 multi core data sharing

Hello,

When i access shared memory in main(), its working fine even in power off and on, but when i try to access it from timer ISR or OS task, core 0 going to hardfault.

Please support me in this.

Re: S32K358 multi core data sharing

Hello @Julián_AragónM ,

Please support on this query. What i am missing here?

Tags (1)
No ratings
Version history
Last update:
12 hours ago
Updated by: