<?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>Kinetis MicrocontrollersのトピックRe: Recovery Bootloader Mode on KL27 with BOOT ROM</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Recovery-Bootloader-Mode-on-KL27-with-BOOT-ROM/m-p/372868#M19451</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/ernestoandresrinconcruz"&gt;ernestoandresrinconcruz&lt;/A&gt; ,&lt;/P&gt;&lt;P&gt;I also designed a custom PCB with KL27. I was hoping to use the USB ROM Bootloader but it does not seem to be detected by the PC.&lt;BR /&gt;Luckily, I call fallback on the UART Boot ROM.&lt;BR /&gt;In your comment you said "The hardware solution is to place PULL-UP resistors in PTA1 and PTA2 pins, especially in PTA1" to make the USB-HID ROM Bootloader more reliable. But I cannot find any other information in the documentation about this fact.&lt;BR /&gt;Have you got any explanation for these PULL-UP resistors?&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Olivier&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 13 Oct 2016 21:51:20 GMT</pubDate>
    <dc:creator>oliviermartin</dc:creator>
    <dc:date>2016-10-13T21:51:20Z</dc:date>
    <item>
      <title>Recovery Bootloader Mode on KL27 with BOOT ROM</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Recovery-Bootloader-Mode-on-KL27-with-BOOT-ROM/m-p/372851#M19434</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello everyone.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Right now I have a microcontroller KL27 has BOOT ROM. The first time I connected to the USB port, the computer recognized it well.&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;From KinetisUpdater.exe &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;I could program a small project to light a led. It worked well. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;The problem is that now is not detected by the computer to continue with the tests.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;That recommendation can give me for the microcontroller can enter Bootloader mode once again.&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;As I can set "bootloader configuration area" from processor expert and as I do when no use processor expert.&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;In the circuit, I have a button on the PTA4/NMI_b pin.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Schematic_KL27.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/48738i41570CF94C645B1D/image-size/large?v=v2&amp;amp;px=999" role="button" title="Schematic_KL27.jpg" alt="Schematic_KL27.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Dec 2014 22:42:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Recovery-Bootloader-Mode-on-KL27-with-BOOT-ROM/m-p/372851#M19434</guid>
      <dc:creator>ernestoandresri</dc:creator>
      <dc:date>2014-12-23T22:42:51Z</dc:date>
    </item>
    <item>
      <title>Re: Recovery Bootloader Mode on KL27 with BOOT ROM</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Recovery-Bootloader-Mode-on-KL27-with-BOOT-ROM/m-p/372852#M19435</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt; The FTFx_FOPT register &lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;allows &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;the user to customize the operation of the MCU at boot time.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; If Its value is equal to 0x3d, that means “&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Force Boot from ROM if NMI_b pin asserted (&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;NMI_b pin is sampled at &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;the end of reset (when reset pin negates)). otherwise, Boot &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;from FLASH.&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;”&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; If Its value is equal to 0xff, that means "Always boot from ROM"&lt;/P&gt;&lt;P&gt; If Its value is equal to 0x3f, that means "Always boot from FLASH"&lt;/P&gt;&lt;P&gt; The above are three kind of typical configuration for boot source selection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; If you want to re-enter bootloader mode, you need to know the FOPT value on your KL27&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Dec 2014 06:02:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Recovery-Bootloader-Mode-on-KL27-with-BOOT-ROM/m-p/372852#M19435</guid>
      <dc:creator>jay_heng</dc:creator>
      <dc:date>2014-12-24T06:02:37Z</dc:date>
    </item>
    <item>
      <title>Re: Recovery Bootloader Mode on KL27 with BOOT ROM</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Recovery-Bootloader-Mode-on-KL27-with-BOOT-ROM/m-p/372853#M19436</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I meet the same problem and I fixed it .&lt;/P&gt;&lt;P&gt;Just Like this :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;#undef&amp;nbsp; CONFIG_4&lt;/P&gt;&lt;P&gt;//#define CONFIG_4 (pointer*)0xffff3ffe&lt;/P&gt;&lt;P&gt;//#define CONFIG_4 (pointer*)0xffff3bfe ///&amp;lt; FOPT - NMI is disabled&lt;/P&gt;&lt;P&gt;#define CONFIG_4 (pointer*)0xffff3dfe // boot to according to PTA4 level (log. 0 - boot to ROM, log. 1 boot to FLASH)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Dec 2014 15:05:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Recovery-Bootloader-Mode-on-KL27-with-BOOT-ROM/m-p/372853#M19436</guid>
      <dc:creator>china-imm-fae-b</dc:creator>
      <dc:date>2014-12-24T15:05:26Z</dc:date>
    </item>
    <item>
      <title>Re: Recovery Bootloader Mode on KL27 with BOOT ROM</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Recovery-Bootloader-Mode-on-KL27-with-BOOT-ROM/m-p/372854#M19437</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thank you very much for your answers and help. &lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Now I am clear that I do in the next program.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;I think I have to desolder the chip and assemble a new one because I have no programmer to adjust these settings configuration. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I try to debug from a Freedom-KL46Z updating the OPENSDA with the "MSD-DEBUG-FRDM-KL27Z_Pemicro_v116.SDA" file.&amp;nbsp; but the Kinetis Design Studio always displays the following error: "Error 17926. Unexpected Target Type MCU processor type mismatch detected.. Aborting debug session. "&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Any advice to recover without external programmer?&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Dec 2014 16:09:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Recovery-Bootloader-Mode-on-KL27-with-BOOT-ROM/m-p/372854#M19437</guid>
      <dc:creator>ernestoandresri</dc:creator>
      <dc:date>2014-12-24T16:09:35Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Recovery Bootloader Mode on KL27 with BOOT ROM</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Recovery-Bootloader-Mode-on-KL27-with-BOOT-ROM/m-p/372855#M19438</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My suggest is updating the OPENSDA with "DEBUG-APP_Pemicro_v108.SDA" which is available at CW v10.6 (in subfolder "OpenSDA"), this is a general firmware but the device with this firmware will not be recognized as a USB mass device.&lt;/P&gt;&lt;P&gt;you can debug the target board with this firmware.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Dec 2014 06:04:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Recovery-Bootloader-Mode-on-KL27-with-BOOT-ROM/m-p/372855#M19438</guid>
      <dc:creator>Rick_Li</dc:creator>
      <dc:date>2014-12-25T06:04:50Z</dc:date>
    </item>
    <item>
      <title>Re: Recovery Bootloader Mode on KL27 with BOOT ROM</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Recovery-Bootloader-Mode-on-KL27-with-BOOT-ROM/m-p/372856#M19439</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, &lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;I have a new microcontroller and I'm ready for another try, but I want to be very sure that I will not spend the same.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Is there any way to check the Flash Option Register (FTFA_FOPT) definition from the Kinetis design studio when I compile the project? . &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Try to see the disassembly of the code, but it is only possible in Debug mode and OPENSDA still not working.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Dec 2014 19:32:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Recovery-Bootloader-Mode-on-KL27-with-BOOT-ROM/m-p/372856#M19439</guid>
      <dc:creator>ernestoandresri</dc:creator>
      <dc:date>2014-12-26T19:32:57Z</dc:date>
    </item>
    <item>
      <title>Re: Recovery Bootloader Mode on KL27 with BOOT ROM</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Recovery-Bootloader-Mode-on-KL27-with-BOOT-ROM/m-p/372857#M19440</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Perform some tests, but I do not understand how to set the configuration registers for the Bootloader can function after programming the Flash memory.&lt;/P&gt;&lt;OL style="list-style-type: decimal;"&gt;&lt;LI&gt;KDS configured to generate .bin file to program microcontroller from Bootloader.&lt;SPAN class="lia-inline-image-display-wrapper" image-alt="test1.jpg"&gt;&lt;IMG alt="test1.jpg" src="https://community.nxp.com/t5/image/serverpage/image-id/48786iA89002A230A6DD4C/image-size/large?v=v2&amp;amp;px=999" title="test1.jpg" /&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;I checked the binary file generated by a project for the KL27 Expert processor. The project has no modification, only that generated automatically. In position 0x0_040D meeting FTFA_FOPT settings generated by processor Expert with 0x3F value.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper" image-alt="test2.jpg"&gt;&lt;IMG alt="test2.jpg" src="https://community.nxp.com/t5/image/serverpage/image-id/48793iACA12E7C5C2DC6B2/image-size/large?v=v2&amp;amp;px=999" title="test2.jpg" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;According to Table 6-2. Flash Option Register (FTFA_FOPT) definition ... 0x3F equals that will always start from the FLASH memory .. Especially the bits 6-7 (BOOTSRC_SEL = Boot from Flash) and bit 1 (BOOTPIN_OPT = Boot source configured by BOOTSRC_SEL).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For KL46Z is easy because ProcessorExpert amending LINKER and defines a memory space for these configurations and additionally generates a vector called / * Flash configuration field * / and has the values:&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;/P&gt;&lt;PRE __default_attr="c++" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_14197185064594803" jivemacro_uid="_14197185064594803"&gt;
&lt;P&gt;&amp;nbsp; /* Flash configuration field */&lt;/P&gt;
&lt;P&gt;&amp;nbsp; __attribute__ ((section (".cfmconfig"))) const uint8_t _cfm[0x10] = {&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; /* NV_BACKKEY3: KEY=0xFF */&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0xFFU,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; /* NV_BACKKEY2: KEY=0xFF */&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0xFFU,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; /* NV_BACKKEY1: KEY=0xFF */&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0xFFU,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; /* NV_BACKKEY0: KEY=0xFF */&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0xFFU,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; /* NV_BACKKEY7: KEY=0xFF */&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0xFFU,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; /* NV_BACKKEY6: KEY=0xFF */&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0xFFU,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; /* NV_BACKKEY5: KEY=0xFF */&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0xFFU,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; /* NV_BACKKEY4: KEY=0xFF */&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0xFFU,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; /* NV_FPROT3: PROT=0xFF */&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0xFFU,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; /* NV_FPROT2: PROT=0xFF */&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0xFFU,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; /* NV_FPROT1: PROT=0xFF */&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0xFFU,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; /* NV_FPROT0: PROT=0xFF */&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0xFFU,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; /* NV_FSEC: KEYEN=1,MEEN=3,FSLACC=3,SEC=2 */&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x7EU,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; /* NV_FOPT: ??=1,??=1,FAST_INIT=1,LPBOOT1=1,RESET_PIN_CFG=1,NMI_DIS=1,??=1,LPBOOT0=1 */&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0xFFU,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0xFFU,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0xFFU&lt;/P&gt;
&lt;P&gt;&amp;nbsp; };&lt;/P&gt;

&lt;/PRE&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: black;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt; font-family: Consolas; color: black;"&gt;Any change in the vector immediately modifies the .bin generated and FOPT takes the values that I want. &lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: Consolas; font-size: 10pt; line-height: 1.5em;"&gt;If I check the .map after compiling for KL46 I can find that:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt; font-family: Consolas; color: black;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_14197185064471222" jivemacro_uid="_14197185064471222"&gt;
&lt;P&gt;*(.cfmconfig)&lt;/P&gt;
&lt;P&gt;.cfmconfig&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x00000400&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x10 ./Generated_Code/Cpu.o&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x00000400&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; _cfm&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x00000410&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; . = ALIGN (0x4)&lt;/P&gt;

&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="; color: #ff0000; font-size: 12pt;"&gt;&lt;STRONG&gt;The specific question would be: &lt;SPAN style="color: #000000;"&gt;How to get this same configuration but for the KL27.&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;A href="https://community.nxp.com/people/jayheng" rel="noopener noreferrer" target="_blank"&gt;jayheng&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Reviewing the binary file generated after compiling and that was programmed into the microcontroller, I find that the value of FOPT is 0x3F ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;A href="https://community.nxp.com/people/china-imm-fae-baolei-song2013w28" rel="noopener noreferrer" target="_blank"&gt;china-imm-fae-baolei-song2013w28&lt;/A&gt; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;If I make that definition you recommend me, there is no change in the .bin file. Researching about it, it is possible that this definition serves but when you have a file called &amp;lt;vectors.h&amp;gt; and has something to do with IAR. Processor Expert does not generate that file and therefore no change doing what you recommend me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV&gt;&lt;P&gt;&lt;STRONG&gt;Yong li,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Try updating the OPENSDA with the file you gave me and it was not possible to program the microcontroller KL27. Also I installed CodeWarrior 10.6, installed all available updates and after that CW can not create a project for the KL27, maybe that's why I is not supported by the OPENSDA to upgrade your you recommended me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;P&gt;&lt;SPAN style="font-size: 14pt;"&gt;thank you very much for your time and for their assistance.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 14pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 14pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 14pt;"&gt;__________________________________________ &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 14pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 14pt;"&gt;EDIT:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 14pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;I found the following paragraph in the document "Getting Started with the Kinetis ROM Bootloader":&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;"The Flash Configuration Area (0x400-0x40F) should be carefully populated with known values according to the Reference &lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Manual for the specific Kinetis platform. In particular, values for the FSEC (0x40C) and FOPT (0x40D) locations may &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;prevent future writes to the Kinetis flash.&amp;nbsp; &lt;/SPAN&gt;&lt;/EM&gt;&lt;EM style="font-size: 10pt; line-height: 1.5em;"&gt;Extra attention to ensure the correct values in your application image at these &lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;offsets is highly recommended. If your code (other than the vector table) is linked to begin at offset 0x410, then the default &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;erased value (0xFF) of these locations will make the device secure, but mass erase will be enabled.&lt;/SPAN&gt;&lt;/EM&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;EM&gt;"&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;I keep looking for an example of how to make sure these memory locations have the correct value.&amp;nbsp; :smileyangry:&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Nov 2020 13:14:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Recovery-Bootloader-Mode-on-KL27-with-BOOT-ROM/m-p/372857#M19440</guid>
      <dc:creator>ernestoandresri</dc:creator>
      <dc:date>2020-11-02T13:14:21Z</dc:date>
    </item>
    <item>
      <title>Re: Recovery Bootloader Mode on KL27 with BOOT ROM</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Recovery-Bootloader-Mode-on-KL27-with-BOOT-ROM/m-p/372858#M19441</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ernesto Andres Rincon Cruz,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When creating a new project in KDS, you will find there is a file with name startup_MKL27Z4.S.&lt;/P&gt;&lt;P&gt;the initialization of "the flash configuration area" is done by the below code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/* Flash Configuration */&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; .section .FlashConfig, "a"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; .long 0xFFFFFFFF&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; .long 0xFFFFFFFF&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; .long 0xFFFFFFFF&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; .long 0xFFFF3FFE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you want to modify &lt;SPAN style="font-size: 10pt;"&gt;FTFA_FOPT, please just modify the corresponding place.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;in a project without PE, this file is located in ./Project_Settings/Startup_Code/.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;if with PE, then, this file path will be:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;./SDK/platform/startup/MKL27Z4/gcc/&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope it helps!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Dec 2014 08:03:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Recovery-Bootloader-Mode-on-KL27-with-BOOT-ROM/m-p/372858#M19441</guid>
      <dc:creator>Rick_Li</dc:creator>
      <dc:date>2014-12-29T08:03:56Z</dc:date>
    </item>
    <item>
      <title>Re: Recovery Bootloader Mode on KL27 with BOOT ROM</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Recovery-Bootloader-Mode-on-KL27-with-BOOT-ROM/m-p/372859#M19442</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yong Li,&lt;/P&gt;&lt;P&gt;Thank you very much. With your instructions, able to successfully configure the bootloader option. I programmed the microcontroller and everything happens as expected. Reenters Bootloader &lt;STRONG&gt;but now I have another problem.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The settings in the memory locations are:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="config-1.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/48800iE6DFB744E8188DC8/image-size/large?v=v2&amp;amp;px=999" role="button" title="config-1.jpg" alt="config-1.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;The values were verified in the generated .bin and were as expected. &lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;I programmed the microcontroller using KinetisUpdater.exe... &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;programming ended without any problems.&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Try entering again into Bootloader mode and I could do it without any problems&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Now I always get an error when trying to program a microcontroller again. Now I always get an error in KinetisUpdater.exe.&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="config-2.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/48801i36AEAF350F641785/image-size/large?v=v2&amp;amp;px=999" role="button" title="config-2.jpg" alt="config-2.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;from blhost, you can see that answering the bootloader, but leaves no programming or erasing the flash&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="config-3.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/48802iC02E7D400868356B/image-size/large?v=v2&amp;amp;px=999" role="button" title="config-3.jpg" alt="config-3.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Apparently it is the memory register "Flash Security Register (FTFA_FSEC)" ... I had reviewed this register to set up the right way and I think I gave the correct values.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;I gave the = 0xFE values corresponding to:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;KEYEN = 11 Backdoor key disabled access&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;MEEN = 11 Mass erase is enabled&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;FSLACC = 11 Freescale factory Access Granted&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;SEC = 10 MCU security status is unsecure. (The standard shipping condition of the flash memory module is &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;unsecure.)&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;something is wrong with what I'm understanding?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Dec 2014 20:02:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Recovery-Bootloader-Mode-on-KL27-with-BOOT-ROM/m-p/372859#M19442</guid>
      <dc:creator>ernestoandresri</dc:creator>
      <dc:date>2014-12-29T20:02:53Z</dc:date>
    </item>
    <item>
      <title>Re: Recovery Bootloader Mode on KL27 with BOOT ROM</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Recovery-Bootloader-Mode-on-KL27-with-BOOT-ROM/m-p/372860#M19443</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ernesto Andres Rincon Cruz,&lt;/P&gt;&lt;P&gt;I‘m glad to hear that you already had fixed the previous question.&lt;/P&gt;&lt;P&gt;About the new issue, I've also not encountered it until now, I'll contact with the KOOT solution AE about this issue and please be patient.&lt;BR /&gt;Have a great day,&lt;BR /&gt;Ping&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Dec 2014 06:24:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Recovery-Bootloader-Mode-on-KL27-with-BOOT-ROM/m-p/372860#M19443</guid>
      <dc:creator>jeremyzhou</dc:creator>
      <dc:date>2014-12-30T06:24:09Z</dc:date>
    </item>
    <item>
      <title>Re: Recovery Bootloader Mode on KL27 with BOOT ROM</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Recovery-Bootloader-Mode-on-KL27-with-BOOT-ROM/m-p/372861#M19444</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp; If you verified that FTFA_FSEC(offset 0x40c) was 0xfe &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 10pt; line-height: 1.5em;"&gt;in the generated .bin, Chip should be unsecure after programming, but from the error info of blhost and KinetisUpdater, seems chip was still secure(you can use 'get-property 17' to get current flash security state (should be SECURE)), When chip is secure, the flash related commands(write/read/erase-all) in ROM are disallowed, So you can't program the chip again by KinetisUpdater.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Can you help try below steps by blhost?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Step1: blhost -u -- flash-erase-all-unsecure&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Step2: blhost -u -- get-property 17&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Returned info should be "Flash Security State = UNSECURE"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Step3: blhost -u -- write-memory 0x0 &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;generated .bin&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Step4: blhost -u -- read-memory 0x40c &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Returned value should be "fe"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Step5: blhost -u -- reset&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Step6: blhost -u -- get-property 17&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Returned info should be "Flash Security State = UNSECURE"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Step7: Press the reset button and wait 5s, you should see your app working.&lt;/P&gt;&lt;P&gt; If above steps work on your side, that means updating app by blhost is properly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Contine to try below steps:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Step8: Press the reset button and run blhost -u -- get-property 17&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Returned info should be "Flash Security State = UNSECURE"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Step9: Update the app by KinetisUpdater&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Step10: Press the reset button and run blhost -u -- get-property 17&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Returned info should be "Flash Security State = UNSECURE", if not, this security issue should be caused by KinetisUpdater.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Dec 2014 07:35:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Recovery-Bootloader-Mode-on-KL27-with-BOOT-ROM/m-p/372861#M19444</guid>
      <dc:creator>jay_heng</dc:creator>
      <dc:date>2014-12-30T07:35:18Z</dc:date>
    </item>
    <item>
      <title>Re: Recovery Bootloader Mode on KL27 with BOOT ROM</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Recovery-Bootloader-Mode-on-KL27-with-BOOT-ROM/m-p/372862#M19445</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ernesto Andres Rincon Cruz,&lt;/P&gt;&lt;P&gt;Jie Heng is my colleague and he works in KOOT solution development team, definitely as a KOOT expert.&lt;/P&gt;&lt;P&gt;I contacted with him about your issue and he will follow it.&lt;BR /&gt;Have a great day,&lt;BR /&gt;Ping&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Dec 2014 09:00:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Recovery-Bootloader-Mode-on-KL27-with-BOOT-ROM/m-p/372862#M19445</guid>
      <dc:creator>jeremyzhou</dc:creator>
      <dc:date>2014-12-30T09:00:00Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Recovery Bootloader Mode on KL27 with BOOT ROM</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Recovery-Bootloader-Mode-on-KL27-with-BOOT-ROM/m-p/372863#M19446</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;SPAN style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;&lt;A href="https://community.nxp.com/people/jayheng"&gt;jayheng&lt;/A&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much for the signs. Everything worked as you indicated. &lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;I made a video for steps are seen running. The error is generated by the "KinetisUpdater.exe" software. From blhost no problems and everything works fine.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IFRAME frameborder="0" width="425" height="350" src="https://www.youtube.com/embed/YNIR2NDhO1Q" allowfullscreen=""&gt;&lt;/IFRAME&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I have a new detail. I'm using the USB Bootloader for KL27 ... after all, it works great.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;The problem comes when entering Bootloader, the PC recognizes the USB-HID device, but sometimes enters bootloader mode but UART port . That ends BOOT USB and requires a RESET to reenter by USB-HID.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;The hardware solution is to place PULL-UP resistors in PTA1 and PTA2 pins, especially in PTA1. But already made the PCB and can not take that option.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;SPAN style="color: #ff0000;"&gt;&lt;SPAN style="font-size: 12pt; font-weight: bold;"&gt;The new question is:&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;SPAN style="font-size: 12pt;"&gt;&lt;STRONG&gt;How can I modify flash memory positions&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="; color: #000000; font-size: 12pt;"&gt;&lt;STRONG&gt; "The Kinetis Bootloader Configuration Area (BCA)", specifically the byte called "enabledPeripherals". To disable the BOOT for UART, I2C, SPI. And only allow for USB.&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Dec 2014 01:11:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Recovery-Bootloader-Mode-on-KL27-with-BOOT-ROM/m-p/372863#M19446</guid>
      <dc:creator>ernestoandresri</dc:creator>
      <dc:date>2014-12-31T01:11:30Z</dc:date>
    </item>
    <item>
      <title>Re: Recovery Bootloader Mode on KL27 with BOOT ROM</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Recovery-Bootloader-Mode-on-KL27-with-BOOT-ROM/m-p/372864#M19447</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ernesto&lt;/P&gt;&lt;BLOCKQUOTE&gt;
&lt;P&gt;I'm using the USB Bootloader for KL27 ... after all, it works great&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;&lt;P&gt;From your video I see that it takes over a minute to load a program of 18k. This is a speed of about 300 bytes a second. If you have a large application of 258k it will require 15 minutes. I wouldn't exactly call this &lt;SPAN style="text-decoration: underline;"&gt;great&lt;/SPAN&gt; since it is much faster to use the UART.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is also what I found with the latest KBOOT (in comparison, the old HIDBootloader.exe from AN4764 will do this in a fraction of a second) - see &lt;A href="https://community.nxp.com/message/465756"&gt;Re: Re: Does KBOOT support KL25?&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A USB loader that only achieves 300 Bytes/s is of course quite rediculous and the problem is obviously in the PC program because it obviously sends a single packet of 36 bytes out every 100ms and the embedded part could easily achieve 50x this performance.&lt;SPAN style="text-decoration: underline;"&gt; I certainly recommend that this issue is resolved&lt;/SPAN&gt; because it makes the present solution almost a joke for real work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Dec 2014 16:47:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Recovery-Bootloader-Mode-on-KL27-with-BOOT-ROM/m-p/372864#M19447</guid>
      <dc:creator>mjbcswitzerland</dc:creator>
      <dc:date>2014-12-31T16:47:12Z</dc:date>
    </item>
    <item>
      <title>Re: Recovery Bootloader Mode on KL27 with BOOT ROM</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Recovery-Bootloader-Mode-on-KL27-with-BOOT-ROM/m-p/372865#M19448</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ernesto,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; You can either manually edit generated bin file to modify bca data or add static bca data section in source code. For bca detail, please refer to 《Kinetis Bootloader 1.1.0 Reference Manual》 p11. When you have programmed the app image which contains right bca data (only usb enabled), you can re-program this app via usb interface only .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; An demo bca section could be like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;span class="lia-inline-image-display-wrapper" image-alt="demo bca.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/48898i7640C10CBE12CDA4/image-size/large?v=v2&amp;amp;px=999" role="button" title="demo bca.jpg" alt="demo bca.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Jay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Jan 2015 08:42:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Recovery-Bootloader-Mode-on-KL27-with-BOOT-ROM/m-p/372865#M19448</guid>
      <dc:creator>jay_heng</dc:creator>
      <dc:date>2015-01-06T08:42:07Z</dc:date>
    </item>
    <item>
      <title>Re: Recovery Bootloader Mode on KL27 with BOOT ROM</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Recovery-Bootloader-Mode-on-KL27-with-BOOT-ROM/m-p/372866#M19449</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE&gt;
&lt;P&gt;Mark Butcher wrote:&lt;BR /&gt; ...&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;This is also what I found with the latest KBOOT (in comparison, the old HIDBootloader.exe from AN4764 will do this in a fraction of a second) - see &lt;A _jive_internal="true" data-containerid="2019" data-containertype="14" data-content-finding="Community" data-objectid="465756" data-objecttype="2" href="https://community.nxp.com/message/465756#465756" onclick=""&gt;Re: Re: Does KBOOT support KL25?&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;A USB loader that only achieves 300 Bytes/s is of course quite rediculous and the problem is obviously in the PC program because it obviously sends a single packet of 36 bytes out every 100ms and the embedded part could easily achieve 50x this performance.&lt;SPAN style="text-decoration: underline;"&gt; I certainly recommend that this issue is resolved&lt;/SPAN&gt; because it makes the present solution almost a joke for real work.&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;&lt;P&gt;I've not been following KBOOT that closely however I will need to get a HID based bootloader into my product soon, and want to be KBOOT compatible.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is the protocol documented, without having to dig it out of the device end of the source code, or using a bus analyzer?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Why does Freescale refuse to release the source code for the PC end of the utilities (not just KBOOT but all past boot utilities)?&lt;/P&gt;&lt;P&gt;Having to sign an NDA to get it is absurd, which has been a past reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To fit into our product flow we usually end up writing our own utilities for the production floor (one big button that says "Program Now" and a Green/Red Pass/Fail indicator.&amp;nbsp; It is a lot easier to convince the boss to use parts from a company when everything is openly supported.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Jan 2015 19:00:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Recovery-Bootloader-Mode-on-KL27-with-BOOT-ROM/m-p/372866#M19449</guid>
      <dc:creator>bobpaddock</dc:creator>
      <dc:date>2015-01-06T19:00:24Z</dc:date>
    </item>
    <item>
      <title>Re: Recovery Bootloader Mode on KL27 with BOOT ROM</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Recovery-Bootloader-Mode-on-KL27-with-BOOT-ROM/m-p/372867#M19450</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Bob&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;KBOOT is comprehensively documented and all source code is available. As far as I know, also for the PC, although I didn't try re-building it yet (see &lt;A href="https://community.nxp.com/thread/338256"&gt;KBOOT V1.1.0 Loader - Help - it is just too slow to be useful!!!&lt;/A&gt; )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The PC utility is not perfect (yet) for production use. This is however quite typical for such tools where they seem to be balancing use for development and production - there are just too many clicks required for each load and at the moment you really need to close the application and restart it for each target programmed for it to be reliable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The protocol is quite straight forward. In have integrated it into the uTasker project for UART and USB for operation on most KE, KL and K parts and use it in parallel with Ethernet, USB-MSD and SD card loading. In fact it can be done in a couple of hours from scratch if you have a framework (with UART and USB drivers etc.) to add it to. I needed about 120 lines of C code for compatibility with all families on UART and/or USB. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Personally, if I were preparing a production setup that used KBOOT, I would probably integrate the protocol into a custom program because I often use such an application to program and then control a functional test afterwards.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.utasker.com/kinetis.html" title="http://www.utasker.com/kinetis.html"&gt;http://www.utasker.com/kinetis.html&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Jan 2015 20:48:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Recovery-Bootloader-Mode-on-KL27-with-BOOT-ROM/m-p/372867#M19450</guid>
      <dc:creator>mjbcswitzerland</dc:creator>
      <dc:date>2015-01-06T20:48:44Z</dc:date>
    </item>
    <item>
      <title>Re: Recovery Bootloader Mode on KL27 with BOOT ROM</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Recovery-Bootloader-Mode-on-KL27-with-BOOT-ROM/m-p/372868#M19451</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/ernestoandresrinconcruz"&gt;ernestoandresrinconcruz&lt;/A&gt; ,&lt;/P&gt;&lt;P&gt;I also designed a custom PCB with KL27. I was hoping to use the USB ROM Bootloader but it does not seem to be detected by the PC.&lt;BR /&gt;Luckily, I call fallback on the UART Boot ROM.&lt;BR /&gt;In your comment you said "The hardware solution is to place PULL-UP resistors in PTA1 and PTA2 pins, especially in PTA1" to make the USB-HID ROM Bootloader more reliable. But I cannot find any other information in the documentation about this fact.&lt;BR /&gt;Have you got any explanation for these PULL-UP resistors?&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Olivier&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Oct 2016 21:51:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Recovery-Bootloader-Mode-on-KL27-with-BOOT-ROM/m-p/372868#M19451</guid>
      <dc:creator>oliviermartin</dc:creator>
      <dc:date>2016-10-13T21:51:20Z</dc:date>
    </item>
  </channel>
</rss>

