<?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: USB DFU mode lost when Click on START on DFUsec tool after Reinvoke ISP  in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/USB-DFU-mode-lost-when-Click-on-START-on-DFUsec-tool-after/m-p/564349#M16865</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by fred033 on Tue Oct 21 01:02:12 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Yes, I've verified the value is still in RAM after reset.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jun 2016 18:50:33 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-15T18:50:33Z</dc:date>
    <item>
      <title>USB DFU mode lost when Click on START on DFUsec tool after Reinvoke ISP</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/USB-DFU-mode-lost-when-Click-on-START-on-DFUsec-tool-after/m-p/564345#M16861</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by fred033 on Wed Oct 15 09:59:20 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When I reinvoke ISP from my user code (using IAP command), my LPC4337 appear on computer and is detected by DFUSec.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm trying to flash a new firmware, but when I click on START on DFUsec tool, the DFU peripheral disappear and I have following log in DFUsec :&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;I&gt;Downloading programming algorithm via DFU ROM boot&lt;BR /&gt;DFU programming algorithm download complete&lt;BR /&gt;Waiting Up to 4s for programming algorithm detection after DFU download&lt;BR /&gt;Board programming algorithm failed to start&lt;BR /&gt;Total program time:4.0232301 seconds.&lt;/I&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have tried to reinvoke ISP at the initialization of my software and all work fine. But when I reinvoke ISP when my software run the download is impossible.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;To provoke the call of REinvoke ISP command I have done the following :&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I send a VCOM command to my LPC (writing in a register)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;When Core M0 detect this writting is send a command to M4 core and in this command treatment on M4 I reinvoke ISP.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;On my computer my VCOM peripheral disappear and my LPC in DFU mode appear.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;At this step I launch DFU SEC tool, and when I click on START to flash my board, the header seem to be download and after that my LPC in DFU disappear.&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I don't understand why.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you for your help.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 18:50:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/USB-DFU-mode-lost-when-Click-on-START-on-DFUsec-tool-after/m-p/564345#M16861</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T18:50:30Z</dc:date>
    </item>
    <item>
      <title>Re: USB DFU mode lost when Click on START on DFUsec tool after Reinvoke ISP</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/USB-DFU-mode-lost-when-Click-on-START-on-DFUsec-tool-after/m-p/564346#M16862</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by bavarian on Mon Oct 20 04:12:08 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Most likely you need to wind back to the conditions you have at startup.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;At least consider to stop the M0 (put it in reset).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Did you consider the 32 bytes of stack which is used by the ROM routines? &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If this is the area the M0 is using and the M0 is still running, then you could crash the system.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;We can't put such a wind-back into the ROM routines, you need to do it in your own application code.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;NXP Support Team.&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 18:50:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/USB-DFU-mode-lost-when-Click-on-START-on-DFUsec-tool-after/m-p/564346#M16862</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T18:50:31Z</dc:date>
    </item>
    <item>
      <title>Re: USB DFU mode lost when Click on START on DFUsec tool after Reinvoke ISP</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/USB-DFU-mode-lost-when-Click-on-START-on-DFUsec-tool-after/m-p/564347#M16863</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by fred033 on Tue Oct 21 00:06:55 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have consider the 32 bytes at the top of stack. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Before reinvoke ISP I save a value in RAM and I make a reset and in the main of my project I check the value in RAM and I reinvoke ISP. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Extract of my application code :&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;////In my M4 treatment when M0 send command of VCOM register update&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;LPC_CREG-&amp;gt;ETBCFG |= 0x1;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;*((uint32_t *)(0x2000C000)) = 0x12345678;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;//Reset CTRL Registers&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;LPC_RGU-&amp;gt;RESET_CTRL0 = 0x387F3337 ;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;//// In my main&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;if (*((uint32_t *)(0x2000C000)) == 0x12345678)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;__disable_irq();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; *((uint32_t *)(0x2000C000)) = 0x1EA31BE2;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IAP iap_entry=(IAP)IAP_LOCATION ;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; command[0] = IAP_REINVOKE_ISP_CMD;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; iap_entry(command, result);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 18:50:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/USB-DFU-mode-lost-when-Click-on-START-on-DFUsec-tool-after/m-p/564347#M16863</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T18:50:32Z</dc:date>
    </item>
    <item>
      <title>Re: USB DFU mode lost when Click on START on DFUsec tool after Reinvoke ISP</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/USB-DFU-mode-lost-when-Click-on-START-on-DFUsec-tool-after/m-p/564348#M16864</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by LabRat on Tue Oct 21 00:16:55 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: fred033&lt;/STRONG&gt;&lt;BR /&gt;Before reinvoke ISP I save a value in RAM and I make a reset....&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Are you sure your RAM value is surviving Reset?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN&gt;See: &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fwww.lpcware.com%2Fcontent%2Fforum%2Flpc1769-keep-settings-after-restart-of-program" rel="nofollow" target="_blank"&gt;http://www.lpcware.com/content/forum/lpc1769-keep-settings-after-restart-of-program&lt;/A&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 18:50:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/USB-DFU-mode-lost-when-Click-on-START-on-DFUsec-tool-after/m-p/564348#M16864</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T18:50:32Z</dc:date>
    </item>
    <item>
      <title>Re: USB DFU mode lost when Click on START on DFUsec tool after Reinvoke ISP</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/USB-DFU-mode-lost-when-Click-on-START-on-DFUsec-tool-after/m-p/564349#M16865</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by fred033 on Tue Oct 21 01:02:12 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Yes, I've verified the value is still in RAM after reset.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 18:50:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/USB-DFU-mode-lost-when-Click-on-START-on-DFUsec-tool-after/m-p/564349#M16865</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T18:50:33Z</dc:date>
    </item>
  </channel>
</rss>

