<?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: ISP Command manual bugs in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/ISP-Command-manual-bugs/m-p/612317#M23945</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Actually a good question. &amp;nbsp;One that would be nice to know there's a difference! &amp;nbsp;I got these replies:&lt;/P&gt;&lt;P&gt;Echo On:&lt;BR /&gt;Send: 'K'4B 0D 0A &lt;BR /&gt;Recv: 'K'4B 0D 0A '0'30 0D 0A '1'31 0D 0A '1'31 '3'33 0D 0A&lt;/P&gt;&lt;P&gt;Echo Off:&lt;BR /&gt;Send: 'K'4B 0D 0A &lt;BR /&gt;Recv: '0'30 0D 0A '1'31 0D 0A '1'31 '3'33 0D 0A&lt;/P&gt;&lt;P&gt;Problem is, neither of these match the reply the user manual says I should be getting, which is a simple Command reply plus the two bytes for Major and Minor version followed by the CRLF (25.6.1.12 (user manual): "CMD_SUCCESS followed by 2 bytes of boot code version number in ASCII format.&amp;nbsp;It is to be interpreted as &amp;lt;byte1(Major)&amp;gt;.&amp;lt;byte0(Minor)&amp;gt;.")&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, in answer, I don't know. &amp;nbsp;It looks like Major is 1 and Minor is 3. &amp;nbsp;But the part "'1'31 0D 0A" doesn't make any sense. &amp;nbsp;It's like it replied to the request twice. &amp;nbsp;But that would mean the first '1' is an Invalid command reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or, do I interpret that as Major: 1 Minor: 13 ?&lt;/P&gt;&lt;P&gt;-Mark&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 02 Mar 2017 17:03:36 GMT</pubDate>
    <dc:creator>mark_stokes</dc:creator>
    <dc:date>2017-03-02T17:03:36Z</dc:date>
    <item>
      <title>ISP Command manual bugs</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/ISP-Command-manual-bugs/m-p/612315#M23943</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've written a Windows program that will&amp;nbsp;download firmware code from .hex (converted to bin) and into our device. &amp;nbsp;In doing this project, I noticed these errors? in the manual. &amp;nbsp;Not sure they are errors, but wanted to put them down to see what the experts think.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;Writing to RAM w/ ISP/IAP command ('W')&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;1. When using the “Write to RAM” Command, the datasheet (UM10800.pdf) shows on page 372 under section 25.6.1.4 that the proper sequence is:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;1. Write&lt;/SPAN&gt;&amp;nbsp;command to uC ("W [Address] [length]")&lt;/P&gt;&lt;P&gt;2. uC replies with result of command request (CMD_SUCCESS hopefully)&lt;/P&gt;&lt;P&gt;3.&amp;nbsp;Write the data to be written to the RAM&lt;/P&gt;&lt;P&gt;4.&amp;nbsp;When complete, the uC will reply with “OK\r\n”. &amp;nbsp;&amp;lt;-- This does not happen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;When using this command, it is fairly clear that I’m using the command correctly (by not waiting for “OK” since it never happens) because when I issue the next command it works just fine.&amp;nbsp; Indicating to me that the internal state machine is in the proper state.&amp;nbsp; Namely, the ready_to_receive_command or whatever and not in the still_accepting_RAM_data state, etc.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;When restarting after the code is completely copied and CRC checked (yes, including FLASH from 0x00 to 0x01FF), I issue the Go command. &amp;nbsp;The datasheet says I can't use an address lower than 0x0200. &amp;nbsp;This is incorrect as I am issuing the command "GO 0 T" and it's working just fine. &amp;nbsp;Is this ok? &amp;nbsp;Do I need to write a little booter program to put in flash that loads the stack pointer and then updates the PC to the value at 0x0004? &amp;nbsp;Seems like a lot of work if the actual command seems to work. &amp;nbsp;I have read in other places on this forum where this seems to work for some uC's and not for others. &amp;nbsp;Was there an update?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;-Mark&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Mar 2017 17:36:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/ISP-Command-manual-bugs/m-p/612315#M23943</guid>
      <dc:creator>mark_stokes</dc:creator>
      <dc:date>2017-03-01T17:36:35Z</dc:date>
    </item>
    <item>
      <title>Re: ISP Command manual bugs</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/ISP-Command-manual-bugs/m-p/612316#M23944</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV style="color: #000000; font-family: 微软雅黑; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 21px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff;"&gt;&lt;SPAN style="background-color: inherit; font-family: 微软雅黑,sans-serif;"&gt;Hi Mark,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV style="color: #000000; font-family: 微软雅黑; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 21px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff;"&gt;&lt;SPAN style="background-color: inherit; font-family: 微软雅黑,sans-serif;"&gt;Thank you for your interest in NXP Semiconductor products and for the opportunity to serve you.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV style="color: #000000; font-family: 微软雅黑; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 21px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff;"&gt;I need to know the more information.&lt;/DIV&gt;&lt;DIV style="color: #000000; font-family: 微软雅黑; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 21px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff;"&gt;I was wondering if you can tell me the Boot code version via Read Boot code version command.&lt;/DIV&gt;&lt;DIV style="color: #000000; font-family: 微软雅黑; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 21px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff;"&gt;I'm looking forward to your reply.&lt;/DIV&gt;&lt;DIV style="color: #000000; font-family: 微软雅黑; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 21px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff;"&gt;&lt;SPAN style="color: #000000; font-family: 微软雅黑, sans-serif; font-size: 14px; font-style: normal; font-weight: normal; text-align: left; background-color: #ffffff;"&gt;Have a great day.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;P&gt;Ping&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Mar 2017 05:51:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/ISP-Command-manual-bugs/m-p/612316#M23944</guid>
      <dc:creator>jeremyzhou</dc:creator>
      <dc:date>2017-03-02T05:51:08Z</dc:date>
    </item>
    <item>
      <title>Re: ISP Command manual bugs</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/ISP-Command-manual-bugs/m-p/612317#M23945</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Actually a good question. &amp;nbsp;One that would be nice to know there's a difference! &amp;nbsp;I got these replies:&lt;/P&gt;&lt;P&gt;Echo On:&lt;BR /&gt;Send: 'K'4B 0D 0A &lt;BR /&gt;Recv: 'K'4B 0D 0A '0'30 0D 0A '1'31 0D 0A '1'31 '3'33 0D 0A&lt;/P&gt;&lt;P&gt;Echo Off:&lt;BR /&gt;Send: 'K'4B 0D 0A &lt;BR /&gt;Recv: '0'30 0D 0A '1'31 0D 0A '1'31 '3'33 0D 0A&lt;/P&gt;&lt;P&gt;Problem is, neither of these match the reply the user manual says I should be getting, which is a simple Command reply plus the two bytes for Major and Minor version followed by the CRLF (25.6.1.12 (user manual): "CMD_SUCCESS followed by 2 bytes of boot code version number in ASCII format.&amp;nbsp;It is to be interpreted as &amp;lt;byte1(Major)&amp;gt;.&amp;lt;byte0(Minor)&amp;gt;.")&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, in answer, I don't know. &amp;nbsp;It looks like Major is 1 and Minor is 3. &amp;nbsp;But the part "'1'31 0D 0A" doesn't make any sense. &amp;nbsp;It's like it replied to the request twice. &amp;nbsp;But that would mean the first '1' is an Invalid command reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or, do I interpret that as Major: 1 Minor: 13 ?&lt;/P&gt;&lt;P&gt;-Mark&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Mar 2017 17:03:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/ISP-Command-manual-bugs/m-p/612317#M23945</guid>
      <dc:creator>mark_stokes</dc:creator>
      <dc:date>2017-03-02T17:03:36Z</dc:date>
    </item>
    <item>
      <title>Re: ISP Command manual bugs</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/ISP-Command-manual-bugs/m-p/612318#M23946</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="background-color: inherit; font-family: 微软雅黑,sans-serif;"&gt;Hi Mark,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: inherit; font-family: 微软雅黑,sans-serif;"&gt;Thanks for your reply.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: inherit; font-family: 微软雅黑,sans-serif;"&gt;I'd like to recommend you to get the information about the MCU via Flash Magic tool, please go to download the tool via the link below.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: inherit; font-family: 微软雅黑,sans-serif;"&gt;&lt;A class="link-titled" href="http://www.flashmagictool.com/" title="http://www.flashmagictool.com/"&gt;Flash Magic - Welcome&lt;/A&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: inherit; font-family: 微软雅黑,sans-serif;"&gt;You can get the these information via following sequence.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: inherit; font-family: 微软雅黑,sans-serif;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="屏幕截图.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/15349i6D6D06F0C544376E/image-size/large?v=v2&amp;amp;px=999" role="button" title="屏幕截图.jpg" alt="屏幕截图.jpg" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="text-align: center;"&gt;&lt;SPAN style="background-color: inherit; font-family: 微软雅黑,sans-serif;"&gt;Fig 1&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="text-align: center;"&gt;&lt;SPAN style="background-color: inherit; font-family: 微软雅黑,sans-serif;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="2017-03-03_16-14-25.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/15397i18D924F2BCFC4415/image-size/large?v=v2&amp;amp;px=999" role="button" title="2017-03-03_16-14-25.jpg" alt="2017-03-03_16-14-25.jpg" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="text-align: center;"&gt;&lt;SPAN style="background-color: inherit; font-family: 微软雅黑,sans-serif;"&gt;Fig 2&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="text-align: left;"&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Ping&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Mar 2017 08:28:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/ISP-Command-manual-bugs/m-p/612318#M23946</guid>
      <dc:creator>jeremyzhou</dc:creator>
      <dc:date>2017-03-03T08:28:26Z</dc:date>
    </item>
    <item>
      <title>Re: ISP Command manual bugs</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/ISP-Command-manual-bugs/m-p/612319#M23947</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;An even more confusing result:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="FlashMagicSig.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/16060i46879D804A7EAABD/image-size/large?v=v2&amp;amp;px=999" role="button" title="FlashMagicSig.jpg" alt="FlashMagicSig.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;-Mark&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Mar 2017 14:30:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/ISP-Command-manual-bugs/m-p/612319#M23947</guid>
      <dc:creator>mark_stokes</dc:creator>
      <dc:date>2017-03-03T14:30:31Z</dc:date>
    </item>
    <item>
      <title>Re: ISP Command manual bugs</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/ISP-Command-manual-bugs/m-p/612320#M23948</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mark,&lt;/P&gt;&lt;P&gt;I have seen exactly what you have seen during development of a mechanism to program the LPC over UART from another microcontroller using the ISP interface. &amp;nbsp;I asked a similiar question a while back here:&amp;nbsp;&lt;A href="https://community.nxp.com/thread/421967"&gt;LPC 822 ISP Write to RAM echoes correctly, but OK response never received!&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I do believe it's a bug that needs to be added to the errata on the datasheet.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regarding your second question, my understanding is that on boot PC initializes to address 0, and the built in bootloader runs a checksum against data contained within the user code memory boundaries. &amp;nbsp;If it fails, or there is nothing there, the LPC enters ISP mode. &amp;nbsp;I would think this would be the preferred method of restarting the LPC if you don't have the ability to flip the reset pin externally.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ben&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Mar 2017 21:18:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/ISP-Command-manual-bugs/m-p/612320#M23948</guid>
      <dc:creator>schoeler</dc:creator>
      <dc:date>2017-03-03T21:18:16Z</dc:date>
    </item>
  </channel>
</rss>

