<?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>LPC Microcontrollers中的主题 Re: DFUSec Flash Programming Error</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/DFUSec-Flash-Programming-Error/m-p/534081#M10756</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by wellsk on Mon Oct 15 18:48:00 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;gt;LPC DFUSec says Download Complete, Waiting for device detection after initial download.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The default boot device for DFU boot in the programming algorithm (not the boot ROM) is USB0. This may not be the same as you are using for the boot ROM and the download of the programming algo.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Are you using USB0 or USB1 for download? If it's not USB0, you may need to rebuild the algo using USB1.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;(I'm not certain if this is the problem, but it might be worth a try.)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I think these are all the changes you need:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;code&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;//void USB0_IRQHandler(void)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;void USB1_IRQHandler(void) /* Change to USB1 */&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; USBD_API-&amp;gt;hw-&amp;gt;ISR(hUsb);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;...&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;//usb_param.usb_reg_base = LPC_USB0_BASE;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;usb_param.usb_reg_base = LPC_USB1_BASE; /* Change to USB1 */&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;...&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;// NVIC_EnableIRQ(USB0_IRQn);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; NVIC_EnableIRQ(USB1_IRQn); /* Change to USB1 */&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/code&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jun 2016 18:21:13 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-15T18:21:13Z</dc:date>
    <item>
      <title>DFUSec Flash Programming Error</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/DFUSec-Flash-Programming-Error/m-p/534080#M10755</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by bigkahuna on Mon Oct 15 16:02:50 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am using customer board with LPC1857FET256 and trying to flash firmware into internal flash using USB0 boot.&amp;nbsp; I believe I got the USB algorithm correct because &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;A.&amp;nbsp; it boots from RAM correctly and displays following on UART&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;********************************************&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;USB Bootloader Algorithm&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Build date: Oct 15 2012:17:33:56&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;********************************************&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;FLASH detected: 2 bank(2) (0xf001d830/0x1ef20000)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;FLASH bank 0: Start: 1a000000, Size 00080000&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;FLASH bank 1: Start: 1b000000, Size 00080000&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Initializing USB interface&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Initializing DFU&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Connecting USB&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;B.&amp;nbsp; LPC DFUSec says Download Complete, Waiting for device detection after initial download.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The tool chokes at this point.&amp;nbsp; What could be wrong?&amp;nbsp; What device detection is the tool waiting for?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 18:21:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/DFUSec-Flash-Programming-Error/m-p/534080#M10755</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T18:21:13Z</dc:date>
    </item>
    <item>
      <title>Re: DFUSec Flash Programming Error</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/DFUSec-Flash-Programming-Error/m-p/534081#M10756</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by wellsk on Mon Oct 15 18:48:00 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;gt;LPC DFUSec says Download Complete, Waiting for device detection after initial download.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The default boot device for DFU boot in the programming algorithm (not the boot ROM) is USB0. This may not be the same as you are using for the boot ROM and the download of the programming algo.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Are you using USB0 or USB1 for download? If it's not USB0, you may need to rebuild the algo using USB1.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;(I'm not certain if this is the problem, but it might be worth a try.)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I think these are all the changes you need:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;code&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;//void USB0_IRQHandler(void)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;void USB1_IRQHandler(void) /* Change to USB1 */&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; USBD_API-&amp;gt;hw-&amp;gt;ISR(hUsb);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;...&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;//usb_param.usb_reg_base = LPC_USB0_BASE;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;usb_param.usb_reg_base = LPC_USB1_BASE; /* Change to USB1 */&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;...&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;// NVIC_EnableIRQ(USB0_IRQn);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; NVIC_EnableIRQ(USB1_IRQn); /* Change to USB1 */&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/code&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 18:21:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/DFUSec-Flash-Programming-Error/m-p/534081#M10756</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T18:21:13Z</dc:date>
    </item>
    <item>
      <title>Re: DFUSec Flash Programming Error</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/DFUSec-Flash-Programming-Error/m-p/534082#M10757</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by wellsk on Mon Oct 15 18:51:00 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;gt;firmware into internal flash using USB0 boot.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I guess I missed this, if it's definitely USB0, then something else is probably wrong. :(&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 18:21:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/DFUSec-Flash-Programming-Error/m-p/534082#M10757</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T18:21:14Z</dc:date>
    </item>
    <item>
      <title>Re: DFUSec Flash Programming Error</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/DFUSec-Flash-Programming-Error/m-p/534083#M10758</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by bigkahuna on Sun Nov 25 19:07:29 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;If anybody is interested DFU header definitions for all entry points were not correct.&amp;nbsp; Fixed those and it started working. &lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 18:21:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/DFUSec-Flash-Programming-Error/m-p/534083#M10758</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T18:21:15Z</dc:date>
    </item>
  </channel>
</rss>

