<?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: Flashing doesn't stick in Kinetis Design Studio</title>
    <link>https://community.nxp.com/t5/Kinetis-Design-Studio/Flashing-doesn-t-stick/m-p/510005#M6641</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Solved!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The 1.3 hello_world program had in the linker settings &lt;SPAN style="font-family: 'courier new', courier;"&gt;nosys&lt;/SPAN&gt; in the libraries. My 2.0 program had &lt;SPAN style="font-family: 'courier new', courier;"&gt;rdimon&lt;/SPAN&gt; in the libraries and also &lt;SPAN style="font-family: 'courier new', courier;"&gt;-specs=rdimon.specs&lt;/SPAN&gt; in the Other Linker settings.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I changed &lt;SPAN style="font-family: 'courier new', courier;"&gt;-specs=rdimon.specs&lt;/SPAN&gt; to &lt;SPAN style="font-family: 'courier new', courier;"&gt;-specs=nosys.specs&lt;/SPAN&gt;, my board properly started the program up even after reset and after USB reconnect. I think this is because rdimon forces the program to wait for a connection from GDB before starting, so of course when I shut down the GDB server, the board couldn't start.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 15 Feb 2016 22:48:15 GMT</pubDate>
    <dc:creator>robertbaruch</dc:creator>
    <dc:date>2016-02-15T22:48:15Z</dc:date>
    <item>
      <title>Flashing doesn't stick</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/Flashing-doesn-t-stick/m-p/509997#M6633</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So there's this nice Flash button in KDS. When I hit that button and select the Segger Release config, it seems to flash my FRDM-K64F with my project's .elf file, and then run, which is great. However, if I stop gdb and hit the board's reset button, the program doesn't start up again. Likewise, if I flash, disconnect the board, and reconnect, either with USB or with an external power supply, it doesn't start up. I'm sure that I'm missing something conceptually. What do I need to change to get my program to start on boot?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 14 Feb 2016 21:40:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/Flashing-doesn-t-stick/m-p/509997#M6633</guid>
      <dc:creator>robertbaruch</dc:creator>
      <dc:date>2016-02-14T21:40:42Z</dc:date>
    </item>
    <item>
      <title>Re: Flashing doesn't stick</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/Flashing-doesn-t-stick/m-p/509998#M6634</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Rotert,&lt;/P&gt;&lt;P&gt;I use the USB connect the OpenSDA(J26) port of board , then use the j-link to download , when disconnect the usb , then connect it&lt;/P&gt;&lt;P&gt;again, it can work well .&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_0.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/53067i8C0E604A0778225F/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_0.png" alt="pastedImage_0.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Please take screenshot about your configuration when debug and the connect of your board . And i recommend&lt;/P&gt;&lt;P&gt;you first test one simple project .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;Alice&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Feb 2016 02:08:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/Flashing-doesn-t-stick/m-p/509998#M6634</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2016-02-15T02:08:29Z</dc:date>
    </item>
    <item>
      <title>Re: Flashing doesn't stick</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/Flashing-doesn-t-stick/m-p/509999#M6635</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is my debug config. I am also using the J26 port and j-link.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Screenshot debug config.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/53070i67A49CB4DF5BFEFA/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot debug config.png" alt="Screenshot debug config.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Debugging works just fine, but when I unplug the USB and plug it back in, the board does not start the code. I have to download it to the board again.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Feb 2016 03:21:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/Flashing-doesn-t-stick/m-p/509999#M6635</guid>
      <dc:creator>robertbaruch</dc:creator>
      <dc:date>2016-02-15T03:21:42Z</dc:date>
    </item>
    <item>
      <title>Re: Flashing doesn't stick</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/Flashing-doesn-t-stick/m-p/510000#M6636</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello ,&lt;/P&gt;&lt;P&gt;Have you install the KSDK, if yes , please test the demo under KSDK :\KSDK_1.3.0\examples\frdmk64f\demo_apps\hello_world\kds&lt;/P&gt;&lt;P&gt;If not , you can create one simple project by yourself .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;ALice&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Feb 2016 03:42:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/Flashing-doesn-t-stick/m-p/510000#M6636</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2016-02-15T03:42:56Z</dc:date>
    </item>
    <item>
      <title>Re: Flashing doesn't stick</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/Flashing-doesn-t-stick/m-p/510001#M6637</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, that example works: I'm able to run it, disconnect the USB, reconnect, and the program on the board immediately starts up. Now we need to figure out why it doesn't work with KSDK 2.0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here are the differences between the example project and my project for the Debugger and Startup settings. Which would cause the program not to stay on the board?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="debugger-settings-diff.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/53155iE2AF5A5E44701D75/image-size/large?v=v2&amp;amp;px=999" role="button" title="debugger-settings-diff.png" alt="debugger-settings-diff.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="startup-settings-diff.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/53198i0CA2E33991F5C518/image-size/large?v=v2&amp;amp;px=999" role="button" title="startup-settings-diff.png" alt="startup-settings-diff.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Feb 2016 06:02:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/Flashing-doesn-t-stick/m-p/510001#M6637</guid>
      <dc:creator>robertbaruch</dc:creator>
      <dc:date>2016-02-15T06:02:14Z</dc:date>
    </item>
    <item>
      <title>Re: Flashing doesn't stick</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/Flashing-doesn-t-stick/m-p/510002#M6638</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Robert,&lt;/P&gt;&lt;P&gt;I think your debugger settings are not the problem. I guess it is your project and your sources which cause the problem. Have you still the EzPort enabled/floating. See this thread (&lt;A href="https://community.nxp.com/thread/332195"&gt;FRDM-K64F booting issue when powered from USB port&lt;/A&gt; ) or google for "k64f ezport start".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this helps,&lt;/P&gt;&lt;P&gt;Erich&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Feb 2016 07:20:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/Flashing-doesn-t-stick/m-p/510002#M6638</guid>
      <dc:creator>BlackNight</dc:creator>
      <dc:date>2016-02-15T07:20:41Z</dc:date>
    </item>
    <item>
      <title>Re: Flashing doesn't stick</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/Flashing-doesn-t-stick/m-p/510003#M6639</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Erich! I think it's something other than EzPort. The &lt;SPAN style="font-family: 'courier new', courier;"&gt;startup_MK64F12.S&lt;/SPAN&gt; files are not quite identical between the hello world program (which works) and my SDK 2.0 program (which doesn't work). However, just to be sure, I changed the &lt;SPAN style="font-family: 'courier new', courier;"&gt;0xFFFFFFFE&lt;/SPAN&gt; word to &lt;SPAN style="font-family: 'courier new', courier;"&gt;0xFFFFFDFE&lt;/SPAN&gt; in startup, and that made no difference.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is my test program, which differs from the default SDK 2.0 program by not much:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="c++" __jive_macro_name="code" class="_jivemacro_uid_14555662536426696 jive_macro_code jive_text_macro" data-renderedposition="142_8_1192_368" jivemacro_uid="_14555662536426696"&gt;&lt;P&gt;int main(void) {&lt;/P&gt;&lt;P&gt;&amp;nbsp; /* Init board hardware. */&lt;/P&gt;&lt;P&gt;&amp;nbsp; BOARD_InitPins();&lt;/P&gt;&lt;P&gt;&amp;nbsp; BOARD_BootClockRUN();&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; // Initialize LED pins&lt;/P&gt;&lt;P&gt;&amp;nbsp; port_pin_config_t ledConfig = {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; .pullSelect = kPORT_PullDisable,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; .slewRate = kPORT_SlowSlewRate,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; .passiveFilterEnable = kPORT_PassiveFilterDisable,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; .openDrainEnable = kPORT_OpenDrainDisable,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; .driveStrength = kPORT_LowDriveStrength,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; .mux = kPORT_MuxAsGpio,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; .lockRegister = kPORT_UnlockRegister,&lt;/P&gt;&lt;P&gt;&amp;nbsp; };&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; PORT_SetPinConfig(BOARD_LED_RED_GPIO_PORT, BOARD_LED_RED_GPIO_PIN, &amp;amp;ledConfig);&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9pt; line-height: 12pt;"&gt;&amp;nbsp; LED_RED_INIT(LOGIC_LED_ON);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; for(;;) { /* Infinite loop to avoid leaving the main function */&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; __asm("NOP"); /* something to use as a breakpoint stop while looping */&lt;/P&gt;&lt;P&gt;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One other symptom that I noticed is that after I start the debugger with my program and the LED is on, if I stop the debugger and then hit the reset button on the board, the program does not restart -- the LED goes out and stays out. With the hello world example, I can stop the debugger and hit reset all day long and it will still restart the program and blink the LED.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Feb 2016 20:00:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/Flashing-doesn-t-stick/m-p/510003#M6639</guid>
      <dc:creator>robertbaruch</dc:creator>
      <dc:date>2016-02-15T20:00:12Z</dc:date>
    </item>
    <item>
      <title>Re: Flashing doesn't stick</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/Flashing-doesn-t-stick/m-p/510004#M6640</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've also noticed that the download procedure is slightly different between the hello world example and the SDK 2.0 version.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The hello_world (1.3) version:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14555681279584483 jive_text_macro" data-renderedposition="112_8_1192_816" jivemacro_uid="_14555681279584483"&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 8pt;"&gt;Target interface speed set to 30 kHz&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 8pt;"&gt;Resetting target&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 8pt;"&gt;Halting target CPU...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 8pt;"&gt;...Target halted (PC = 0x00000540)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 8pt;"&gt;R0 = 00000000, R1 = 00000000, R2 = 00000000, R3 = 00000000&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 8pt;"&gt;R4 = 00000000, R5 = 00000000, R6 = 00000000, R7 = 00000000&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 8pt;"&gt;R8 = 00000000, R9 = 00000000, R10= 00000000, R11= 00000000&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 8pt;"&gt;R12= 00000000, R13= 20030000, MSP= 20030000, PSP= 00000000&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 8pt;"&gt;R14(LR) = FFFFFFFF, R15(PC) = 00000540&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 8pt;"&gt;XPSR 01000000, APSR 00000000, EPSR 01000000, IPSR 00000000&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 8pt;"&gt;CFBP 00000000, CONTROL 00, FAULTMASK 00, BASEPRI 00, PRIMASK 00&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 8pt;"&gt;Reading all registers&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 8pt;"&gt;Select auto target interface speed (1429 kHz)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 8pt;"&gt;Flash breakpoints enabled&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 8pt;"&gt;Semi-hosting enabled (Handle on BKPT)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 8pt;"&gt;Wrong client mask. Semihosting I/O not changed.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 8pt;"&gt;Failed to disable SWO.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 8pt;"&gt;Failed to enable SWO. Could not determine a suitable SWO speed!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 8pt;"&gt;Downloading 1024 bytes @ address 0x00000000 - Verified OK&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 8pt;"&gt;Downloading 16 bytes @ address 0x00000400 - Verified OK&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 8pt;"&gt;Downloading 16096 bytes @ address 0x00000410 - Verified OK&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 8pt;"&gt;Downloading 1596 bytes @ address 0x000042F0 - Verified OK&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 8pt;"&gt;Downloading 8 bytes @ address 0x0000492C - Verified OK&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 8pt;"&gt;Downloading 4 bytes @ address 0x00004934 - Verified OK&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 8pt;"&gt;Downloading 4 bytes @ address 0x00004938 - Verified OK&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 8pt;"&gt;Downloading 116 bytes @ address 0x0000493C - Verified OK&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 8pt;"&gt;Writing register (PC = 0x000004d8)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 8pt;"&gt;Read 4 bytes @ address 0x000004D8 (Data = 0xF000B672)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 8pt;"&gt;Resetting target&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 8pt;"&gt;Halting target CPU...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 8pt;"&gt;...Target halted (PC = 0x000004D8)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 8pt;"&gt;Read 2 bytes @ address 0x000011FA (Data = 0x2300)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 8pt;"&gt;Read 2 bytes @ address 0x000011FA (Data = 0x2300)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 8pt;"&gt;Read 2 bytes @ address 0x000011FA (Data = 0x2300)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 8pt;"&gt;R0 = 00000000, R1 = 00000000, R2 = 00000000, R3 = 00000000&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 8pt;"&gt;R4 = 00000000, R5 = 00000000, R6 = 00000000, R7 = 00000000&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 8pt;"&gt;R8 = 00000000, R9 = 00000000, R10= 00000000, R11= 00000000&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 8pt;"&gt;R12= 00000000, R13= 20030000, MSP= 20030000, PSP= 00000000&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 8pt;"&gt;R14(LR) = FFFFFFFF, R15(PC) = 000004D8&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 8pt;"&gt;XPSR 01000000, APSR 00000000, EPSR 01000000, IPSR 00000000&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 8pt;"&gt;CFBP 00000000, CONTROL 00, FAULTMASK 00, BASEPRI 00, PRIMASK 00&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 8pt;"&gt;Reading all registers&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 8pt;"&gt;Read 4 bytes @ address 0x000004D8 (Data = 0xF000B672)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 8pt;"&gt;Setting breakpoint @ address 0x000011FA, Size = 2, BPHandle = 0x0001&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 8pt;"&gt;Starting target CPU...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 8pt;"&gt;...Breakpoint reached @ address 0x000011FA&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 8pt;"&gt;Reading all registers&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 8pt;"&gt;Removing breakpoint @ address 0x000011FA, Size = 2&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 8pt;"&gt;Read 4 bytes @ address 0x000011FA (Data = 0x60FB2300)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 8pt;"&gt;Reading 64 bytes @ address 0x2002FFC0&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 8pt;"&gt;Starting target CPU...&lt;/SPAN&gt;&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The 2.0 version:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14555681459086290 jive_text_macro" data-renderedposition="1006_8_1192_976" jivemacro_uid="_14555681459086290"&gt;&lt;P&gt;Target interface speed set to 1000 kHz&lt;/P&gt;&lt;P&gt;Resetting target&lt;/P&gt;&lt;P&gt;Halting target CPU...&lt;/P&gt;&lt;P&gt;...Target halted (PC = 0x000004D8)&lt;/P&gt;&lt;P&gt;R0 = 00000000, R1 = 00000000, R2 = 00000000, R3 = 00000000&lt;/P&gt;&lt;P&gt;R4 = 00000000, R5 = 00000000, R6 = 00000000, R7 = 00000000&lt;/P&gt;&lt;P&gt;R8 = 00000000, R9 = 00000000, R10= 00000000, R11= 00000000&lt;/P&gt;&lt;P&gt;R12= 00000000, R13= 20030000, MSP= 20030000, PSP= 00000000&lt;/P&gt;&lt;P&gt;R14(LR) = FFFFFFFF, R15(PC) = 000004D8&lt;/P&gt;&lt;P&gt;XPSR 01000000, APSR 00000000, EPSR 01000000, IPSR 00000000&lt;/P&gt;&lt;P&gt;CFBP 00000000, CONTROL 00, FAULTMASK 00, BASEPRI 00, PRIMASK 00&lt;/P&gt;&lt;P&gt;Reading all registers&lt;/P&gt;&lt;P&gt;Select auto target interface speed (1429 kHz)&lt;/P&gt;&lt;P&gt;Flash breakpoints enabled&lt;/P&gt;&lt;P&gt;Semi-hosting enabled (Handle on BKPT)&lt;/P&gt;&lt;P&gt;Wrong client mask. Semihosting I/O not changed.&lt;/P&gt;&lt;P&gt;Failed to disable SWO.&lt;/P&gt;&lt;P&gt;Failed to enable SWO. Could not determine a suitable SWO speed!&lt;/P&gt;&lt;P&gt;Downloading 1024 bytes @ address 0x00000000 - Verified OK&lt;/P&gt;&lt;P&gt;Downloading 16 bytes @ address 0x00000400 - Verified OK&lt;/P&gt;&lt;P&gt;Downloading 16112 bytes @ address 0x00000410 - Verified OK&lt;/P&gt;&lt;P&gt;Downloading 13712 bytes @ address 0x00004300 - Verified OK&lt;/P&gt;&lt;P&gt;Downloading 8 bytes @ address 0x00007890 - Verified OK&lt;/P&gt;&lt;P&gt;Downloading 4 bytes @ address 0x00007898 - Verified OK&lt;/P&gt;&lt;P&gt;Downloading 4 bytes @ address 0x0000789C - Verified OK&lt;/P&gt;&lt;P&gt;Downloading 392 bytes @ address 0x000078A0 - Verified OK&lt;/P&gt;&lt;P&gt;Comparing flash&amp;nbsp; [....................] Done.&lt;/P&gt;&lt;P&gt;Erasing flash&amp;nbsp;&amp;nbsp;&amp;nbsp; [....................] Done.&lt;/P&gt;&lt;P&gt;Programming flash [....................] Done.&lt;/P&gt;&lt;P&gt;Verifying flash&amp;nbsp; [....................] Done.&lt;/P&gt;&lt;P&gt;Writing register (PC = 0x00000540)&lt;/P&gt;&lt;P&gt;Read 4 bytes @ address 0x00000540 (Data = 0x4809B672)&lt;/P&gt;&lt;P&gt;Read 2 bytes @ address 0x000024DA (Data = 0xF002)&lt;/P&gt;&lt;P&gt;Read 2 bytes @ address 0x000024DA (Data = 0xF002)&lt;/P&gt;&lt;P&gt;Resetting target&lt;/P&gt;&lt;P&gt;Halting target CPU...&lt;/P&gt;&lt;P&gt;...Target halted (PC = 0x00000540)&lt;/P&gt;&lt;P&gt;Read 2 bytes @ address 0x000024DA (Data = 0xF002)&lt;/P&gt;&lt;P&gt;Read 2 bytes @ address 0x000024DA (Data = 0xF002)&lt;/P&gt;&lt;P&gt;Read 2 bytes @ address 0x000024DA (Data = 0xF002)&lt;/P&gt;&lt;P&gt;R0 = 00000000, R1 = 00000000, R2 = 00000000, R3 = 00000000&lt;/P&gt;&lt;P&gt;R4 = 00000000, R5 = 00000000, R6 = 00000000, R7 = 00000000&lt;/P&gt;&lt;P&gt;R8 = 00000000, R9 = 00000000, R10= 00000000, R11= 00000000&lt;/P&gt;&lt;P&gt;R12= 00000000, R13= 20030000, MSP= 20030000, PSP= 00000000&lt;/P&gt;&lt;P&gt;R14(LR) = FFFFFFFF, R15(PC) = 00000540&lt;/P&gt;&lt;P&gt;XPSR 01000000, APSR 00000000, EPSR 01000000, IPSR 00000000&lt;/P&gt;&lt;P&gt;CFBP 00000000, CONTROL 00, FAULTMASK 00, BASEPRI 00, PRIMASK 00&lt;/P&gt;&lt;P&gt;Reading all registers&lt;/P&gt;&lt;P&gt;Read 4 bytes @ address 0x00000540 (Data = 0x4809B672)&lt;/P&gt;&lt;P&gt;Setting breakpoint @ address 0x000024DA, Size = 2, BPHandle = 0x0001&lt;/P&gt;&lt;P&gt;Starting target CPU...&lt;/P&gt;&lt;P&gt;Comparing flash&amp;nbsp; [....................] Done.&lt;/P&gt;&lt;P&gt;Erasing flash&amp;nbsp;&amp;nbsp;&amp;nbsp; [....................] Done.&lt;/P&gt;&lt;P&gt;Programming flash [....................] Done.&lt;/P&gt;&lt;P&gt;Verifying flash&amp;nbsp; [....................] Done.&lt;/P&gt;&lt;P&gt;...Breakpoint reached @ address 0x000024DA&lt;/P&gt;&lt;P&gt;Reading all registers&lt;/P&gt;&lt;P&gt;Removing breakpoint @ address 0x000024DA, Size = 2&lt;/P&gt;&lt;P&gt;Read 4 bytes @ address 0x000024DA (Data = 0xFE77F002)&lt;/P&gt;&lt;P&gt;Reading 64 bytes @ address 0x2002FFC0&lt;/P&gt;&lt;P&gt;Starting target CPU...&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note that in the 2.0 version there's some flash stuff going on (comparing, erasing, programming, verifying) where in 1.3 that isn't done. Could that have something to do with the problem?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Feb 2016 20:30:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/Flashing-doesn-t-stick/m-p/510004#M6640</guid>
      <dc:creator>robertbaruch</dc:creator>
      <dc:date>2016-02-15T20:30:05Z</dc:date>
    </item>
    <item>
      <title>Re: Flashing doesn't stick</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/Flashing-doesn-t-stick/m-p/510005#M6641</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Solved!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The 1.3 hello_world program had in the linker settings &lt;SPAN style="font-family: 'courier new', courier;"&gt;nosys&lt;/SPAN&gt; in the libraries. My 2.0 program had &lt;SPAN style="font-family: 'courier new', courier;"&gt;rdimon&lt;/SPAN&gt; in the libraries and also &lt;SPAN style="font-family: 'courier new', courier;"&gt;-specs=rdimon.specs&lt;/SPAN&gt; in the Other Linker settings.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I changed &lt;SPAN style="font-family: 'courier new', courier;"&gt;-specs=rdimon.specs&lt;/SPAN&gt; to &lt;SPAN style="font-family: 'courier new', courier;"&gt;-specs=nosys.specs&lt;/SPAN&gt;, my board properly started the program up even after reset and after USB reconnect. I think this is because rdimon forces the program to wait for a connection from GDB before starting, so of course when I shut down the GDB server, the board couldn't start.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Feb 2016 22:48:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/Flashing-doesn-t-stick/m-p/510005#M6641</guid>
      <dc:creator>robertbaruch</dc:creator>
      <dc:date>2016-02-15T22:48:15Z</dc:date>
    </item>
    <item>
      <title>Re: Flashing doesn't stick</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/Flashing-doesn-t-stick/m-p/510006#M6642</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think the problem is semihosting: are you using printf() in your code? If so and used with semihosting, then this might block and wait for the debugger to take the data. Another reason not to use printf() (&lt;A href="http://mcuoneclipse.com/2013/04/19/why-i-dont-like-printf/" title="http://mcuoneclipse.com/2013/04/19/why-i-dont-like-printf/"&gt;Why I don’t like printf() | MCU on Eclipse&lt;/A&gt; ) :-(.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Erich&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Feb 2016 04:59:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/Flashing-doesn-t-stick/m-p/510006#M6642</guid>
      <dc:creator>BlackNight</dc:creator>
      <dc:date>2016-02-16T04:59:33Z</dc:date>
    </item>
    <item>
      <title>Re: Flashing doesn't stick</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/Flashing-doesn-t-stick/m-p/510007#M6643</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I wasn't using printf. I think what happened was, at one point I tried using semihosting and set up rdimon, but it didn't seem to work so I just took out all the printfs, but left rdimon in. I should have also taken rdimon out.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Feb 2016 05:19:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/Flashing-doesn-t-stick/m-p/510007#M6643</guid>
      <dc:creator>robertbaruch</dc:creator>
      <dc:date>2016-02-16T05:19:35Z</dc:date>
    </item>
  </channel>
</rss>

