<?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 LPC11C24 Can Bootloader Assistance in LPCXpresso IDE</title>
    <link>https://community.nxp.com/t5/LPCXpresso-IDE/LPC11C24-Can-Bootloader-Assistance/m-p/595134#M31258</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by jwall@hra.com on Mon Sep 12 14:57:14 MST 2011&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Send me the codes!!!!, &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Kidding&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;A few questions about forming the canopen sequence&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;to write to RAM spot 0x1000,0800&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I would send&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[67d]&amp;nbsp; [0x23 0x15&amp;nbsp; 0x50 0x00 0x00 0x08 0x00 0x10]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;then the data&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[67d]&amp;nbsp; [0x40 0x50&amp;nbsp; 0x1f 0x01 d3 d2 d1 d0]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;is this well formed?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Do I need to perform the unlock command before?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jun 2016 21:33:30 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-15T21:33:30Z</dc:date>
    <item>
      <title>LPC11C24 Can Bootloader Assistance</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/LPC11C24-Can-Bootloader-Assistance/m-p/595134#M31258</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by jwall@hra.com on Mon Sep 12 14:57:14 MST 2011&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Send me the codes!!!!, &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Kidding&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;A few questions about forming the canopen sequence&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;to write to RAM spot 0x1000,0800&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I would send&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[67d]&amp;nbsp; [0x23 0x15&amp;nbsp; 0x50 0x00 0x00 0x08 0x00 0x10]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;then the data&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[67d]&amp;nbsp; [0x40 0x50&amp;nbsp; 0x1f 0x01 d3 d2 d1 d0]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;is this well formed?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Do I need to perform the unlock command before?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 21:33:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/LPC11C24-Can-Bootloader-Assistance/m-p/595134#M31258</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T21:33:30Z</dc:date>
    </item>
    <item>
      <title>Re: LPC11C24 Can Bootloader Assistance</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/LPC11C24-Can-Bootloader-Assistance/m-p/595135#M31259</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Ex-Zero on Thu Sep 15 11:24:30 MST 2011&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;#1 Your format is correct, if you send this messages with 100kbit/s, little indian :) (=Intel) format your should receive an answer (if the addressed bootloader is working).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;#2 You need Unlock {0x2B,0x5000,0x00,0x5A,0x5A,0x00,0x00} before you use Flash Write, Erase or Go commands (See UM).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;#3 [67d] [0x23 0x15 0x50 0x00 0x00 0x08 0x00 0x10] is setting your RAM write address to 0x10000800&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;#4 [67d] [0x40 0x50 0x1f 0x01 d3 d2 d1 d0] is a reading command. I prefer to use segmented download (See CiA Draft Standard 301 :confused:):[INDENT]{0x21,0x1F50,0x01,0x00,0x00,0x00,0x00} is initiating SDO Download and&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;{0x00, 7 data bytes} is writing (first) 7 data bytes&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;{0x10, 7 data bytes} is writing (next) 7 data bytes&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;{0x00, 7 data bytes} is writing (next) 7 data bytes&amp;nbsp;&amp;nbsp;&amp;nbsp; ...&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[/INDENT]So with toggling bit 4 of command byte you can transmit 7 bytes per message :eek:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Setting bit 0 of command byte indicates the last message (last command = 0x00 or 0x11).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;#5&amp;nbsp; To check if CAN and CAN bootloader is working, a simple&amp;nbsp; part ID request is useful:[INDENT]{0x40,0x1018,0x02,0x00,0x00,0x00,0x00} &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; This request should be&amp;nbsp; answered with the correct PART ID (here: LPC11C14)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;825938 -&amp;gt; 67D-08:40 18 10 02 00 00 00 00&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;825940 &amp;lt;- 5FD-08:43 18 10 02 2B 10 40 14[/INDENT]&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 21:33:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/LPC11C24-Can-Bootloader-Assistance/m-p/595135#M31259</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T21:33:31Z</dc:date>
    </item>
    <item>
      <title>Re: LPC11C24 Can Bootloader Assistance</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/LPC11C24-Can-Bootloader-Assistance/m-p/595136#M31260</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by mc8ain on Thu Nov 19 07:02:58 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;So with the segmented download it should be possible to write as many bytes as I want into RAM? Or just the listed 3 messages? I am trying to write 4k into the RAM (on a LPC11C24) with starting address 0x1000 0400, but it get stuck at 0x1000 0F4B where I do not get a CAN response anymore. When reading back the RAM I am able to see that the writes to RAM were successful up to 0x1000 0F1B. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So is there somewhere a limitation? I would like to write a full sector (4k) into RAM and to write it later into the FLASH.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I intended to use 0x1000 0400 up to 0x1000 1400 for the download process, to not interfere with "26.4.8 RAM used by ISP command handler (for LPC11Cxx parts)".&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for help.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 21:33:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/LPC11C24-Can-Bootloader-Assistance/m-p/595136#M31260</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T21:33:31Z</dc:date>
    </item>
    <item>
      <title>Re: LPC11C24 Can Bootloader Assistance</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/LPC11C24-Can-Bootloader-Assistance/m-p/595137#M31261</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by R2D2 on Thu Nov 19 09:19:59 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: mc8ain&lt;/STRONG&gt;&lt;BR /&gt;So with the segmented download it should be possible to write as many bytes as I want into RAM?&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Yes&amp;nbsp; :) &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: mc8ain&lt;/STRONG&gt;&lt;BR /&gt;Or just the listed 3 messages?&lt;/SPAN&gt;&lt;HR /&gt;&lt;SPAN&gt;&amp;nbsp; :D &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: mc8ain&lt;/STRONG&gt;&lt;BR /&gt;So is there somewhere a limitation? I would like to write a full sector (4k) into RAM and to write it later into the FLASH.&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;There's no limitation, that's the usual procedure...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: mc8ain&lt;/STRONG&gt;&lt;BR /&gt;... but it get stuck at 0x1000 0F4B...&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;No idea what you mean with 'get stuck'&amp;nbsp; :~ &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Could be useful to post a CAN-Log...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 21:33:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/LPC11C24-Can-Bootloader-Assistance/m-p/595137#M31261</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T21:33:32Z</dc:date>
    </item>
    <item>
      <title>Re: LPC11C24 Can Bootloader Assistance</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/LPC11C24-Can-Bootloader-Assistance/m-p/595138#M31262</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by mc8ain on Thu Nov 19 15:30:50 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;The LPC11C14 stops giving me responses to my write commands (or my PEAK gets somehow stuck, but it's always at the same address). So in the end, I changed my code now to write only 1K at time to RAM, then I copy it to FLASH and I start over with the next 1k... ;-)&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 21:33:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/LPC11C24-Can-Bootloader-Assistance/m-p/595138#M31262</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T21:33:33Z</dc:date>
    </item>
    <item>
      <title>Re: LPC11C24 Can Bootloader Assistance</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/LPC11C24-Can-Bootloader-Assistance/m-p/595139#M31263</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by MikeSimmonds on Thu Nov 19 15:42:05 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;The obvious thing to check is the ram buffer size(s), what is needed by the boot loader.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there, in fact, 4KB free where you are sending the block.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It would seem not and the NXP part is getting an address or hard fault (perhaps) and &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;herefor cannot reply to your controlling CAN node.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If it only has a 4KB block [See UM; I don't know the specifics] the fail address is&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;probably trying to overwrite the stack?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Mike.&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 21:33:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/LPC11C24-Can-Bootloader-Assistance/m-p/595139#M31263</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T21:33:33Z</dc:date>
    </item>
    <item>
      <title>Re: LPC11C24 Can Bootloader Assistance</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/LPC11C24-Can-Bootloader-Assistance/m-p/595140#M31264</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by R2D2 on Thu Nov 19 16:02:33 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: mc8ain&lt;/STRONG&gt;&lt;BR /&gt;The LPC11C14 stops giving me responses to my write commands (or my PEAK gets somehow stuck, but it's always at the same address). So in the end, I changed my code now to write only 1K at time to RAM, then I copy it to FLASH and I start over with the next 1k... &lt;SPAN class="lia-unicode-emoji" title=":winking_face:"&gt;&lt;LI-EMOJI id="lia_winking-face" title=":winking_face:"&gt;&lt;/LI-EMOJI&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Without Log I don't know what you are doing (wrong) in detail...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Anyway, writing a complete sector is here working since years with:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD bgcolor="#cacaca"&gt; &lt;PRE&gt;#define LPC11_RAM_ADDRESS0x10000600)&lt;/PRE&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 21:33:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/LPC11C24-Can-Bootloader-Assistance/m-p/595140#M31264</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T21:33:34Z</dc:date>
    </item>
  </channel>
</rss>

