<?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: SPIFI with LPC1857 in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/SPIFI-with-LPC1857/m-p/1392701#M47501</link>
    <description>&lt;P&gt;Hey Everyone,&lt;/P&gt;&lt;P&gt;Finally, We could solve the problem. Here is the complete solution If you are struggling with loading hex files onto SPIFI using ISP.&lt;/P&gt;&lt;P&gt;Hardware Requirements:&lt;/P&gt;&lt;P&gt;You Just need Tx(P2_0), Rx(P2_1) and Gnd connected to your ISP Programmer.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Software Requirements:&lt;/P&gt;&lt;P&gt;You need Two hex files, one is end application hex file which you want to put into SPIFI say application.hex and then the bootloader hex file and obviously the Flash Magic(Latest recommended)&lt;/P&gt;&lt;P&gt;Steps:&lt;/P&gt;&lt;P&gt;1. To modify the boot loader, open the example given in&amp;nbsp;C:\Program Files (x86)\Flash Magic\Bootloaders\External Memory\S25FL129P\LPC1857-Keil and then modify FlashPrg.c descriptor to specific values needed(mostly Sector Size, bytes to program at once).&amp;nbsp; BaudRate = 57600 at both places recommended as we observed data loss for greater baudrates. modifying description is optional.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="Suresh1994_0-1640698871793.png" style="width: 565px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/166369iBF34E9E4560A19AA/image-dimensions/565x154?v=v2" width="565" height="154" role="button" title="Suresh1994_0-1640698871793.png" alt="Suresh1994_0-1640698871793.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;2. Change the Output options as you wish and you get a bootloader hex file to be placed on the location&amp;nbsp;C:\Program Files (x86)\Flash Magic\Bootloaders.&lt;/P&gt;&lt;P&gt;3. Now the important step to generate application hex file with adrress mapping to&amp;nbsp;0x8000 0000 to 0x87FF FFFF but &lt;STRONG&gt;NOT&amp;nbsp;&lt;/STRONG&gt;0x1400 0000 to 0x17FF FFFF. Its because of the above descriptor and description from the Manual&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="Suresh1994_1-1640699226178.png" style="width: 559px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/166371iC394236150198A33/image-dimensions/559x84?v=v2" width="559" height="84" role="button" title="Suresh1994_1-1640699226178.png" alt="Suresh1994_1-1640699226178.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;4. Once both hex files are ready, Open Flash Magic, Change the device to External Memory-&amp;gt; UART. You should see your bootloader hex file there and choose it.&amp;nbsp; Choose the application hex file too.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="Suresh1994_3-1640699571173.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/166373i3DC2AF9A79E03D70/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Suresh1994_3-1640699571173.png" alt="Suresh1994_3-1640699571173.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;5. Click start and first Erasing happens and then programming. Because the LPC18xx series support XIP, the program should start itself on reset.&lt;/P&gt;&lt;P&gt;Hope this have helped you and have a great day.&lt;/P&gt;&lt;P&gt;To some users, this is not a place where you learn free and charge someone to acheive the same. Kindly have some Ethics and support the &lt;STRONG&gt;OPEN&lt;/STRONG&gt; Community.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Keep smiling and spread the Knowledge.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Suresh&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>Tue, 28 Dec 2021 14:04:18 GMT</pubDate>
    <dc:creator>Suresh1994</dc:creator>
    <dc:date>2021-12-28T14:04:18Z</dc:date>
    <item>
      <title>SPIFI with LPC1857</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/SPIFI-with-LPC1857/m-p/1351028#M46647</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Dear Concern,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;We are trying to interface WinBond W25R128JV with LPC1857. We have successfully achieved programming the same using JTAG and OpenOCD but we are facing problems in programming the same with flash magic UART and bootloader. As we looked onto this forum we have made all the necessary changes to the best of our knowledge but in vain.&lt;/SPAN&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;We have taken the LPC1857 Keil example and modified the sector size from 256KB to 4 KB that is relevant to present SPIFI. We have cross-checked the addressing values with the IRAM and IROM on the Keil "options for target" We have generated a hex file and placed it in the folder and it appears as valid. Now we used hardware pins P2.9, 2.8, 1.2, 1.1 as low. We have made ISP pin P2.7 as low and reset the board.&lt;/LI&gt;&lt;LI&gt;It goes into ISP mode and we have tried to use program an application and the bootloader we have created but Flash Magic stops abruptly and closes itself or it gives the error message "Bootloader in RAM is not executing(2)"&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;SPAN&gt;We have few doubts about the above setup actually.&lt;/SPAN&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;We are using Just U0 RX, Tx, and gnd to the interface. After thorough research, by seeing Keil mcb schematics we found that RTS and DTR signals are being used but not in any other Schematics of Keil MCB boards. Do we really require it?? If yes, what is the role?&lt;/LI&gt;&lt;LI&gt;Can you briefly explain the steps to be followed on hardware and software to successfully achieve.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;SPAN&gt;Awaiting for your reply&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;R Suresh&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Oct 2021 09:31:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/SPIFI-with-LPC1857/m-p/1351028#M46647</guid>
      <dc:creator>Suresh1994</dc:creator>
      <dc:date>2021-10-06T09:31:42Z</dc:date>
    </item>
    <item>
      <title>Re: SPIFI with LPC1857</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/SPIFI-with-LPC1857/m-p/1353637#M46722</link>
      <description>&lt;P&gt;Hello &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/179497"&gt;@Suresh1994&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Just to have more info related to your ticket, are you including the sections of memory that are in the User Manual, chapter 5,&amp;nbsp; 5.4.5.7 RAM used by ISP and 5.4.5.8 RAM used by IAP command handler.&lt;/P&gt;
&lt;P&gt;Also in the Table 19 you will find the Winbond supported.&lt;/P&gt;
&lt;P&gt;User Manual&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.nxp.com/webapp/Download?colCode=UM10430" target="_blank"&gt;https://www.nxp.com/webapp/Download?colCode=UM10430&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Oct 2021 16:20:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/SPIFI-with-LPC1857/m-p/1353637#M46722</guid>
      <dc:creator>nxf77486</dc:creator>
      <dc:date>2021-10-11T16:20:34Z</dc:date>
    </item>
    <item>
      <title>Re: SPIFI with LPC1857</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/SPIFI-with-LPC1857/m-p/1353946#M46734</link>
      <description>&lt;P&gt;Dear&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/190340"&gt;@nxf77486&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;We have taken the sample code given by Flash Magic External bootloader section code(attached). The flashprg.c for given S25L129P example is as follows. We have just modified the programmable sector size for&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Suresh1994_1-1634018988658.png" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/158841iADB68DCA0F312945/image-size/large?v=v2&amp;amp;px=999" role="button" title="Suresh1994_1-1634018988658.png" alt="Suresh1994_1-1634018988658.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;To answer your question, No we are not using the specified RAM space. you can see that being highlighted in the screenshot.&lt;/P&gt;&lt;P&gt;Kindly look into the attached code and guide accordingly.&lt;/P&gt;</description>
      <pubDate>Tue, 12 Oct 2021 06:44:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/SPIFI-with-LPC1857/m-p/1353946#M46734</guid>
      <dc:creator>Suresh1994</dc:creator>
      <dc:date>2021-10-12T06:44:55Z</dc:date>
    </item>
    <item>
      <title>Re: SPIFI with LPC1857</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/SPIFI-with-LPC1857/m-p/1354853#M46768</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/179497"&gt;@Suresh1994&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;We have also faced similar issue, but we were able to solve the problem.&lt;/P&gt;&lt;P&gt;You can contact us for further details.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 22 Feb 2023 05:53:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/SPIFI-with-LPC1857/m-p/1354853#M46768</guid>
      <dc:creator>Anonymous-III</dc:creator>
      <dc:date>2023-02-22T05:53:37Z</dc:date>
    </item>
    <item>
      <title>Re: SPIFI with LPC1857</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/SPIFI-with-LPC1857/m-p/1392701#M47501</link>
      <description>&lt;P&gt;Hey Everyone,&lt;/P&gt;&lt;P&gt;Finally, We could solve the problem. Here is the complete solution If you are struggling with loading hex files onto SPIFI using ISP.&lt;/P&gt;&lt;P&gt;Hardware Requirements:&lt;/P&gt;&lt;P&gt;You Just need Tx(P2_0), Rx(P2_1) and Gnd connected to your ISP Programmer.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Software Requirements:&lt;/P&gt;&lt;P&gt;You need Two hex files, one is end application hex file which you want to put into SPIFI say application.hex and then the bootloader hex file and obviously the Flash Magic(Latest recommended)&lt;/P&gt;&lt;P&gt;Steps:&lt;/P&gt;&lt;P&gt;1. To modify the boot loader, open the example given in&amp;nbsp;C:\Program Files (x86)\Flash Magic\Bootloaders\External Memory\S25FL129P\LPC1857-Keil and then modify FlashPrg.c descriptor to specific values needed(mostly Sector Size, bytes to program at once).&amp;nbsp; BaudRate = 57600 at both places recommended as we observed data loss for greater baudrates. modifying description is optional.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="Suresh1994_0-1640698871793.png" style="width: 565px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/166369iBF34E9E4560A19AA/image-dimensions/565x154?v=v2" width="565" height="154" role="button" title="Suresh1994_0-1640698871793.png" alt="Suresh1994_0-1640698871793.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;2. Change the Output options as you wish and you get a bootloader hex file to be placed on the location&amp;nbsp;C:\Program Files (x86)\Flash Magic\Bootloaders.&lt;/P&gt;&lt;P&gt;3. Now the important step to generate application hex file with adrress mapping to&amp;nbsp;0x8000 0000 to 0x87FF FFFF but &lt;STRONG&gt;NOT&amp;nbsp;&lt;/STRONG&gt;0x1400 0000 to 0x17FF FFFF. Its because of the above descriptor and description from the Manual&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="Suresh1994_1-1640699226178.png" style="width: 559px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/166371iC394236150198A33/image-dimensions/559x84?v=v2" width="559" height="84" role="button" title="Suresh1994_1-1640699226178.png" alt="Suresh1994_1-1640699226178.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;4. Once both hex files are ready, Open Flash Magic, Change the device to External Memory-&amp;gt; UART. You should see your bootloader hex file there and choose it.&amp;nbsp; Choose the application hex file too.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="Suresh1994_3-1640699571173.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/166373i3DC2AF9A79E03D70/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Suresh1994_3-1640699571173.png" alt="Suresh1994_3-1640699571173.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;5. Click start and first Erasing happens and then programming. Because the LPC18xx series support XIP, the program should start itself on reset.&lt;/P&gt;&lt;P&gt;Hope this have helped you and have a great day.&lt;/P&gt;&lt;P&gt;To some users, this is not a place where you learn free and charge someone to acheive the same. Kindly have some Ethics and support the &lt;STRONG&gt;OPEN&lt;/STRONG&gt; Community.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Keep smiling and spread the Knowledge.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Suresh&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>Tue, 28 Dec 2021 14:04:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/SPIFI-with-LPC1857/m-p/1392701#M47501</guid>
      <dc:creator>Suresh1994</dc:creator>
      <dc:date>2021-12-28T14:04:18Z</dc:date>
    </item>
  </channel>
</rss>

