<?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: CRP and BOOT_SRC vs privacy? in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/CRP-and-BOOT-SRC-vs-privacy/m-p/793575#M31926</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Henrik,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;there is no backdoor in the bootcode which allows to enter the chip when CRP3 is activated.&lt;/P&gt;&lt;P&gt;You need to manage it with your own code implementation, so it will be your personal backdoor.&lt;/P&gt;&lt;P&gt;An alternative is CRP2, where the bootcode allows the ISP mode but limited to flash erase functionality. So you can protect your code and you can recover/reuse the hardware.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For "careful" software updates you use the 2 flash banks in turn, with some clever cross checks before switching the banks.&lt;/P&gt;&lt;P&gt;For "very careful" software updates you might add a small external QSPI flash as temporary storage for whatever.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Bernhard.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 16 Oct 2018 15:20:42 GMT</pubDate>
    <dc:creator>bernhardfink</dc:creator>
    <dc:date>2018-10-16T15:20:42Z</dc:date>
    <item>
      <title>CRP and BOOT_SRC vs privacy?</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/CRP-and-BOOT-SRC-vs-privacy/m-p/793572#M31923</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everyone, nice community you got here = )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've been looking in to using a LPC43XX chip in a upgrade design.&lt;/P&gt;&lt;P&gt;Thus playing around with the MCB4357 board several years ago I don't remember too much of it so be aware, you may get hit by a numbers of n00b questions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First off, regarding privacy and boot without any security measurements.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Selecting CRP3 gives some basic intrusion resistance and disables the ISP override (P2_7), what happens if BOOT_SRC is {0, 0, 0, 0}?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If its possible to program the BOOT_SRC to {1, 1, 1, 1} would that mean the chip only boots from the internal FLASH?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any hacks affecting these options, like stressing the chip in various ways during the boot?&lt;/P&gt;&lt;P&gt;(yes, I know theres probably no answer on his one)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you in advance&lt;/P&gt;&lt;P&gt;/Henrik&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Oct 2018 07:02:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/CRP-and-BOOT-SRC-vs-privacy/m-p/793572#M31923</guid>
      <dc:creator>henrik_glader</dc:creator>
      <dc:date>2018-10-16T07:02:08Z</dc:date>
    </item>
    <item>
      <title>Re: CRP and BOOT_SRC vs privacy?</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/CRP-and-BOOT-SRC-vs-privacy/m-p/793573#M31924</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;CRP3 is the strongest protection the LPC43xx can provide. The flash parts of LPC1800/4300 will always try to boot from internal flash first, except the ISP pin P2_7 is sampled LOW after reset. In CRP3 this pin function is disabled, therefore the part will always boot from internal flash in case a valid flash signature has been found. Only if this is not the case, the bootcode looks for the boot memory specified with the fuses or the boot pins.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In a nutshell, if you have enabled CRP3 without having a valid code in internal flash, you're locked out and you can throw the board away.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hacking the device using whatever techniques cannot be excluded, but up to now I don't know of any structured &amp;amp; easy-to-reproduce attack.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Bernhard.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Oct 2018 07:51:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/CRP-and-BOOT-SRC-vs-privacy/m-p/793573#M31924</guid>
      <dc:creator>bernhardfink</dc:creator>
      <dc:date>2018-10-16T07:51:49Z</dc:date>
    </item>
    <item>
      <title>Re: CRP and BOOT_SRC vs privacy?</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/CRP-and-BOOT-SRC-vs-privacy/m-p/793574#M31925</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for the reply, Bernard = )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then CRP3 it is along with careful revision management it is.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;By documentation (and as you state) I'd guess, there exists a backdoor, if you have CRP3 and a broken image (in both flash banks) the ROM proceeds with the BOOT_SRC selection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm not sure but I think a non-funcional board is the prefered option than a recovery, would that be avoided writing a non-valid source in BOOT_SRC?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the case of careful software upgrade.&lt;/P&gt;&lt;P&gt;I'd go for two identical images in the flash banks to sort of get a second life but that requires the flash endurance is prolonged in the second bank because the first one is valid and *exhausted*.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Would that idea hold water?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Wondering&lt;/P&gt;&lt;P&gt;/Henrik&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Oct 2018 12:34:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/CRP-and-BOOT-SRC-vs-privacy/m-p/793574#M31925</guid>
      <dc:creator>henrik_glader</dc:creator>
      <dc:date>2018-10-16T12:34:08Z</dc:date>
    </item>
    <item>
      <title>Re: CRP and BOOT_SRC vs privacy?</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/CRP-and-BOOT-SRC-vs-privacy/m-p/793575#M31926</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Henrik,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;there is no backdoor in the bootcode which allows to enter the chip when CRP3 is activated.&lt;/P&gt;&lt;P&gt;You need to manage it with your own code implementation, so it will be your personal backdoor.&lt;/P&gt;&lt;P&gt;An alternative is CRP2, where the bootcode allows the ISP mode but limited to flash erase functionality. So you can protect your code and you can recover/reuse the hardware.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For "careful" software updates you use the 2 flash banks in turn, with some clever cross checks before switching the banks.&lt;/P&gt;&lt;P&gt;For "very careful" software updates you might add a small external QSPI flash as temporary storage for whatever.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Bernhard.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Oct 2018 15:20:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/CRP-and-BOOT-SRC-vs-privacy/m-p/793575#M31926</guid>
      <dc:creator>bernhardfink</dc:creator>
      <dc:date>2018-10-16T15:20:42Z</dc:date>
    </item>
    <item>
      <title>Re: CRP and BOOT_SRC vs privacy?</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/CRP-and-BOOT-SRC-vs-privacy/m-p/793576#M31927</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Bernard : )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ok, I will check the CRP2 option&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I'd been a hacker I might try to partially erase and add a small code to gain access to internals like the ROM and maybe some flash.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The external flash is a good idea, I will think that thru.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you = )&lt;/P&gt;&lt;P&gt;/Henrik&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Oct 2018 12:44:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/CRP-and-BOOT-SRC-vs-privacy/m-p/793576#M31927</guid>
      <dc:creator>henrik_glader</dc:creator>
      <dc:date>2018-10-25T12:44:50Z</dc:date>
    </item>
  </channel>
</rss>

