<?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>S32KのトピックRe: how does write data to flash memory in s32k314?</title>
    <link>https://community.nxp.com/t5/S32K/how-does-write-data-to-flash-memory-in-s32k314/m-p/2206936#M54593</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/249289"&gt;@rlaxortn&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;1. Yes, this can be done through the linker file, however, I suggest going through the HSE Firmware and OTA presentation under "Documentation -&amp;gt; Secure Files" from &lt;A href="https://www.nxp.com/products/S32K3" target="_self"&gt;S32K3's product page&lt;/A&gt;. Silde 82 shows the&amp;nbsp;S32K3XX Memory Architecture, as well as FOTA overview through the A/B swap use case.&lt;/P&gt;
&lt;P&gt;2. Please refer to the community post shared below.&amp;nbsp;&lt;SPAN&gt;AB swap is performed by HSE service, so it's necessary to have AB swap version of HSE firmware installed.&amp;nbsp;&lt;A href="https://community.nxp.com/t5/S32K/s32k3-flash-swap-requirements/m-p/1920123/highlight/true#M38475" target="_blank"&gt;Solved: Re: s32k3 flash swap requirements? - NXP Community&lt;/A&gt;.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;3. You can use C40_Ip (low-level driver) flash interface or Mem_Infls (MCAL driver) for flash operations. There is &lt;A href="https://www.nxp.com/webapp/Download?colCode=AN13388&amp;amp;location=null" target="_self"&gt;AN13388&lt;/A&gt; which you can use as introduction.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;4. You can refer to the S32K3 OTA demo under &lt;A href="https://www.nxp.com/webapp/swlicensing/sso/downloadSoftware.sp?catid=SW32K3-REFSW-D" target="_self"&gt;S32K3 Reference Software package.&lt;/A&gt;&amp;nbsp;It can be downloaded by searching&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;"&lt;STRONG&gt;Automotive SW - S32K3 - OTA Demo&lt;/STRONG&gt;".&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Best regards,&lt;BR /&gt;Julián&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 18 Nov 2025 15:38:53 GMT</pubDate>
    <dc:creator>Julián_AragónM</dc:creator>
    <dc:date>2025-11-18T15:38:53Z</dc:date>
    <item>
      <title>how does write data to flash memory in s32k314?</title>
      <link>https://community.nxp.com/t5/S32K/how-does-write-data-to-flash-memory-in-s32k314/m-p/2206456#M54567</link>
      <description>&lt;P&gt;I am trying to develop a bootloader for the NXP S32K314. and s32ds IDE version is 3.6.1, RTD is 4.0.0.&lt;BR /&gt;From what I understand, I need to divide the internal flash memory into two separate regions: one for the bootloader and one for the application.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;1. If that is correct, how can I determine the bootloader region and the application region, and how do I allocate and separate those areas?I think this can be done through the linker (.ld) file, but I want to know exactly how the flash memory address ranges are organized.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;2.&amp;nbsp; how do I program the bootloader code into the bootloader region?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;3. how do I perform flash-writing operations on the S32K314?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;4. if you have bootloader source code example for writing flash memory, would i get?&lt;/P&gt;</description>
      <pubDate>Tue, 18 Nov 2025 05:36:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/how-does-write-data-to-flash-memory-in-s32k314/m-p/2206456#M54567</guid>
      <dc:creator>rlaxortn</dc:creator>
      <dc:date>2025-11-18T05:36:19Z</dc:date>
    </item>
    <item>
      <title>Re: how does write data to flash memory in s32k314?</title>
      <link>https://community.nxp.com/t5/S32K/how-does-write-data-to-flash-memory-in-s32k314/m-p/2206936#M54593</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/249289"&gt;@rlaxortn&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;1. Yes, this can be done through the linker file, however, I suggest going through the HSE Firmware and OTA presentation under "Documentation -&amp;gt; Secure Files" from &lt;A href="https://www.nxp.com/products/S32K3" target="_self"&gt;S32K3's product page&lt;/A&gt;. Silde 82 shows the&amp;nbsp;S32K3XX Memory Architecture, as well as FOTA overview through the A/B swap use case.&lt;/P&gt;
&lt;P&gt;2. Please refer to the community post shared below.&amp;nbsp;&lt;SPAN&gt;AB swap is performed by HSE service, so it's necessary to have AB swap version of HSE firmware installed.&amp;nbsp;&lt;A href="https://community.nxp.com/t5/S32K/s32k3-flash-swap-requirements/m-p/1920123/highlight/true#M38475" target="_blank"&gt;Solved: Re: s32k3 flash swap requirements? - NXP Community&lt;/A&gt;.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;3. You can use C40_Ip (low-level driver) flash interface or Mem_Infls (MCAL driver) for flash operations. There is &lt;A href="https://www.nxp.com/webapp/Download?colCode=AN13388&amp;amp;location=null" target="_self"&gt;AN13388&lt;/A&gt; which you can use as introduction.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;4. You can refer to the S32K3 OTA demo under &lt;A href="https://www.nxp.com/webapp/swlicensing/sso/downloadSoftware.sp?catid=SW32K3-REFSW-D" target="_self"&gt;S32K3 Reference Software package.&lt;/A&gt;&amp;nbsp;It can be downloaded by searching&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;"&lt;STRONG&gt;Automotive SW - S32K3 - OTA Demo&lt;/STRONG&gt;".&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Best regards,&lt;BR /&gt;Julián&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Nov 2025 15:38:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/how-does-write-data-to-flash-memory-in-s32k314/m-p/2206936#M54593</guid>
      <dc:creator>Julián_AragónM</dc:creator>
      <dc:date>2025-11-18T15:38:53Z</dc:date>
    </item>
    <item>
      <title>Re: how does write data to flash memory in s32k314?</title>
      <link>https://community.nxp.com/t5/S32K/how-does-write-data-to-flash-memory-in-s32k314/m-p/2207136#M54604</link>
      <description>&lt;P&gt;&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;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i have to develope a bootloader by low-level driver.&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. i included C40_IP. and do i need a Cache_IP driver for writing flash memory?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2. does s32k314 has a cache? so when i write data to flash memory, do i have to control cache memory?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;3. what is AB Swap of HSE firmware and OTA? would you explain about that?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Nov 2025 23:19:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/how-does-write-data-to-flash-memory-in-s32k314/m-p/2207136#M54604</guid>
      <dc:creator>rlaxortn</dc:creator>
      <dc:date>2025-11-18T23:19:23Z</dc:date>
    </item>
    <item>
      <title>Re: how does write data to flash memory in s32k314?</title>
      <link>https://community.nxp.com/t5/S32K/how-does-write-data-to-flash-memory-in-s32k314/m-p/2216987#M54651</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/249289"&gt;@rlaxortn&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;1. &amp;amp; 2. Yes. It's better to manage the cache coherency so the CPU does not read stale data. You can refer to the C40_Ip_Example provided by the RTD package; it shows how to initialize the driver, clear the sectors before E/W, and reads the data.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Julin_AragnM_0-1763594350125.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/366539iE5055E520B85F83C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Julin_AragnM_0-1763594350125.png" alt="Julin_AragnM_0-1763594350125.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Also, you can refer to chapter 4.1.55 (Parameter MemSynchronizeCache) from&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;RTD_MEM_43_INFLS_UM.pdf&amp;nbsp;&lt;/STRONG&gt;(MCAL layer of C40_Ip driver):&lt;/P&gt;
&lt;P&gt;...\S32DS\software\PlatformSDK_S32K3\RTD\Mem_43_INFLS_TS_T40D34M60I0R0\doc\&lt;/P&gt;
&lt;P&gt;3. A/B swap is HW assisted, managed by HSE firmware.&amp;nbsp;When OTA is enabled in the part, device flash is divided in 2&amp;nbsp;blocks.&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Active block, where the application code is located.&lt;/LI&gt;
&lt;LI&gt;Passive blocks, where the rollback image is located&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;You can find some information in the previous links I've shared, as well as this presentation:&amp;nbsp;&lt;A href="https://www.google.com/url?sa=t&amp;amp;rct=j&amp;amp;q=&amp;amp;esrc=s&amp;amp;source=web&amp;amp;cd=&amp;amp;ved=2ahUKEwjeysLDrv-QAxWzDEQIHb2QB5cQFnoECBsQAQ&amp;amp;url=https%3A%2F%2Fcommunity.nxp.com%2Fpwmxy87654%2Fattachments%2Fpwmxy87654%2FS32K%2540tkb%2F118%2F1%2FS32K3_OTA_AB_SWAP_Demostration.pdf&amp;amp;usg=AOvVaw3Je-2jQJz-2wSw8Wb1VdkH&amp;amp;opi=89978449" target="_self"&gt;S32K3 OTA AB SWAP DEMOSTRATION.&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;There is also the&amp;nbsp;&lt;A href="https://community.nxp.com/t5/S32K-Knowledge-Base/Unified-bootloader-Demo/ta-p/1423099" target="_blank"&gt;Unified bootloader Demo&lt;/A&gt;, which is a&amp;nbsp;&lt;SPAN&gt;UDS bootloader solution for S32K3xx, however it is provided as is with no further support.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;Best regards,&lt;BR /&gt;Julián&lt;/P&gt;</description>
      <pubDate>Wed, 19 Nov 2025 23:30:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/how-does-write-data-to-flash-memory-in-s32k314/m-p/2216987#M54651</guid>
      <dc:creator>Julián_AragónM</dc:creator>
      <dc:date>2025-11-19T23:30:11Z</dc:date>
    </item>
  </channel>
</rss>

