<?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: How to Flash new program using GPRS module with FTP method? in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/How-to-Flash-new-program-using-GPRS-module-with-FTP-method/m-p/969896#M38400</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Athmesh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I found a pretty similar implementation using a Ymodem but for the LPC546xx MCU. Check the link &lt;A href="https://www.nxp.com/products/processors-and-microcontrollers/arm-microcontrollers/general-purpose-mcus/lpc54000-cortex-m4-/power-efficient-microcontrollers-mcus-with-advanced-peripherals-based-on-arm-cortex-m4-core:LPC546XX?tab=Documentation_Tab"&gt;here&lt;/A&gt;&amp;nbsp;and look for the&lt;EM&gt;&amp;nbsp;LPC5460x UART Secondary Bootloader using YModem&lt;/EM&gt; document.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;BR /&gt;Alexis Andalon&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 06 Nov 2019 17:30:00 GMT</pubDate>
    <dc:creator>Alexis_A</dc:creator>
    <dc:date>2019-11-06T17:30:00Z</dc:date>
    <item>
      <title>How to Flash new program using GPRS module with FTP method?</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/How-to-Flash-new-program-using-GPRS-module-with-FTP-method/m-p/969890#M38394</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm working on LPC1754, I'm using FTP to download the binary file.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I would like to know is:&lt;/P&gt;&lt;P&gt;1. How to load the code to the main memory?&lt;/P&gt;&lt;P&gt;2. Can I load the new program stored in SPI flash to the main memory?&lt;/P&gt;&lt;P&gt;3. Should I use Xmodem, Ymodem or Zmodem protocol to load the new program?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; a. if so how to do CRC checking?&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;Please provide me an application note if there's any. Your response will be helpful.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Athmesh Nandakumar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 26 Oct 2019 05:07:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/How-to-Flash-new-program-using-GPRS-module-with-FTP-method/m-p/969890#M38394</guid>
      <dc:creator>athmesh_n</dc:creator>
      <dc:date>2019-10-26T05:07:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to Flash new program using GPRS module with FTP method?</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/How-to-Flash-new-program-using-GPRS-module-with-FTP-method/m-p/969891#M38395</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Athmesh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unfortunately there isn't any example to do this using FTP method, the MCU has the capability of ISP programming through UART, SPI and I2C, you can find more information in the&amp;nbsp;Chapter 32: LPC176x/5x Flash memory interface and&lt;BR /&gt;programming&amp;nbsp;in the user guide.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also there's examples of Bootloader SPI/I2C that could help you implement this:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;A href="https://www.nxp.com/docs/en/application-note/AN11258.zip"&gt;AN11258&lt;/A&gt;&amp;nbsp;- I2C&lt;/LI&gt;&lt;LI&gt;&lt;A href="https://www.nxp.com/docs/en/application-note/AN11257.zip"&gt;AN11257&lt;/A&gt;&amp;nbsp;- SPI&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Alexis Andalon&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Oct 2019 17:19:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/How-to-Flash-new-program-using-GPRS-module-with-FTP-method/m-p/969891#M38395</guid>
      <dc:creator>Alexis_A</dc:creator>
      <dc:date>2019-10-30T17:19:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to Flash new program using GPRS module with FTP method?</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/How-to-Flash-new-program-using-GPRS-module-with-FTP-method/m-p/969892#M38396</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A _jive_internal="true" data-id="344069" data-objecttype="3" data-orig-content="Alexis Andalon" data-type="person" href="https://community.nxp.com/people/alexisandalon"&gt;Alexis Andalon&lt;/A&gt;‌,&lt;/P&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;P&gt;&lt;/P&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;P&gt;I've worked on FTP and used the UART to download the data to the on-chip flash of LPC1754. All I'm left is with Bootloader. The program should automatically load the new program flashed on to the on-chip.&amp;nbsp;&lt;/P&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;P&gt;The normal procedure is by Resetting the chip. I would like to know how the Bootloader calls the new firmware from a different location.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Nov 2019 10:11:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/How-to-Flash-new-program-using-GPRS-module-with-FTP-method/m-p/969892#M38396</guid>
      <dc:creator>athmesh_n</dc:creator>
      <dc:date>2019-11-04T10:11:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to Flash new program using GPRS module with FTP method?</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/How-to-Flash-new-program-using-GPRS-module-with-FTP-method/m-p/969893#M38397</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Athmesh,&lt;/P&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;P&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;P&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;P&gt;This is&amp;nbsp;a code found in the MCUBoot but the same should work for your application:&lt;/P&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;P&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;PRE class="language-c line-numbers"&gt;&lt;CODE&gt;&lt;SPAN class="token function"&gt;Disable_peripherals_used&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;


&lt;SPAN class="comment token"&gt;// we need to ensure the values we are using are not stored on the previous stack&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;static&lt;/SPAN&gt; uint32_t s_stackPointer &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;0&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
s_stackPointer &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; stackPointer&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;static&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;void&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;*&lt;/SPAN&gt;farewellBootloader&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="keyword token"&gt;void&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;0&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
farewellBootloader &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="keyword token"&gt;void&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;*&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="keyword token"&gt;void&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;applicationAddress&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;

&lt;SPAN class="comment token"&gt;// Set the VTOR to the application vector table address.&lt;/SPAN&gt;
VTOR &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;uint32_t&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;APP_VECTOR_TABLE&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;

&lt;SPAN class="comment token"&gt;// Set stack pointers to the application stack pointer.&lt;/SPAN&gt;
&lt;SPAN class="token function"&gt;__set_MSP&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;s_stackPointer&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="token function"&gt;__set_PSP&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;s_stackPointer&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;

&lt;SPAN class="comment token"&gt;// Jump to the application.&lt;/SPAN&gt;
&lt;SPAN class="token function"&gt;farewellBootloader&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;P&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;P&gt;Alexis Andalon&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Nov 2019 18:41:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/How-to-Flash-new-program-using-GPRS-module-with-FTP-method/m-p/969893#M38397</guid>
      <dc:creator>Alexis_A</dc:creator>
      <dc:date>2019-11-04T18:41:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to Flash new program using GPRS module with FTP method?</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/How-to-Flash-new-program-using-GPRS-module-with-FTP-method/m-p/969894#M38398</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Alexis,&lt;/P&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;P&gt;Very thanks for the reply!&lt;/P&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;P&gt;&lt;/P&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;P&gt;I'll check this method for bootloader!&lt;/P&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;P&gt;&lt;/P&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;P&gt;Athmesh Nandakumar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Nov 2019 10:48:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/How-to-Flash-new-program-using-GPRS-module-with-FTP-method/m-p/969894#M38398</guid>
      <dc:creator>athmesh_n</dc:creator>
      <dc:date>2019-11-05T10:48:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to Flash new program using GPRS module with FTP method?</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/How-to-Flash-new-program-using-GPRS-module-with-FTP-method/m-p/969895#M38399</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/alexisandalon"&gt;alexisandalon&lt;/A&gt;‌,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please send an application note for reference! An example source code will be helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards&lt;/P&gt;&lt;P&gt;Athmesh Nandakumar &amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Nov 2019 05:36:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/How-to-Flash-new-program-using-GPRS-module-with-FTP-method/m-p/969895#M38399</guid>
      <dc:creator>athmesh_n</dc:creator>
      <dc:date>2019-11-06T05:36:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to Flash new program using GPRS module with FTP method?</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/How-to-Flash-new-program-using-GPRS-module-with-FTP-method/m-p/969896#M38400</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Athmesh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I found a pretty similar implementation using a Ymodem but for the LPC546xx MCU. Check the link &lt;A href="https://www.nxp.com/products/processors-and-microcontrollers/arm-microcontrollers/general-purpose-mcus/lpc54000-cortex-m4-/power-efficient-microcontrollers-mcus-with-advanced-peripherals-based-on-arm-cortex-m4-core:LPC546XX?tab=Documentation_Tab"&gt;here&lt;/A&gt;&amp;nbsp;and look for the&lt;EM&gt;&amp;nbsp;LPC5460x UART Secondary Bootloader using YModem&lt;/EM&gt; document.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;BR /&gt;Alexis Andalon&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Nov 2019 17:30:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/How-to-Flash-new-program-using-GPRS-module-with-FTP-method/m-p/969896#M38400</guid>
      <dc:creator>Alexis_A</dc:creator>
      <dc:date>2019-11-06T17:30:00Z</dc:date>
    </item>
  </channel>
</rss>

