<?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 LPC11U24 USB MSC bootloader and bin from Keil in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC11U24-USB-MSC-bootloader-and-bin-from-Keil/m-p/533407#M10608</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Jeroen3 on Wed Oct 30 15:38:20 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've a custom board with an LPC11U24, I've chosen this chip for its internal usb bootloader and mbed library support.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;When I go into the USB MSC (Mass Storage) bootloader with the P0_1 button it successfully mounts as CRP_DISABLED.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I can remove the old .bin file and copy a new .bin file to it, and powercycle the board.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This all works great, but whenever I download a .bin created with Keil uVision the device boots in bootloader again. Indicating invalid user code accoring to the bootup sequence.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;When I compile the identical project with the mbed online compiler the chip does boot properly.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm using an exported Keil uVision (4.70) project, I might have touched the optimizer, but restoring that didn't fix it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I know the code Keil linked works because when I downloaded it with my uLink2 it runs fine.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Do I need some special linker command to make a keil binary valid when loaded with USB MSC DFU?&lt;/SPAN&gt;&lt;BR /&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 19:36:08 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-15T19:36:08Z</dc:date>
    <item>
      <title>LPC11U24 USB MSC bootloader and bin from Keil</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC11U24-USB-MSC-bootloader-and-bin-from-Keil/m-p/533407#M10608</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Jeroen3 on Wed Oct 30 15:38:20 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've a custom board with an LPC11U24, I've chosen this chip for its internal usb bootloader and mbed library support.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;When I go into the USB MSC (Mass Storage) bootloader with the P0_1 button it successfully mounts as CRP_DISABLED.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I can remove the old .bin file and copy a new .bin file to it, and powercycle the board.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This all works great, but whenever I download a .bin created with Keil uVision the device boots in bootloader again. Indicating invalid user code accoring to the bootup sequence.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;When I compile the identical project with the mbed online compiler the chip does boot properly.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm using an exported Keil uVision (4.70) project, I might have touched the optimizer, but restoring that didn't fix it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I know the code Keil linked works because when I downloaded it with my uLink2 it runs fine.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Do I need some special linker command to make a keil binary valid when loaded with USB MSC DFU?&lt;/SPAN&gt;&lt;BR /&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 19:36:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC11U24-USB-MSC-bootloader-and-bin-from-Keil/m-p/533407#M10608</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T19:36:08Z</dc:date>
    </item>
    <item>
      <title>Re: LPC11U24 USB MSC bootloader and bin from Keil</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC11U24-USB-MSC-bootloader-and-bin-from-Keil/m-p/533408#M10609</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by tha on Wed Oct 30 17:29:10 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;The BIN file created from Keil does not have the checksum added to it automatically.&amp;nbsp; You have to run a separate utility to insert the checksum into the BIN file.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;First runt he elfdwt.exe to insert the checksum into the AXF file.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fwww.keil.com%2Fsupport%2Fman%2Fdocs%2Fuv4%2Fuv4_ut_elfdwt.htm" rel="nofollow" target="_blank"&gt;http://www.keil.com/support/man/docs/uv4/uv4_ut_elfdwt.htm&lt;/A&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Then run the fromelf to convert the AXF to BIN file.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fwww.keil.com%2Fsupport%2Fman%2Fdocs%2Farmutil%2Farmutil_BABBDADD.htm" rel="nofollow" target="_blank"&gt;http://www.keil.com/support/man/docs/armutil/armutil_BABBDADD.htm&lt;/A&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Before loading the BIN file into the device, you can check the BIN file to ensure the checksum was added.&amp;nbsp; You can do this by running the NXPISP utility that comes with AN11305:&lt;/SPAN&gt;&lt;BR /&gt;&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%2Fnxpfile%2Fan11305-usb-system-programming-lpc11u3xlpc11u2x" rel="nofollow" target="_blank"&gt;http://www.lpcware.com/content/nxpfile/an11305-usb-system-programming-lpc11u3xlpc11u2x&lt;/A&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 19:36:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC11U24-USB-MSC-bootloader-and-bin-from-Keil/m-p/533408#M10609</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T19:36:09Z</dc:date>
    </item>
    <item>
      <title>Re: LPC11U24 USB MSC bootloader and bin from Keil</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC11U24-USB-MSC-bootloader-and-bin-from-Keil/m-p/533409#M10610</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Jeroen3 on Thu Oct 31 02:10:07 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Adding the following to "Run User Programs After Build" in the User tab solved the issue:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Run #1: C:\Keil\ARM\BIN\ElfDwT build\SteppermotorBoard.axf&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Run #2: fromelf --bin -o build\SteppermotorBoard_LPC11U24.bin build\SteppermotorBoard.axf&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 19:36:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC11U24-USB-MSC-bootloader-and-bin-from-Keil/m-p/533409#M10610</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T19:36:09Z</dc:date>
    </item>
  </channel>
</rss>

