<?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: Firmware for LPC1767 is not updating using c# in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/Firmware-for-LPC1767-is-not-updating-using-c/m-p/938584#M37392</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for your reply, But where to execute GO command? because after writing operations to RAM and flash i can't use GO command to update LPC1767 micro controllers firmware.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 08 Oct 2019 13:16:21 GMT</pubDate>
    <dc:creator>bilalqureshi_ep</dc:creator>
    <dc:date>2019-10-08T13:16:21Z</dc:date>
    <item>
      <title>Firmware for LPC1767 is not updating using c#</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Firmware-for-LPC1767-is-not-updating-using-c/m-p/938581#M37389</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Hope everyone is fine, The issue what i am facing is that i have made a c# code for &lt;STRONG&gt;LPC1767&lt;/STRONG&gt; and basically what i wanted to do is to update the firmware for it. Yes this can be achieved using flash magic and other tools but that is not what i want.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Let me tell what i did in code step by step&lt;/P&gt;&lt;P&gt;1. I opened serial port&lt;/P&gt;&lt;P&gt;2. set all the parameters such as&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;serialport.StopBits = StopBits.One;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; serialport.Parity = Parity.None;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; serialport.ReadTimeout = 500;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; serialport.WriteTimeout = 500;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; serialport.BaudRate = 115200;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;//serialport.RtsEnable = true;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; //serialport.DtrEnable = true;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; serialport.ReadTimeout = 4000;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; serialport.WriteTimeout = 4000;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;3. Give ? get syncronized, give crystal frequency of 12000Mhz, get OK from LPC1767.&lt;/P&gt;&lt;P&gt;4. Get device detection id for LPC1767&lt;/P&gt;&lt;P&gt;5. &lt;STRONG&gt;prepare&lt;/STRONG&gt; and &lt;STRONG&gt;erase&lt;/STRONG&gt; flash from sector &lt;STRONG&gt;0 to 29&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;5. Then start writing in RAM basically&amp;nbsp;&lt;STRONG&gt;W 268435968 512\r&amp;nbsp;&lt;/STRONG&gt;Which gives 0 ISP response.&lt;/P&gt;&lt;P&gt;6. Write 512 bytes of UU encoded data with checksum that gives &lt;STRONG&gt;OK&lt;/STRONG&gt; back&lt;/P&gt;&lt;P&gt;7. Then same above command with&amp;nbsp;&lt;STRONG&gt;W 268436480 512\r&amp;nbsp;&lt;SPAN style="font-weight: 400;"&gt;Which gives 0 ISP response.&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN style="font-weight: 400;"&gt;&lt;SPAN&gt;8. Write 512 bytes of UU encoded data with checksum that gives &lt;/SPAN&gt;&lt;/SPAN&gt;OK &lt;SPAN style="font-weight: 400;"&gt;&lt;SPAN&gt;back&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN style="font-weight: 400;"&gt;&lt;SPAN&gt;9. The &lt;STRONG&gt;prepare&lt;/STRONG&gt; flash and &lt;STRONG&gt;copy&lt;/STRONG&gt; 1024 bytes to it&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;C&amp;nbsp; flashAddress 268435968 1024\r (flash address starts from last to 0 basically in reverse).&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;10.&amp;nbsp;&lt;/STRONG&gt;Step 5,6,7,8,9 is in loop and after that finally after last copy on flash.&lt;/P&gt;&lt;P&gt;11. I give &lt;STRONG&gt;Go command G 0 T\r&lt;/STRONG&gt; and in response i get 0 ISP response....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The issue is The firmware does not update itself with new one, so i had to use flash magic again to write a new firm ware for it to work.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-weight: 400;"&gt;&lt;STRONG&gt;Kindly guide me if i am doing some thing wrong here. I am trying to make it work since last 5 days. The code is in c#, i can post the code if wanted.&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-weight: 400;"&gt;1 thing more i sniffed the data that i get from flash magic and my Application. On screenshot, on &lt;STRONG&gt;left&amp;nbsp;side its flashmagic, whereas on right that is&amp;nbsp;mine&lt;/STRONG&gt;, i will also post the &lt;STRONG&gt;sniffed data in excel file from my application.&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-weight: 400;"&gt;Thank You,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-weight: 400;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-weight: 400;"&gt;M.Bilal&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Oct 2019 09:37:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Firmware-for-LPC1767-is-not-updating-using-c/m-p/938581#M37389</guid>
      <dc:creator>bilalqureshi_ep</dc:creator>
      <dc:date>2019-10-02T09:37:16Z</dc:date>
    </item>
    <item>
      <title>Re: Firmware for LPC1767 is not updating using c#</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Firmware-for-LPC1767-is-not-updating-using-c/m-p/938582#M37390</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have come to an understanding that &lt;STRONG&gt;Go command&lt;/STRONG&gt; works before any write operation to RAM and flash, but does not work after write operation in RAM and flash. but i is this even possible i am getting 0 isp response after every command and OK after write. Can someone help ?????????&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Oct 2019 17:23:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Firmware-for-LPC1767-is-not-updating-using-c/m-p/938582#M37390</guid>
      <dc:creator>bilalqureshi_ep</dc:creator>
      <dc:date>2019-10-03T17:23:10Z</dc:date>
    </item>
    <item>
      <title>Re: Firmware for LPC1767 is not updating using c#</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Firmware-for-LPC1767-is-not-updating-using-c/m-p/938583#M37391</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Muhammad,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the following process for update the MCU in ISP, this is also the process that follows the Flash Magic:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;To erase:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;-Unlock command&lt;/P&gt;&lt;P&gt;-Prepare Sector command&lt;/P&gt;&lt;P&gt;-Erase sector&amp;nbsp;&lt;SPAN&gt;command&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;To write:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;-Unlock&amp;nbsp;&lt;SPAN&gt;command&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;-Prepare Sector&amp;nbsp;&lt;SPAN&gt;command&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Loop x2:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;-Write Sector&amp;nbsp;&lt;SPAN&gt;command (512 bytes)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;-Payload package (45 bytes) * 11 + (rest of payload)&lt;/P&gt;&lt;P&gt;-Checksum&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Prepare sector for write command&lt;/P&gt;&lt;P&gt;-Copy RAM to Flash command&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The only thing that I miss between this process and yours is the unlock command. Did you do this before writing?&lt;/P&gt;&lt;P&gt;Also, I will check if the UU-encoding is being done correctly, is a little tricky to use this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know if this helps you.&lt;/P&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>Mon, 07 Oct 2019 19:31:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Firmware-for-LPC1767-is-not-updating-using-c/m-p/938583#M37391</guid>
      <dc:creator>Alexis_A</dc:creator>
      <dc:date>2019-10-07T19:31:45Z</dc:date>
    </item>
    <item>
      <title>Re: Firmware for LPC1767 is not updating using c#</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Firmware-for-LPC1767-is-not-updating-using-c/m-p/938584#M37392</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for your reply, But where to execute GO command? because after writing operations to RAM and flash i can't use GO command to update LPC1767 micro controllers firmware.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Oct 2019 13:16:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Firmware-for-LPC1767-is-not-updating-using-c/m-p/938584#M37392</guid>
      <dc:creator>bilalqureshi_ep</dc:creator>
      <dc:date>2019-10-08T13:16:21Z</dc:date>
    </item>
    <item>
      <title>Re: Firmware for LPC1767 is not updating using c#</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Firmware-for-LPC1767-is-not-updating-using-c/m-p/938585#M37393</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Muhammad,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you try using the unlock command before using the GO command? Before any sucession of command the unlock&amp;nbsp;is used to enable the be sure the reception is doing correctly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know if this helps you.&lt;/P&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>Thu, 10 Oct 2019 16:55:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Firmware-for-LPC1767-is-not-updating-using-c/m-p/938585#M37393</guid>
      <dc:creator>Alexis_A</dc:creator>
      <dc:date>2019-10-10T16:55:02Z</dc:date>
    </item>
  </channel>
</rss>

