<?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: Stand alone run mode not matching debug session in Kinetis Software Development Kit</title>
    <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Stand-alone-run-mode-not-matching-debug-session/m-p/474923#M3918</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Dave, I tried your code and it worked, I then spotted some odd behaviour.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I commented out this, which I thought was just there for test,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//#if 1 //DES 1=test, 0=default code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//&amp;nbsp;&amp;nbsp;&amp;nbsp; j++;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//&amp;nbsp;&amp;nbsp;&amp;nbsp; if(!(j%(0x80000))) {&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="text-decoration: underline;"&gt;printf&lt;/SPAN&gt;("0x%X \r\n", (unsigned &lt;SPAN style="text-decoration: underline;"&gt;int&lt;/SPAN&gt;)RTC_CR);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//#&lt;SPAN style="text-decoration: underline;"&gt;endif&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;.....and found that in debug, only "hello world" was printed and not the incrementing value, but that it worked as expected in stand alone mode.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also commented out your code for toggling the LEDs and the led still toggled, now scratching my head.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jim&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 26 Apr 2016 10:45:48 GMT</pubDate>
    <dc:creator>therealfreegeek</dc:creator>
    <dc:date>2016-04-26T10:45:48Z</dc:date>
    <item>
      <title>Stand alone run mode not matching debug session</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Stand-alone-run-mode-not-matching-debug-session/m-p/474918#M3913</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Board - FRDMK64&lt;/P&gt;&lt;P&gt;KSDK - 1.3&lt;/P&gt;&lt;P&gt;KDS - 3 with all the updates&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Problem - It looks like my RTC "seconds" interrupt is not happening or is not being serviced when running stand alone but is working perfectly in debug mode.&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have created a simple project to demonstrate. I have added USBCDC and the Debug console so that PRINTF is sent over the K64 USB on the FRDM board.&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The main code is;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="color: black; font-family: Consolas; font-size: 10pt;"&gt;&lt;BR /&gt;DbgConsole_Init(BOARD_DEBUG_UART_INSTANCE, DEBUG_UART_BAUD, &lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-family: Consolas; font-size: 10pt;"&gt;&lt;EM&gt;kDebugConsoleUSBCDC&lt;/EM&gt;&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: Consolas; font-size: 10pt;"&gt;);&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="color: black; font-family: Consolas; font-size: 10pt;"&gt;PRINTF(&lt;/SPAN&gt;&lt;SPAN style="color: #2a00ff; font-family: Consolas; font-size: 10pt;"&gt;"Hello world \r\n"&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: Consolas; font-size: 10pt;"&gt;);&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="color: black; font-family: Consolas; font-size: 10pt;"&gt;&lt;SPAN style="color: #7f0055; font-family: Consolas; font-size: 10pt;"&gt;&lt;STRONG&gt;int&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: Consolas; font-size: 10pt;"&gt; i = 0;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="color: black; font-family: Consolas; font-size: 10pt;"&gt;&lt;SPAN style="color: #7f0055; font-family: Consolas; font-size: 10pt;"&gt;&lt;STRONG&gt;for&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: Consolas; font-size: 10pt;"&gt;(;;){&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="color: black; font-family: Consolas; font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #7f0055; font-family: Consolas; font-size: 10pt;"&gt;&lt;STRONG&gt;if&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: Consolas; font-size: 10pt;"&gt; (second_tick == 1 ){&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="color: black; font-family: Consolas; font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; PRINTF(&lt;/SPAN&gt;&lt;SPAN style="color: #2a00ff; font-family: Consolas; font-size: 10pt;"&gt;"%d\r\n"&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: Consolas; font-size: 10pt;"&gt;, i);&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="color: black; font-family: Consolas; font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; second_tick = 0;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="color: black; font-family: Consolas; font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; i++;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="color: black; font-family: Consolas; font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="color: black; font-family: Consolas; font-size: 10pt;"&gt;}&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; font-family: arial,helvetica,sans-serif; font-size: 10pt;"&gt;and the interrupt handler is;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="color: #7f0055; font-family: Consolas; font-size: 10pt;"&gt;&lt;STRONG&gt;void&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: Consolas; font-size: 10pt;"&gt; &lt;STRONG&gt;RTC_Seconds_IRQHandler&lt;/STRONG&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #7f0055; font-family: Consolas; font-size: 10pt;"&gt;&lt;STRONG&gt;void&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: Consolas; font-size: 10pt;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="color: #3f7f5f; font-family: Consolas; font-size: 10pt;"&gt;&lt;SPAN style="color: #000000;"&gt;{&lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="color: black; font-family: Consolas; font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; second_tick = 1;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="color: black; font-family: Consolas; font-size: 10pt;"&gt;}&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; font-family: arial,helvetica,sans-serif; font-size: 10pt;"&gt;The project prints as expected on the K64 USB when running from the debugger but when running stand alone only prints "Hello world", then nothing, as if the RTC seconds interrupt is not happening.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; font-family: arial,helvetica,sans-serif; font-size: 10pt;"&gt;I posted this over on the KDS area when I thought I was not creating the "release" code properly but now think that this is not the issue.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; font-family: arial,helvetica,sans-serif; font-size: 10pt;"&gt;Please have a look at the attached project and let me know if you also see the problem. &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; font-family: arial,helvetica,sans-serif; font-size: 10pt;"&gt;Here is the video - &lt;A _jive_internal="true" class="" href="https://community.nxp.com/external-link.jspa?url=https%3A%2F%2Fyoutu.be%2FVHVjMFmxWNU"&gt;https://youtu.be/VHVjMFmxWNU&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Original Attachment has been moved to: &lt;A _jive_internal="true" href="https://community.nxp.com/docs/DOC-338556"&gt;Muon_counter.zip&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Apr 2016 11:38:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Stand-alone-run-mode-not-matching-debug-session/m-p/474918#M3913</guid>
      <dc:creator>therealfreegeek</dc:creator>
      <dc:date>2016-04-25T11:38:23Z</dc:date>
    </item>
    <item>
      <title>Re: Stand alone run mode not matching debug session</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Stand-alone-run-mode-not-matching-debug-session/m-p/474919#M3914</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jim,&lt;/P&gt;&lt;P&gt;Nice video.&amp;nbsp; Thank you for posting.&amp;nbsp; Project helpful too.&lt;/P&gt;&lt;P&gt;Please ensure J25 jumpers pins 2-3 and not 1-2 for your test.&lt;/P&gt;&lt;P&gt;I can get your project to work if I plug in the USB cable, let it enumerate with PC, then press SW1/Reset button, and after enumeration open terminal window.&lt;/P&gt;&lt;P&gt;But I also do see your issue that from POR and emueration, I enable the terminal and only see hello world and not one second RTC interrupts.&amp;nbsp; Will ask around and also hope others have comments.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;David &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Apr 2016 17:27:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Stand-alone-run-mode-not-matching-debug-session/m-p/474919#M3914</guid>
      <dc:creator>DavidS</dc:creator>
      <dc:date>2016-04-25T17:27:19Z</dc:date>
    </item>
    <item>
      <title>Re: Stand alone run mode not matching debug session</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Stand-alone-run-mode-not-matching-debug-session/m-p/474920#M3915</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Dave,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for having a look at this, the jumper will be in the default position, I will check on that tomorrow when I am back in the office, and will also try out the sequence you tried.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Jim&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Apr 2016 18:46:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Stand-alone-run-mode-not-matching-debug-session/m-p/474920#M3915</guid>
      <dc:creator>therealfreegeek</dc:creator>
      <dc:date>2016-04-25T18:46:21Z</dc:date>
    </item>
    <item>
      <title>Re: Stand alone run mode not matching debug session</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Stand-alone-run-mode-not-matching-debug-session/m-p/474921#M3916</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jim,&lt;/P&gt;&lt;P&gt;I found a workaround and added the code into main.c.&lt;/P&gt;&lt;P&gt;I also added a GPIO Component so I could use LED's on the FRDM-K64F Freedom board to help debugging.&lt;/P&gt;&lt;P&gt;Let me know how it works for you.&lt;/P&gt;&lt;P&gt;I will inquire around to determine if this is an errata or software issue.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;David&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Apr 2016 21:26:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Stand-alone-run-mode-not-matching-debug-session/m-p/474921#M3916</guid>
      <dc:creator>DavidS</dc:creator>
      <dc:date>2016-04-25T21:26:16Z</dc:date>
    </item>
    <item>
      <title>Re: Stand alone run mode not matching debug session</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Stand-alone-run-mode-not-matching-debug-session/m-p/474922#M3917</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Dave, yes the jumper was on 2-3, and the operation was the same as you observed if I added the debug usb cable and used the reset switch.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for looking into this and finding the work around, it will be interesting to establish the root cause as you say, s/w issue or errata.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Jim&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Apr 2016 08:35:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Stand-alone-run-mode-not-matching-debug-session/m-p/474922#M3917</guid>
      <dc:creator>therealfreegeek</dc:creator>
      <dc:date>2016-04-26T08:35:47Z</dc:date>
    </item>
    <item>
      <title>Re: Stand alone run mode not matching debug session</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Stand-alone-run-mode-not-matching-debug-session/m-p/474923#M3918</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Dave, I tried your code and it worked, I then spotted some odd behaviour.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I commented out this, which I thought was just there for test,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//#if 1 //DES 1=test, 0=default code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//&amp;nbsp;&amp;nbsp;&amp;nbsp; j++;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//&amp;nbsp;&amp;nbsp;&amp;nbsp; if(!(j%(0x80000))) {&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="text-decoration: underline;"&gt;printf&lt;/SPAN&gt;("0x%X \r\n", (unsigned &lt;SPAN style="text-decoration: underline;"&gt;int&lt;/SPAN&gt;)RTC_CR);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//#&lt;SPAN style="text-decoration: underline;"&gt;endif&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;.....and found that in debug, only "hello world" was printed and not the incrementing value, but that it worked as expected in stand alone mode.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also commented out your code for toggling the LEDs and the led still toggled, now scratching my head.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jim&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Apr 2016 10:45:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Stand-alone-run-mode-not-matching-debug-session/m-p/474923#M3918</guid>
      <dc:creator>therealfreegeek</dc:creator>
      <dc:date>2016-04-26T10:45:48Z</dc:date>
    </item>
    <item>
      <title>Re: Stand alone run mode not matching debug session</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Stand-alone-run-mode-not-matching-debug-session/m-p/474924#M3919</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jim,&lt;/P&gt;&lt;P&gt;Yes I did modify the code to help my debugging and figured best to leave that with comments so if you want, you keep, if you don't then comment out or delete.&lt;/P&gt;&lt;P&gt;LoL with the toggling LED.&amp;nbsp; Sorry about that.&amp;nbsp; In PE for the pin_init:PinSettings Component you can enable the RTC_CLKOUT on PTE26/LEDRGB_GREEN.&lt;/P&gt;&lt;P&gt;Default config&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/35454iBDF60AF7BBE149C9/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;Modified config:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/35518i6DB24D266A0061C5/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;To clear the setting I highlighted it and then used "Delete" key followed by "Enter/Return" key.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;David&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Apr 2016 13:31:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Stand-alone-run-mode-not-matching-debug-session/m-p/474924#M3919</guid>
      <dc:creator>DavidS</dc:creator>
      <dc:date>2016-04-26T13:31:24Z</dc:date>
    </item>
    <item>
      <title>Re: Stand alone run mode not matching debug session</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Stand-alone-run-mode-not-matching-debug-session/m-p/474925#M3920</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Dave,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I spent some more time on this today and found another work around.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First I disabled all the auto initialisation in PE, I then added this code after the PE low level init.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; font-family: Consolas; font-size: 10pt;"&gt;&lt;SPAN style="color: #005032; font-family: Consolas; font-size: 10pt;"&gt;rtc_datetime_t&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: Consolas; font-size: 10pt;"&gt; datetime;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: Consolas; font-size: 10pt;"&gt;&lt;BR /&gt;datetime.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-family: Consolas; font-size: 10pt;"&gt;year&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: Consolas; font-size: 10pt;"&gt; = 2016;&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: Consolas; font-size: 10pt;"&gt;&lt;BR /&gt;datetime.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-family: Consolas; font-size: 10pt;"&gt;month&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: Consolas; font-size: 10pt;"&gt; = 01;&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: Consolas; font-size: 10pt;"&gt;&lt;BR /&gt;datetime.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-family: Consolas; font-size: 10pt;"&gt;day&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: Consolas; font-size: 10pt;"&gt; = 27;&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: Consolas; font-size: 10pt;"&gt;&lt;BR /&gt;datetime.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-family: Consolas; font-size: 10pt;"&gt;hour&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: Consolas; font-size: 10pt;"&gt; = 20;&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: Consolas; font-size: 10pt;"&gt;&lt;BR /&gt;datetime.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-family: Consolas; font-size: 10pt;"&gt;minute&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: Consolas; font-size: 10pt;"&gt; = 49;&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: Consolas; font-size: 10pt;"&gt;&lt;BR /&gt;datetime.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-family: Consolas; font-size: 10pt;"&gt;second&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: Consolas; font-size: 10pt;"&gt; = 30;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; font-family: Consolas; font-size: 10pt;"&gt;&lt;BR /&gt;RTC_DRV_SetDatetime(0, &amp;amp;datetime);&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: Consolas; font-size: 10pt;"&gt; &lt;BR /&gt;RTC_DRV_Init(rtcTimer1_IDX);&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; font-family: Consolas; font-size: 10pt;"&gt;RTC_DRV_SetSecsIntCmd(rtcTimer1_IDX, 1);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3f7f5f; font-size: 10pt;"&gt;This worked in both stand alone and debug mode.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3f7f5f; font-size: 10pt;"&gt;I tried moving the "RTC_DRV_SetDatetime" line after the&amp;nbsp; "&lt;SPAN style="color: black; font-family: Consolas; font-size: 10pt;"&gt;RTC_DRV_SetSecsIntCmd&lt;/SPAN&gt;", and just before also but neither option worked in stand alone mode. I don't really understand why they need to be in this order but it seems to overcome the problem. I have attached an updated project, unfortunately with the same name, so far I have not had any success renaming projects.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3f7f5f; font-size: 10pt;"&gt;Cheers&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3f7f5f; font-size: 10pt;"&gt;Jim&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Apr 2016 13:16:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Stand-alone-run-mode-not-matching-debug-session/m-p/474925#M3920</guid>
      <dc:creator>therealfreegeek</dc:creator>
      <dc:date>2016-04-27T13:16:23Z</dc:date>
    </item>
  </channel>
</rss>

