<?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>LPCXpresso IDEのトピックRe: Beginner Question</title>
    <link>https://community.nxp.com/t5/LPCXpresso-IDE/Beginner-Question/m-p/533528#M3633</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 Thu Sep 18 09:40:40 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It's been a while, but I think you need JP1 open to program (boot from USB) and JP1 closed to boot from SPIFI FLASH.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 16 Jun 2016 00:17:47 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-16T00:17:47Z</dc:date>
    <item>
      <title>Beginner Question</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Beginner-Question/m-p/533527#M3632</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by gjdevos on Thu Sep 18 09:16:51 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;I need some basic help to get started with LPCXpresso and a LPC-LINK2 board.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The Blink demo runs when I program it through JTAG. As a next step I want to&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;program it with the DFUSec tool. I managed to build a blinky.bin file which I can&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;download to the LPC-LINK2 flash memory using DFUSec. The image verfies&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;OK after the download. I can not figure out how to start the program after the&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;download. I guess I need to specify Jum to start address, bu then what should&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;the address be? I tried something from the map file: 000000, the start of the&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;flash memory, the ResetISR address, the address of main but nothing works.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I must be missing something obvious, can anyone give me a hint?&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 00:17:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Beginner-Question/m-p/533527#M3632</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T00:17:46Z</dc:date>
    </item>
    <item>
      <title>Re: Beginner Question</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Beginner-Question/m-p/533528#M3633</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 Thu Sep 18 09:40:40 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It's been a while, but I think you need JP1 open to program (boot from USB) and JP1 closed to boot from SPIFI FLASH.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 00:17:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Beginner-Question/m-p/533528#M3633</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T00:17:47Z</dc:date>
    </item>
    <item>
      <title>Re: Beginner Question</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Beginner-Question/m-p/533529#M3634</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by gjdevos on Thu Sep 18 10:12:58 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you for your quick reply. Indeed, JP1 open puts the LPC-LINK2 in DFU mode and that's what I have.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there a way to execute the flash code directly after download? I want to use DFU to support firmware&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;updates for my LPC4370 based product. My plan was to always boot in DFU, then use DFU to either&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;update the firmware and/or continue executing the flash based firmware. As a first step I like to download&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;a binary image and execute that outside of LPCXpresso.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Gert-Jan&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 00:17:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Beginner-Question/m-p/533529#M3634</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T00:17:47Z</dc:date>
    </item>
    <item>
      <title>Re: Beginner Question</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Beginner-Question/m-p/533530#M3635</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by lpcxpresso-support on Fri Sep 19 01:19:04 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;If you use dfu-util, it (optionally) resets the device on completion, so the downloaded code will run.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Take a look at the boot_link2 script provided in the lpcxpresso\bin directory to see how to use it from the command line. (use this script to boot the Redlink firmware when using LPC-Link2 as a debug probe). Make a simple change to the script to boot your image.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 00:17:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Beginner-Question/m-p/533530#M3635</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T00:17:48Z</dc:date>
    </item>
    <item>
      <title>Re: Beginner Question</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Beginner-Question/m-p/533531#M3636</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by gjdevos on Fri Sep 19 08:36:33 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;If the device reset, wouldn't it again start in DFU mode and wait for something to download? At least, my LPC-Link2 does not execute my firmware until i put back JMP1.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I wonder how a device that is configured to boot in DFU mode can be instructed to continue executing the downloaded firmware.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you for the boot_link2 hint. I see it uses dfu-util. I understand from the DFUSec documentation that the LPC4370 needs a two stage boot process to be&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;able to write to flash. Does the boot_link2 script with dfu-util support this? It also does not execute my blinky.bin file after download.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Gert-Jan&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 00:17:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Beginner-Question/m-p/533531#M3636</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T00:17:48Z</dc:date>
    </item>
    <item>
      <title>Re: Beginner Question</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Beginner-Question/m-p/533532#M3637</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by lpcxpresso-support on Fri Sep 19 08:53:27 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;dfu-util downloads to RAM only. If you want to download to flash, (as you say), you are going to need a two-stage process&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1. Download a flash programmer into RAM&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2. Communicate with that application to download to flash&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;We are currently working on a cross-platform application and firmware that will do this over USB - but we are 4-6 weeks away from making a beta.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The device will boot in dfu mode if:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- there is no valid image in flash, or&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- the boot pins are configured to boot from dfu (this is what the jumper is doing...)&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 00:17:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Beginner-Question/m-p/533532#M3637</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T00:17:49Z</dc:date>
    </item>
    <item>
      <title>Re: Beginner Question</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Beginner-Question/m-p/533533#M3638</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Sander Stoks on Sat Sep 20 04:56:30 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hello, colleague of Gert-Jan here.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;We'd be very interested in that cross-platform tool, so we'll keep an eye on that.&amp;nbsp; We can't really wait for it though, so the thing which we're getting stuck on is getting the example to run using the supplied tools.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Downloading seems to work - it just doesn't seem to start up.&amp;nbsp; This is the exact same binary which does work if we run it directly from LPXExpresso.&amp;nbsp; Is this the correct approach?&amp;nbsp; Do we somehow have to specify when building that we're trying to make a binary intended to flash with DFUSec as opposed to running directly from LPCExpresso?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 00:17:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Beginner-Question/m-p/533533#M3638</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T00:17:50Z</dc:date>
    </item>
    <item>
      <title>Re: Beginner Question</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Beginner-Question/m-p/533534#M3639</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by lpcxpresso-support on Mon Sep 22 02:15:27 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Does the binary file have the checksum correct?&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%2Ffaq%2Flpcxpresso%2Fimage-checksums" rel="nofollow" target="_blank"&gt;http://www.lpcware.com/content/faq/lpcxpresso/image-checksums&lt;/A&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Has the image header been correctly applied?&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 00:17:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Beginner-Question/m-p/533534#M3639</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T00:17:50Z</dc:date>
    </item>
    <item>
      <title>Re: Beginner Question</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Beginner-Question/m-p/533535#M3640</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Sander Stoks on Mon Sep 22 06:46:35 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;We add the checksum via a post-build step.&amp;nbsp; This was in fact already present in the project but commented out; we just commented it back in.&amp;nbsp; We understood that there are &lt;/SPAN&gt;&lt;STRONG&gt;three&lt;/STRONG&gt;&lt;SPAN&gt; header/checksums involved.&amp;nbsp; Our understanding is this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1. a checksum over the vector table, which the processor itself uses to check whether a valid binary is present.&amp;nbsp; This is added by the post-build step mentioned above&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2. a "header" added by DFUSec (which turns a .bin file into a .bin.hdr file)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;3. a "suffix" demanded by the DFU specification itself; we add this by using the exact code as listed in the DFU specification.&amp;nbsp; It's not exactly clear why this suffix is there: dfu-util wants to see it (otherwise it will assume the binary about to be flashed is corrupt) yet it's stripped off again before the actual download to the device.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If our understanding of this is wrong, then that would explain part of our suffering :-)&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 00:17:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Beginner-Question/m-p/533535#M3640</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T00:17:51Z</dc:date>
    </item>
  </channel>
</rss>

