<?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: Using Flex NvM as Pflash in S32K144 in S32K</title>
    <link>https://community.nxp.com/t5/S32K/Using-Flex-NvM-as-Pflash-in-S32K144/m-p/1206115#M9462</link>
    <description>&lt;P&gt;Hello Kamran,&lt;/P&gt;
&lt;P&gt;Please take a look at AN12218 S32K1xx Bootloader – Application note, it has the bootloader code in DFlash.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.nxp.com/docs/en/application-note/AN12218.pdf" target="_blank"&gt;https://www.nxp.com/docs/en/application-note/AN12218.pdf&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.nxp.com/docs/en/application-note-software/AN12218SW.zip" target="_blank"&gt;https://www.nxp.com/docs/en/application-note-software/AN12218SW.zip&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;A1.&lt;/P&gt;
&lt;P&gt;If the whole FlexNVM or just a part of it is used as DFlash, you can execute code from it.&lt;/P&gt;
&lt;P&gt;A2.&lt;/P&gt;
&lt;P&gt;I just tried the 0x0F0C value at it correctly partitioned the FlexNVM for 64MB of DFlash.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="danielmartynek_0-1609759683584.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/133844i22A19AFFF8225A68/image-size/medium?v=v2&amp;amp;px=400" role="button" title="danielmartynek_0-1609759683584.png" alt="danielmartynek_0-1609759683584.png" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;danielmartynek_0-1609759683584.png&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="danielmartynek_1-1609759718322.png" style="width: 531px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/133845i165C5B862AF1CDA6/image-dimensions/531x256?v=v2" width="531" height="256" role="button" title="danielmartynek_1-1609759718322.png" alt="danielmartynek_1-1609759718322.png" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;danielmartynek_1-1609759718322.png&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Daniel&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 04 Jan 2021 11:29:40 GMT</pubDate>
    <dc:creator>danielmartynek</dc:creator>
    <dc:date>2021-01-04T11:29:40Z</dc:date>
    <item>
      <title>Using Flex NvM as Pflash in S32K144</title>
      <link>https://community.nxp.com/t5/S32K/Using-Flex-NvM-as-Pflash-in-S32K144/m-p/1204042#M9383</link>
      <description>&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am currently trying to place my bootloader code written for S32K144 in the FlexNvM area and use FlexNvM as P-flash.&lt;/P&gt;&lt;P&gt;Linker file snapshot below:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Kamran_0-1608796184115.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/133484i17FF6EA8DBE1B90F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Kamran_0-1608796184115.png" alt="Kamran_0-1608796184115.png" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Kamran_0-1608796184115.png&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;When I try to flash my code using "GDB PEMicro interface debugging" I get errors when I start Debugging session&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Question 1:&lt;/STRONG&gt;&amp;nbsp;Is it a correct approach to make complete 64KB of FlexNvM as D-flash to run code from it?&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Question 2:&lt;/STRONG&gt; What should be the partition value that needs to be filled in advance debug option?&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Note:&lt;/STRONG&gt; I also tried "Emergency Kinetics Device recovery by full chip erase" but it didn't help.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Edit1:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Screenshot below shows the advance options set (0x0F0C: Set complete flexNvM as Dflash)&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Kamran_0-1608816063018.png" style="width: 410px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/133490iB03C88BE1D3BE321/image-dimensions/410x503?v=v2" width="410" height="503" role="button" title="Kamran_0-1608816063018.png" alt="Kamran_0-1608816063018.png" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Kamran_0-1608816063018.png&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;After I did this change, I am now getting the following error:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Kamran_1-1608816161557.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/133491i72E993BDC9A2E116/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Kamran_1-1608816161557.png" alt="Kamran_1-1608816161557.png" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Kamran_1-1608816161557.png&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The main function of my bootloader is placed at 0x10000730 location.&lt;/P&gt;&lt;P&gt;The interrupt table is is Pflash at 0x000000, so the controller is trying to jump from pflash to flexNvM.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Am I doing something wrong or am I missing something?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please help!&lt;/P&gt;&lt;P&gt;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/37795"&gt;@lukaszadrapa&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 01 Jan 2021 06:50:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Using-Flex-NvM-as-Pflash-in-S32K144/m-p/1204042#M9383</guid>
      <dc:creator>Kamran</dc:creator>
      <dc:date>2021-01-01T06:50:08Z</dc:date>
    </item>
    <item>
      <title>Re: Using Flex NvM as Pflash in S32K144</title>
      <link>https://community.nxp.com/t5/S32K/Using-Flex-NvM-as-Pflash-in-S32K144/m-p/1206115#M9462</link>
      <description>&lt;P&gt;Hello Kamran,&lt;/P&gt;
&lt;P&gt;Please take a look at AN12218 S32K1xx Bootloader – Application note, it has the bootloader code in DFlash.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.nxp.com/docs/en/application-note/AN12218.pdf" target="_blank"&gt;https://www.nxp.com/docs/en/application-note/AN12218.pdf&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.nxp.com/docs/en/application-note-software/AN12218SW.zip" target="_blank"&gt;https://www.nxp.com/docs/en/application-note-software/AN12218SW.zip&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;A1.&lt;/P&gt;
&lt;P&gt;If the whole FlexNVM or just a part of it is used as DFlash, you can execute code from it.&lt;/P&gt;
&lt;P&gt;A2.&lt;/P&gt;
&lt;P&gt;I just tried the 0x0F0C value at it correctly partitioned the FlexNVM for 64MB of DFlash.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="danielmartynek_0-1609759683584.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/133844i22A19AFFF8225A68/image-size/medium?v=v2&amp;amp;px=400" role="button" title="danielmartynek_0-1609759683584.png" alt="danielmartynek_0-1609759683584.png" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;danielmartynek_0-1609759683584.png&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="danielmartynek_1-1609759718322.png" style="width: 531px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/133845i165C5B862AF1CDA6/image-dimensions/531x256?v=v2" width="531" height="256" role="button" title="danielmartynek_1-1609759718322.png" alt="danielmartynek_1-1609759718322.png" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;danielmartynek_1-1609759718322.png&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Daniel&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 04 Jan 2021 11:29:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Using-Flex-NvM-as-Pflash-in-S32K144/m-p/1206115#M9462</guid>
      <dc:creator>danielmartynek</dc:creator>
      <dc:date>2021-01-04T11:29:40Z</dc:date>
    </item>
    <item>
      <title>Re: Using Flex NvM as Pflash in S32K144</title>
      <link>https://community.nxp.com/t5/S32K/Using-Flex-NvM-as-Pflash-in-S32K144/m-p/1206521#M9473</link>
      <description>&lt;P&gt;Hello Daniel,&lt;/P&gt;&lt;P&gt;Thanks for the support.&lt;/P&gt;&lt;P&gt;Now when I tried value 0x0F0C with PEmicro Debugger I get the following error:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Kamran_0-1609825972140.png" style="width: 492px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/133906iE84FA534113DA09D/image-dimensions/492x214?v=v2" width="492" height="214" role="button" title="Kamran_0-1609825972140.png" alt="Kamran_0-1609825972140.png" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Kamran_0-1609825972140.png&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I even tried Emergency Kinetics recovery but still I get the same error.&lt;/P&gt;&lt;P&gt;Now I am not able to flash any code on the Pflash.&lt;/P&gt;&lt;P&gt;One weird thing that I noticed in that there is no data at address 0x00 also this address is shown as false for reading and writing.&lt;/P&gt;&lt;P&gt;Whereas my output file starts from 0x00 address, can this be an issue that is causing the flashing process to fail?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Kamran_1-1609826452720.png" style="width: 538px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/133907iFA5644A2961A40DF/image-dimensions/538x350?v=v2" width="538" height="350" role="button" title="Kamran_1-1609826452720.png" alt="Kamran_1-1609826452720.png" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Kamran_1-1609826452720.png&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/t5/user/viewprofilepage/user-id/37795" target="_blank"&gt;@lukaszadrapa&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Kamran Pathan&lt;/P&gt;</description>
      <pubDate>Fri, 08 Jan 2021 04:59:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Using-Flex-NvM-as-Pflash-in-S32K144/m-p/1206521#M9473</guid>
      <dc:creator>Kamran</dc:creator>
      <dc:date>2021-01-08T04:59:39Z</dc:date>
    </item>
    <item>
      <title>Re: Using Flex NvM as Pflash in S32K144</title>
      <link>https://community.nxp.com/t5/S32K/Using-Flex-NvM-as-Pflash-in-S32K144/m-p/1208978#M9534</link>
      <description>&lt;P&gt;Hi Kamran,&lt;/P&gt;
&lt;P&gt;It seems like you configured the programmer to preserve the DFlash while you were loading the bootloader into the DFlash block.&lt;/P&gt;
&lt;P&gt;This is the screenshot you sent.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="danielmartynek_0-1610113790264.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/134343iAB4FE822738EDCC6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="danielmartynek_0-1610113790264.png" alt="danielmartynek_0-1610113790264.png" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;danielmartynek_0-1610113790264.png&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;This option can be used later once the bootloader is already in DFlash and you want to preserve it.&lt;/P&gt;
&lt;P&gt;Please try it without that.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you,&lt;/P&gt;
&lt;P&gt;Daniel&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Jan 2021 13:51:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Using-Flex-NvM-as-Pflash-in-S32K144/m-p/1208978#M9534</guid>
      <dc:creator>danielmartynek</dc:creator>
      <dc:date>2021-01-08T13:51:47Z</dc:date>
    </item>
  </channel>
</rss>

