<?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: Programming for FS32K144HFT0MLHT</title>
    <link>https://community.nxp.com/t5/S32K/Programming-for-FS32K144HFT0MLHT/m-p/965294#M5438</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Daniel,&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;I am a colleague of Jack, we are responsible for this case together.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;In &lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Step 3, we execute SWD mass erase. When the operation is done&lt;SPAN&gt;&amp;nbsp;0x40F is 0xFE, others register is 0xFF.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp;Guess this is the reason why&amp;nbsp;&lt;SPAN style="background-color: #ffffff;"&gt;0x408 - 0x40F can't be programmed.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&lt;SPAN style="background-color: #ffffff; "&gt;&amp;nbsp; &amp;nbsp;But currently, we could not execute Erase Sector Command via SWD.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&lt;SPAN style="background-color: #ffffff; "&gt;&amp;nbsp; &amp;nbsp;Are we only able to execute&amp;nbsp;Erase Sector Command with boot code in MCU?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 01 Aug 2019 09:55:25 GMT</pubDate>
    <dc:creator>jun_chen</dc:creator>
    <dc:date>2019-08-01T09:55:25Z</dc:date>
    <item>
      <title>Programming for FS32K144HFT0MLHT</title>
      <link>https://community.nxp.com/t5/S32K/Programming-for-FS32K144HFT0MLHT/m-p/965288#M5432</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sir,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good day.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is IC programmer manufacturer.&lt;/P&gt;&lt;P&gt;Recently we support this MPN(&lt;SPAN&gt;FS32K144HFT0MLHT&lt;/SPAN&gt;) with SWD and IAP(boot code).&lt;/P&gt;&lt;P&gt;We face a issue that the content 0x7F is written at address 0x40D, and then programmer read the contents are blank(0xFF) at address 0x400 to 0x7FFFF after power cycle. if we change the content from 0x7F to 0xFF, and the content are correct at whole flash after power cycle. i think whether we have to set up the register in the initialize process and avoid the issue is happened.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Left side is content in software buffer ; Right side is content of chip.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Dediware燒的IC, 再次Verify會報錯.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/89586i00CD9DFDB70BD247/image-size/large?v=v2&amp;amp;px=999" role="button" title="Dediware燒的IC, 再次Verify會報錯.png" alt="Dediware燒的IC, 再次Verify會報錯.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Jun 2019 15:26:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Programming-for-FS32K144HFT0MLHT/m-p/965288#M5432</guid>
      <dc:creator>jackhsu</dc:creator>
      <dc:date>2019-06-24T15:26:12Z</dc:date>
    </item>
    <item>
      <title>Re: Programming for FS32K144HFT0MLHT</title>
      <link>https://community.nxp.com/t5/S32K/Programming-for-FS32K144HFT0MLHT/m-p/965289#M5433</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jack,&lt;/P&gt;&lt;P&gt;Was the 0x400-0x40F phrase erased before the programming?&lt;/P&gt;&lt;P&gt;Why do you&amp;nbsp;program the 0x40D byte to 0x7F?&lt;/P&gt;&lt;P&gt;This is the FOPT byte that is loaded to the Flash Option Register (FOPT) register at reset and the 4-7 bits are reserved.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/90025i648D595F4F9C770D/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_2.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/90026i09D09CD3FF170353/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_2.png" alt="pastedImage_2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;BR, Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Jul 2019 09:16:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Programming-for-FS32K144HFT0MLHT/m-p/965289#M5433</guid>
      <dc:creator>danielmartynek</dc:creator>
      <dc:date>2019-07-01T09:16:08Z</dc:date>
    </item>
    <item>
      <title>Re: Programming for FS32K144HFT0MLHT</title>
      <link>https://community.nxp.com/t5/S32K/Programming-for-FS32K144HFT0MLHT/m-p/965290#M5434</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;Hi Daniel,&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;Thanks for your reply.&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;Was the 0x400-0x40F phrase erased before the programming? =&amp;gt; Yes, it is eased before the programming.&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;Why do you&amp;nbsp;program the 0x40D byte to 0x7F? =&amp;gt; it is customer's file, we don't know why they need to write 0x7F.&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;We ever used JLink to program this file as below, and it work well, and we have no idea why the issue is happened on my programming platform.&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;Need your help to support this case. Thank you.&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;A class="link-titled" href="https://eip.dediprog.com/ftp/download.php?path=dediprog/FS32K.hex" title="https://eip.dediprog.com/ftp/download.php?path=dediprog/FS32K.hex"&gt;https://eip.dediprog.com/ftp/download.php?path=dediprog/FS32K.hex&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Jul 2019 09:33:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Programming-for-FS32K144HFT0MLHT/m-p/965290#M5434</guid>
      <dc:creator>jackhsu</dc:creator>
      <dc:date>2019-07-01T09:33:58Z</dc:date>
    </item>
    <item>
      <title>Re: Programming for FS32K144HFT0MLHT</title>
      <link>https://community.nxp.com/t5/S32K/Programming-for-FS32K144HFT0MLHT/m-p/965291#M5435</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jack,&lt;/P&gt;&lt;P&gt;You wrote: "... and then programmer reads the contents are blank(0xFF) at address 0x400 to 0x7FFFF &lt;SPAN style="text-decoration: underline;"&gt;after power cycle&lt;/SPAN&gt;". If the 0x40C address was 0xFF, the MCU would end up secured and the access to the flash would not be possible without another mass-ease operation.&amp;nbsp;Please see the description of FSEC&amp;nbsp; (36.4.4.1.4 Flash Security Register (FSEC), in the RM. rev10).&lt;/P&gt;&lt;P&gt;I don't have any problem loading the .hex file either using OpenSDA.&lt;/P&gt;&lt;P&gt;What are the programming steps&amp;nbsp; that you are doing?&lt;/P&gt;&lt;P&gt;How do you ease the MCU?&lt;/P&gt;&lt;P&gt;Please refer to&amp;nbsp;&lt;A href="https://www.nxp.com/docs/en/application-note/AN12130.pdf"&gt;AN12130&amp;nbsp;Production Flash Programming Best&amp;nbsp;Practices for S32K1xx MCUs&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;BR, Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Jul 2019 11:34:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Programming-for-FS32K144HFT0MLHT/m-p/965291#M5435</guid>
      <dc:creator>danielmartynek</dc:creator>
      <dc:date>2019-07-03T11:34:42Z</dc:date>
    </item>
    <item>
      <title>Re: Programming for FS32K144HFT0MLHT</title>
      <link>https://community.nxp.com/t5/S32K/Programming-for-FS32K144HFT0MLHT/m-p/965292#M5436</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Daniel,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry for late reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry for making confuse.&lt;/P&gt;&lt;P&gt;if programmer write the 0x7F/0x7D at address 0x40D (flash), the programmer reads the all 0xFF at address 0x400 ~ flash end address after power cycle. if programmer write the 0xFF at address 0x40D (flash), the programmer can read correct content from whole flash.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;We use IAP method with SWD during programming, and these is the programming procedure.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;Step 1. Power on&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;Step 2. Read SWD ID&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;Step 3. Execute erase command via SWD&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;Step 4. Load IAP code to RAM and booted.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;Step 5. Send the data to IAP to write it to chip.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;Step 6. Read data from chip to do verify via SWD.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;Step 7. Power off&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;Our engineer even tried to use SWD with no IAP, and the situation is same.&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;We made the IAP code is refer to IAR sample code.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;There is my questions.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;1. Do we need to set up the register in the initialize procedure or program procedure?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;2. Do we need to set up the register in the IAP code?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;3. Or could you help to provide the IAP code and how to communicate it for programming.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;Thank you.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jul 2019 11:01:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Programming-for-FS32K144HFT0MLHT/m-p/965292#M5436</guid>
      <dc:creator>jackhsu</dc:creator>
      <dc:date>2019-07-23T11:01:44Z</dc:date>
    </item>
    <item>
      <title>Re: Programming for FS32K144HFT0MLHT</title>
      <link>https://community.nxp.com/t5/S32K/Programming-for-FS32K144HFT0MLHT/m-p/965293#M5437</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jack,&lt;/P&gt;&lt;P&gt;First, could you please be more specific about Step 3?&lt;/P&gt;&lt;P&gt;What command you are using to erase the MCU?&lt;/P&gt;&lt;P&gt;Once the MCU is erased, is the phrase at 0x408 - 0x40F really erased?&lt;/P&gt;&lt;P&gt;I think that the only explanation is that the phrase is not erased.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;BR, Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Jul 2019 12:06:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Programming-for-FS32K144HFT0MLHT/m-p/965293#M5437</guid>
      <dc:creator>danielmartynek</dc:creator>
      <dc:date>2019-07-26T12:06:38Z</dc:date>
    </item>
    <item>
      <title>Re: Programming for FS32K144HFT0MLHT</title>
      <link>https://community.nxp.com/t5/S32K/Programming-for-FS32K144HFT0MLHT/m-p/965294#M5438</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Daniel,&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;I am a colleague of Jack, we are responsible for this case together.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;In &lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Step 3, we execute SWD mass erase. When the operation is done&lt;SPAN&gt;&amp;nbsp;0x40F is 0xFE, others register is 0xFF.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp;Guess this is the reason why&amp;nbsp;&lt;SPAN style="background-color: #ffffff;"&gt;0x408 - 0x40F can't be programmed.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&lt;SPAN style="background-color: #ffffff; "&gt;&amp;nbsp; &amp;nbsp;But currently, we could not execute Erase Sector Command via SWD.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&lt;SPAN style="background-color: #ffffff; "&gt;&amp;nbsp; &amp;nbsp;Are we only able to execute&amp;nbsp;Erase Sector Command with boot code in MCU?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Aug 2019 09:55:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Programming-for-FS32K144HFT0MLHT/m-p/965294#M5438</guid>
      <dc:creator>jun_chen</dc:creator>
      <dc:date>2019-08-01T09:55:25Z</dc:date>
    </item>
    <item>
      <title>Re: Programming for FS32K144HFT0MLHT</title>
      <link>https://community.nxp.com/t5/S32K/Programming-for-FS32K144HFT0MLHT/m-p/965295#M5439</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&amp;nbsp;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Daniel,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help to support this case.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We have to fix the issue quickly because our customer is waiting our solution for production. Thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Aug 2019 08:04:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Programming-for-FS32K144HFT0MLHT/m-p/965295#M5439</guid>
      <dc:creator>jackhsu</dc:creator>
      <dc:date>2019-08-02T08:04:06Z</dc:date>
    </item>
    <item>
      <title>Re: Programming for FS32K144HFT0MLHT</title>
      <link>https://community.nxp.com/t5/S32K/Programming-for-FS32K144HFT0MLHT/m-p/965296#M5440</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&amp;nbsp;&lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/jackhsu"&gt;jackhsu&lt;/A&gt;,&amp;nbsp;&lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/jun.chen@dediprog.com"&gt;jun.chen@dediprog.com&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As you can see in &lt;A href="https://www.nxp.com/docs/en/application-note/AN12130.pdf"&gt;AN12130&lt;/A&gt;, Section&amp;nbsp;3.2 Erasing flash, during the Mass Erase operations, the&amp;nbsp;flash configuration field is programmed to 0xFE (unsecure). Then, you cannot write the same phrase again without erasing it first.&lt;/P&gt;&lt;P&gt;But you can use all the&amp;nbsp;FTFC commands, including Erase Sector, via SWD by accessing the FTFC registers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Aug 2019 08:28:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Programming-for-FS32K144HFT0MLHT/m-p/965296#M5440</guid>
      <dc:creator>danielmartynek</dc:creator>
      <dc:date>2019-08-02T08:28:32Z</dc:date>
    </item>
  </channel>
</rss>

