<?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>LPC MicrocontrollersのトピックRe: Build a LPC54S018J4M spifi bootloader into sram to programming internal 4M flash</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/Build-a-LPC54S018J4M-spifi-bootloader-into-sram-to-programming/m-p/1425919#M48162</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;About using bootloader on lpc54s018J4M, how about using method as blow thread:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.nxp.com/t5/LPC-Microcontrollers-Knowledge/Use-blhost-to-program-erase-LPC540xxM-LPC54S0xxM-flash/ta-p/1105629" target="_blank"&gt;https://community.nxp.com/t5/LPC-Microcontrollers-Knowledge/Use-blhost-to-program-erase-LPC540xxM-LPC54S0xxM-flash/ta-p/1105629&lt;/A&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;BR&lt;/P&gt;
&lt;P&gt;Alice&lt;/P&gt;</description>
    <pubDate>Thu, 10 Mar 2022 07:44:24 GMT</pubDate>
    <dc:creator>Alice_Yang</dc:creator>
    <dc:date>2022-03-10T07:44:24Z</dc:date>
    <item>
      <title>Build a LPC54S018J4M spifi bootloader into sram to programming internal 4M flash</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Build-a-LPC54S018J4M-spifi-bootloader-into-sram-to-programming/m-p/1423878#M48127</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am going to build a bootloader, would like to program internal spifi 4M flash in LPC54S018J4MET180E. My developement environment is IAR. J-LINK (SWD). IC version is 1B.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I found the errata of&amp;nbsp;&lt;A href="https://www.zlgmcu.com/data/upload/file/Utilitymcu/LPC540xx-kanwu.pdf" target="_blank"&gt;https://www.zlgmcu.com/data/upload/file/Utilitymcu/LPC540xx-kanwu.pdf&lt;/A&gt;&amp;nbsp;.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="springc_7-1646649687703.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/172634i2AE1D3B9D81917BA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="springc_7-1646649687703.png" alt="springc_7-1646649687703.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I means it should be implement programming functions by self, right?!&amp;nbsp;&lt;/P&gt;&lt;P&gt;So, I get the example code package from NXP from as&amp;nbsp;SDK_2_11_0_LPC54S018J4M.zip.&amp;nbsp;&lt;/P&gt;&lt;P&gt;There is a example code in \SDK_2_11_0_LPC54S018J4M\boards\lpcxpresso54s018m\driver_examples\spifi\polling_transfer\.&amp;nbsp;&lt;/P&gt;&lt;P&gt;spifi_polling_transfer.c seems a good example for execute programming/ erasing internal flash.&lt;/P&gt;&lt;P&gt;But, I try it and still have problem. Need to call help from you ~~&lt;/P&gt;&lt;P&gt;I am make sure the SPIFI command is set corrcot to 0x40080000 SPIFI command registers. and also include startup_LPC54S018M.s to initial W25Q32JV without XIP_IMAGE &amp;amp;&amp;nbsp;ADD_CRC define.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Question:&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. Base on&amp;nbsp;SDK_2_11_0_LPC54S018J4M package&amp;nbsp;spifi_polling_transfer.c main (). how many files has to include? (ex. iar_lib_power.a,&amp;nbsp;&amp;nbsp;startup_LPC54S018M.s ... ?)&lt;/P&gt;&lt;P&gt;2. How to correct to config icf for ram_bootloader?&lt;/P&gt;&lt;P&gt;3. How to set base option of project for this?&lt;/P&gt;&lt;P&gt;4. After SPIFI_INIT (), the memory show as below:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="springc_2-1646648196067.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/172621i1973C82C52FBE529/image-size/medium?v=v2&amp;amp;px=400" role="button" title="springc_2-1646648196067.png" alt="springc_2-1646648196067.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="springc_3-1646648208862.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/172622i4860D51FDC24AB21/image-size/medium?v=v2&amp;amp;px=400" role="button" title="springc_3-1646648208862.png" alt="springc_3-1646648208862.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="springc_4-1646648221089.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/172624iFC73165EC93C1AE4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="springc_4-1646648221089.png" alt="springc_4-1646648221089.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="springc_5-1646648232661.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/172625i6D1F8D2BE187E7DC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="springc_5-1646648232661.png" alt="springc_5-1646648232661.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="springc_6-1646648245886.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/172626i4B197BCAC7A1D16D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="springc_6-1646648245886.png" alt="springc_6-1646648245886.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;It means already copy 0x3000000 rom code 512 byte to 0x0 sramx region. my bootloader image also download to sram0 0x20000000. but, flash 0x10000000 shows all 0s. 0x40080014 always un-readable. Erase/ Write flash do nothing. What is the trouble on this?&amp;nbsp;&lt;/P&gt;&lt;P&gt;5. One more strange, If I set Project\Option\J-Link\Setup\ reset by "Core". I can do my function well, once implement J-Flash to read or write function. B&lt;SPAN&gt;ut set "Reset Pin", "Core and periperals" &amp;amp; "Normal" are still not work. I guess some of peripherals parameters is not set or incorrect, like as PLL or clock speed not match, setting sequency, or somehow. could some one help to give a hand?!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Extra information:&lt;/P&gt;&lt;P&gt;J-Flash (J-Link) is workable (Read/ Write/ Erase) at my board base on this project.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="springc_0-1646647692466.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/172616iDC76635FBF74F9C6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="springc_0-1646647692466.png" alt="springc_0-1646647692466.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="springc_1-1646647840435.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/172619i68C2869F7B3813F4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="springc_1-1646647840435.png" alt="springc_1-1646647840435.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 07 Mar 2022 10:52:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Build-a-LPC54S018J4M-spifi-bootloader-into-sram-to-programming/m-p/1423878#M48127</guid>
      <dc:creator>springc</dc:creator>
      <dc:date>2022-03-07T10:52:10Z</dc:date>
    </item>
    <item>
      <title>Re: Build a LPC54S018J4M spifi bootloader into sram to programming internal 4M flash</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Build-a-LPC54S018J4M-spifi-bootloader-into-sram-to-programming/m-p/1425919#M48162</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;About using bootloader on lpc54s018J4M, how about using method as blow thread:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.nxp.com/t5/LPC-Microcontrollers-Knowledge/Use-blhost-to-program-erase-LPC540xxM-LPC54S0xxM-flash/ta-p/1105629" target="_blank"&gt;https://community.nxp.com/t5/LPC-Microcontrollers-Knowledge/Use-blhost-to-program-erase-LPC540xxM-LPC54S0xxM-flash/ta-p/1105629&lt;/A&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;BR&lt;/P&gt;
&lt;P&gt;Alice&lt;/P&gt;</description>
      <pubDate>Thu, 10 Mar 2022 07:44:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Build-a-LPC54S018J4M-spifi-bootloader-into-sram-to-programming/m-p/1425919#M48162</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2022-03-10T07:44:24Z</dc:date>
    </item>
    <item>
      <title>Re: Build a LPC54S018J4M spifi bootloader into sram to programming internal 4M flash</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Build-a-LPC54S018J4M-spifi-bootloader-into-sram-to-programming/m-p/1425969#M48165</link>
      <description>&lt;P&gt;Hi, Alice,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Download flashtloader is no problem by J-link tools. Thanks for give me an other ways to tranfer flashloader to ram.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I found access internal Flash, also need to initial external flash (IOCON).&amp;nbsp;&lt;/P&gt;&lt;P&gt;So, now I can access the 0x10000000 correctly.&lt;/P&gt;&lt;P&gt;Thanks for your response ~~&lt;/P&gt;</description>
      <pubDate>Thu, 10 Mar 2022 08:25:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Build-a-LPC54S018J4M-spifi-bootloader-into-sram-to-programming/m-p/1425969#M48165</guid>
      <dc:creator>springc</dc:creator>
      <dc:date>2022-03-10T08:25:14Z</dc:date>
    </item>
    <item>
      <title>Re: Build a LPC54S018J4M spifi bootloader into sram to programming internal 4M flash</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Build-a-LPC54S018J4M-spifi-bootloader-into-sram-to-programming/m-p/1426760#M48184</link>
      <description>&lt;P&gt;Welcome!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Mar 2022 08:50:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Build-a-LPC54S018J4M-spifi-bootloader-into-sram-to-programming/m-p/1426760#M48184</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2022-03-11T08:50:01Z</dc:date>
    </item>
  </channel>
</rss>

