<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: S32K358 multi core data sharing in S32K</title>
    <link>https://community.nxp.com/t5/S32K/S32K358-multi-core-data-sharing/m-p/2393237#M59783</link>
    <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/233316"&gt;@nirmal_masilamani&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;Are you able to access shared memory in main() after POR reset without debugger? Was the issue RAM initialization?&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;but when i try to access it from timer ISR or OS task, core 0 going to hardfault.&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;Were you able to identify the fault type as I mentioned in my previous reply?&lt;/P&gt;
&lt;P&gt;Have you also made sure the variable is placed in a non-cacheable area, or the cache is disabled?&lt;/P&gt;
&lt;P&gt;As suggestions:&lt;/P&gt;
&lt;P&gt;Keep volatile on core1Status and use __DMB()/__DSB() barriers on both the read (Core0) and write (Core1) sides.&lt;/P&gt;
&lt;P&gt;Your issue could also be caused by MPU configuration, if&amp;nbsp;MPU_ENABLE is defined, please call the MPU config before any ISR or OS task starts executing.&lt;/P&gt;
&lt;P&gt;You can refer to the following links:&amp;nbsp;&lt;A href="https://developer.arm.com/documentation/dui0646/c/Cortex-M7-Peripherals/Optional-Memory-Protection-Unit/MPU-Region-Attribute-and-Size-Register?lang=en" target="_blank"&gt;Arm Cortex-M7 Devices Generic User Guide r1p2&lt;/A&gt;&amp;nbsp;&amp;amp;&amp;nbsp;&lt;A href="https://docs.nxp.com/bundle/AN14715/page/topics/memory_protection_unit_mpu.html" target="_blank"&gt;AN14715: S32K3XX Hardware Resource Isolation and Protection&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;Best regards,&lt;BR /&gt;Julián&lt;/P&gt;</description>
    <pubDate>Thu, 09 Jul 2026 19:39:30 GMT</pubDate>
    <dc:creator>Julián_AragónM</dc:creator>
    <dc:date>2026-07-09T19:39:30Z</dc:date>
    <item>
      <title>S32K358 multi core data sharing</title>
      <link>https://community.nxp.com/t5/S32K/S32K358-multi-core-data-sharing/m-p/2391078#M59709</link>
      <description>&lt;P&gt;Hello ,&lt;/P&gt;&lt;P&gt;I am trying to use shared memory in s32k358 multi core.&lt;/P&gt;&lt;P&gt;I am following user define example,&amp;nbsp;&lt;/P&gt;&lt;P&gt;When i try to assign some value in&amp;nbsp;&lt;STRONG&gt;buzzer_state_shared_data_U32 ( currently only core 0 is accessing this memory),&amp;nbsp;&lt;/STRONG&gt;core 0 is hanging and swt resetting the controller.&lt;/P&gt;&lt;P&gt;But when i flash the code in debug flash, its running properly. With power on reset, core 0 is hanging.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Why its running properly in when flashing and not running in power off and on.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="nirmal_masilamani_0-1783316750067.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/391338i58BD46AB2ECE51AF/image-size/medium?v=v2&amp;amp;px=400" role="button" title="nirmal_masilamani_0-1783316750067.png" alt="nirmal_masilamani_0-1783316750067.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Jul 2026 11:42:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K358-multi-core-data-sharing/m-p/2391078#M59709</guid>
      <dc:creator>nirmal_masilamani</dc:creator>
      <dc:date>2026-07-06T11:42:18Z</dc:date>
    </item>
    <item>
      <title>Re: S32K358 multi core data sharing</title>
      <link>https://community.nxp.com/t5/S32K/S32K358-multi-core-data-sharing/m-p/2391231#M59714</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;Please support me in this.&lt;/P&gt;</description>
      <pubDate>Mon, 06 Jul 2026 17:41:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K358-multi-core-data-sharing/m-p/2391231#M59714</guid>
      <dc:creator>nirmal_masilamani</dc:creator>
      <dc:date>2026-07-06T17:41:18Z</dc:date>
    </item>
    <item>
      <title>Re: S32K358 multi core data sharing</title>
      <link>https://community.nxp.com/t5/S32K/S32K358-multi-core-data-sharing/m-p/2391280#M59717</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/233316"&gt;@nirmal_masilamani&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;But when i flash the code in debug flash, its running properly. With power on reset, core 0 is hanging.&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;This is most likely caused by ECC RAM error. Usually,&amp;nbsp;&lt;SPAN&gt;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.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;This is usually done in the startup code, before main.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;The section should be also configured as non-cacheable.&lt;/P&gt;
&lt;P&gt;Regarding your second issue:&amp;nbsp;&lt;STRONG&gt;but when i try to access it from timer ISR or OS task, core 0 going to hardfault.&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;You can try to trace back your hardfault.&amp;nbsp;Halt the core in the HardFault_Handler(), and find the SP value in the core registers:&amp;nbsp;&lt;A href="https://community.nxp.com/t5/S32K-Knowledge-Base/How-To-Debug-A-Fault-Exception-On-ARM-Cortex-M-V7M-MCU-S32K3XX/ta-p/1595570" target="_blank"&gt;How To Debug A Fault Exception On ARM Cortex-M(V7M) MCU(S32K3XX)&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;Best regards,&lt;BR /&gt;Julián&lt;/P&gt;</description>
      <pubDate>Mon, 06 Jul 2026 21:50:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K358-multi-core-data-sharing/m-p/2391280#M59717</guid>
      <dc:creator>Julián_AragónM</dc:creator>
      <dc:date>2026-07-06T21:50:25Z</dc:date>
    </item>
    <item>
      <title>Re: S32K358 multi core data sharing</title>
      <link>https://community.nxp.com/t5/S32K/S32K358-multi-core-data-sharing/m-p/2391393#M59723</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/200831"&gt;@Julián_AragónM&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Thank you for your quick response,&lt;/P&gt;&lt;P&gt;I check the startup files, SRAM Init is happening.&lt;/P&gt;&lt;P&gt;I have attached my startup files and linker files. Please support me to resolve this issue&lt;/P&gt;</description>
      <pubDate>Tue, 07 Jul 2026 04:13:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K358-multi-core-data-sharing/m-p/2391393#M59723</guid>
      <dc:creator>nirmal_masilamani</dc:creator>
      <dc:date>2026-07-07T04:13:44Z</dc:date>
    </item>
    <item>
      <title>Re: S32K358 multi core data sharing</title>
      <link>https://community.nxp.com/t5/S32K/S32K358-multi-core-data-sharing/m-p/2392430#M59753</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/200831"&gt;@Julián_AragónM&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Please support on this query. What i am missing here?&lt;/P&gt;</description>
      <pubDate>Wed, 08 Jul 2026 14:44:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K358-multi-core-data-sharing/m-p/2392430#M59753</guid>
      <dc:creator>nirmal_masilamani</dc:creator>
      <dc:date>2026-07-08T14:44:38Z</dc:date>
    </item>
    <item>
      <title>Re: S32K358 multi core data sharing</title>
      <link>https://community.nxp.com/t5/S32K/S32K358-multi-core-data-sharing/m-p/2393237#M59783</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/233316"&gt;@nirmal_masilamani&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;Are you able to access shared memory in main() after POR reset without debugger? Was the issue RAM initialization?&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;but when i try to access it from timer ISR or OS task, core 0 going to hardfault.&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;Were you able to identify the fault type as I mentioned in my previous reply?&lt;/P&gt;
&lt;P&gt;Have you also made sure the variable is placed in a non-cacheable area, or the cache is disabled?&lt;/P&gt;
&lt;P&gt;As suggestions:&lt;/P&gt;
&lt;P&gt;Keep volatile on core1Status and use __DMB()/__DSB() barriers on both the read (Core0) and write (Core1) sides.&lt;/P&gt;
&lt;P&gt;Your issue could also be caused by MPU configuration, if&amp;nbsp;MPU_ENABLE is defined, please call the MPU config before any ISR or OS task starts executing.&lt;/P&gt;
&lt;P&gt;You can refer to the following links:&amp;nbsp;&lt;A href="https://developer.arm.com/documentation/dui0646/c/Cortex-M7-Peripherals/Optional-Memory-Protection-Unit/MPU-Region-Attribute-and-Size-Register?lang=en" target="_blank"&gt;Arm Cortex-M7 Devices Generic User Guide r1p2&lt;/A&gt;&amp;nbsp;&amp;amp;&amp;nbsp;&lt;A href="https://docs.nxp.com/bundle/AN14715/page/topics/memory_protection_unit_mpu.html" target="_blank"&gt;AN14715: S32K3XX Hardware Resource Isolation and Protection&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;Best regards,&lt;BR /&gt;Julián&lt;/P&gt;</description>
      <pubDate>Thu, 09 Jul 2026 19:39:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K358-multi-core-data-sharing/m-p/2393237#M59783</guid>
      <dc:creator>Julián_AragónM</dc:creator>
      <dc:date>2026-07-09T19:39:30Z</dc:date>
    </item>
  </channel>
</rss>

