<?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: LPC Bootloader</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC-Bootloader/m-p/525638#M8274</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by dmitryf on Thu Nov 05 21:32:20 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;I think you should: &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1. use CRP3 read protection, so nobody can access chip's memory using JTAG/Flash magic tool or erase flash or run boot loader by pulled P2_7 pin low.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2. make custom boot loader.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;3. make custom flashing tool.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;4. encrypt your image file.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;5. make checking image compatibility procedure in boot loader &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;or use LPC18S&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you concern about clone your code, bad guys with good budget can crack this MCU and copy your program anyway.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jun 2016 18:13:14 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-15T18:13:14Z</dc:date>
    <item>
      <title>LPC Bootloader</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC-Bootloader/m-p/525634#M8270</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by akshaya.k55 on Wed Nov 04 06:19:59 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I am using LPC1833JBD144E part. Currently we are using FlashMagic tool for flashing the application image.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;There is a requirement to validate the image by adding a custom magic number.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;By this i mean, we will be adding a header in the image file which needs to be checked before flashing.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there a provision to modify contents of boot ROM, to make it validate the image and notify Flash Magic tool in case of discrepancy?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Or is there any available ISP command in the boot ROM to validate the application image by checking image header(magic number added by us)?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Or is there any option in FlashMagic tool to perform custom validation?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 18:13:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC-Bootloader/m-p/525634#M8270</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T18:13:12Z</dc:date>
    </item>
    <item>
      <title>Re: LPC Bootloader</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC-Bootloader/m-p/525635#M8271</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by mysepp on Wed Nov 04 08:48:31 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Tell us in more detail what you want to achieve. How secure must it be?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Just an easy check or to prevent a hacker from modifying your device?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In my opinion there is no way to change/extend bootloader in ROM.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;But you can use a second bootloader, which perhaps behaves almost identical as ROM bootloader, if this is really needed.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;And the proprietary check is added in second bootloader, e.g. write a certain magic number before the download is possible.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Otherwise denied.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;According to FlashMagic:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Ok, you can check the image, before calling FlashMagic at all. But what happens, when a user downloads FlashMagic and &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;performs the download without executing your checks? Then all your checks are useless.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Also have a look at LPC18S.. series (same as your, but with 'S') which, &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I think, allows much more security related to application images.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Perhaps a way is to encrypt it? Read the data sheet and/or user manual if this fits your need.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 18:13:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC-Bootloader/m-p/525635#M8271</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T18:13:13Z</dc:date>
    </item>
    <item>
      <title>Re: LPC Bootloader</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC-Bootloader/m-p/525636#M8272</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by akshaya.k55 on Thu Nov 05 01:28:38 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you, &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Security Level: It is simply an easy check. To prevent a wrong image from being loaded to the board accidentally or by mistake.But this should be done irrespective of the flashing tool in ISP programming mode.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Flash Magic: The idea here is to prevent flash magic from flashing if someone tries to load a wrong image.Perhaps the ROM bootloader should do that. That is the reason I thought of modifying the ROM bootloader.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any pointers on this?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 18:13:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC-Bootloader/m-p/525636#M8272</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T18:13:13Z</dc:date>
    </item>
    <item>
      <title>Re: LPC Bootloader</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC-Bootloader/m-p/525637#M8273</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 05 08:02:48 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;The way I handled production serialization in our projects&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;was to write my own PC tool to write a boot loader on to the units.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I also use an in house written post build tool to convert the axf (elf)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;to a download image that includes a CRC32 checksum to avoid&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;'the wrong' download.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This (PC host) appliction also links to a database (sqlite3) to&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;(a) keep audit history and (b) get the next serial number&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;which is patched into the download image 'on the fly' during&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;programming.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It uses the documented ISP interface over UART same as FlashMagic.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Note that FlashMagic requies a paid license if used for production.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Note this is NOT secure as the bad guys can use any tool (and code image)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;that they want.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;As with your case, I just need to avoid 'normal' operator error.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers, Mike.&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 18:13:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC-Bootloader/m-p/525637#M8273</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T18:13:14Z</dc:date>
    </item>
    <item>
      <title>Re: LPC Bootloader</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC-Bootloader/m-p/525638#M8274</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by dmitryf on Thu Nov 05 21:32:20 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;I think you should: &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1. use CRP3 read protection, so nobody can access chip's memory using JTAG/Flash magic tool or erase flash or run boot loader by pulled P2_7 pin low.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2. make custom boot loader.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;3. make custom flashing tool.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;4. encrypt your image file.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;5. make checking image compatibility procedure in boot loader &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;or use LPC18S&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you concern about clone your code, bad guys with good budget can crack this MCU and copy your program anyway.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 18:13:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC-Bootloader/m-p/525638#M8274</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T18:13:14Z</dc:date>
    </item>
  </channel>
</rss>

