<?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: KL02 has about 1 second delay before it hits main in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/KL02-has-about-1-second-delay-before-it-hits-main/m-p/539972#M33091</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ryan Lush&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm testing the KSDK_2_0\boards\frdmkl02z\demo_apps\hello_world in the FRDM-KL02Z, Its close to 500 ms after power comes up before I see UART data. How are you measuring times? Where are you taking the power supply measurement?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is a byte that can apply a slower initialization in the flashConfig in your starup_MKL02Z4.s file, could you check it and tell me what you have in there?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Jorge Alcala&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 17 Jun 2016 23:21:38 GMT</pubDate>
    <dc:creator>jorge_a_vazquez</dc:creator>
    <dc:date>2016-06-17T23:21:38Z</dc:date>
    <item>
      <title>KL02 has about 1 second delay before it hits main</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/KL02-has-about-1-second-delay-before-it-hits-main/m-p/539968#M33087</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I started with this example project&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;KSDK_2_0\boards\frdmkl02z\demo_apps\hello_world&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The first thing I do when I get in main() is set a pin but I can see on my scope its about 1 second after power/reset come up before this pin changes state. I can't see anything in the IAR startup code that's causing this delay. Am I missing something obvious here?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 12:40:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/KL02-has-about-1-second-delay-before-it-hits-main/m-p/539968#M33087</guid>
      <dc:creator>ryanlush</dc:creator>
      <dc:date>2016-06-16T12:40:26Z</dc:date>
    </item>
    <item>
      <title>Re: KL02 has about 1 second delay before it hits main</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/KL02-has-about-1-second-delay-before-it-hits-main/m-p/539969#M33088</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ryan Lush&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I made some test in the hello_world project, I didn't get the 1 s delay that you mentioned, How did you configure to set up the pin? Could you share your project to replicate your issue?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day.&lt;BR /&gt;Jorge Alcala&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 22:32:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/KL02-has-about-1-second-delay-before-it-hits-main/m-p/539969#M33088</guid>
      <dc:creator>jorge_a_vazquez</dc:creator>
      <dc:date>2016-06-16T22:32:46Z</dc:date>
    </item>
    <item>
      <title>Re: KL02 has about 1 second delay before it hits main</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/KL02-has-about-1-second-delay-before-it-hits-main/m-p/539970#M33089</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well even the untouched hello world example is doing this to me. Its close&lt;/P&gt;&lt;P&gt;to 2 seconds after power comes up before I see any UART data. It's also&lt;/P&gt;&lt;P&gt;about the same about of time before I see my 32.768k crystal starts to&lt;/P&gt;&lt;P&gt;oscillate. My chips is an MKL02Z32VFK4.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  All I have is a 32.768k crystal and a 3.3V regulator along with a a few&lt;/P&gt;&lt;P&gt;buttons and a CAN tranceiver. I can see 3.3V and reset come up right away.&lt;/P&gt;&lt;P&gt;This is in main()&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;int main(void)&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;    char ch;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    /* Init board hardware. */&lt;/P&gt;&lt;P&gt;    BOARD_InitPins();&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    /* CAN_SHDN: 1 = SHUTDOWN / 0 = RUN */&lt;/P&gt;&lt;P&gt;    GPIO_PinInit(GPIOB,   0U,    &amp;amp;(gpio_pin_config_t){kGPIO_DigitalOutput,&lt;/P&gt;&lt;P&gt;0});&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    BOARD_BootClockRUN();&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    BOARD_InitDebugConsole();&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    PRINTF("UUUUUUUUUU");&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    while (1);&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it takes about 800ms before PTB0 goes low (I have an external pull up on&lt;/P&gt;&lt;P&gt;there) and it takes about another 800ms before I see uart data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On Thu, Jun 16, 2016 at 6:33 PM, jorge_a_vazquez &amp;lt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Jun 2016 14:10:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/KL02-has-about-1-second-delay-before-it-hits-main/m-p/539970#M33089</guid>
      <dc:creator>ryanlush</dc:creator>
      <dc:date>2016-06-17T14:10:25Z</dc:date>
    </item>
    <item>
      <title>Re: KL02 has about 1 second delay before it hits main</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/KL02-has-about-1-second-delay-before-it-hits-main/m-p/539971#M33090</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can I ask how you tested it? Every example does this for me. Even the application I am trying to load written for GCC does it. My circuit isn't complicated as I explained. I'm starting to lose hair.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Jun 2016 18:00:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/KL02-has-about-1-second-delay-before-it-hits-main/m-p/539971#M33090</guid>
      <dc:creator>ryanlush</dc:creator>
      <dc:date>2016-06-17T18:00:29Z</dc:date>
    </item>
    <item>
      <title>Re: KL02 has about 1 second delay before it hits main</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/KL02-has-about-1-second-delay-before-it-hits-main/m-p/539972#M33091</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ryan Lush&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm testing the KSDK_2_0\boards\frdmkl02z\demo_apps\hello_world in the FRDM-KL02Z, Its close to 500 ms after power comes up before I see UART data. How are you measuring times? Where are you taking the power supply measurement?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is a byte that can apply a slower initialization in the flashConfig in your starup_MKL02Z4.s file, could you check it and tell me what you have in there?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Jorge Alcala&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Jun 2016 23:21:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/KL02-has-about-1-second-delay-before-it-hits-main/m-p/539972#M33091</guid>
      <dc:creator>jorge_a_vazquez</dc:creator>
      <dc:date>2016-06-17T23:21:38Z</dc:date>
    </item>
    <item>
      <title>Re: KL02 has about 1 second delay before it hits main</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/KL02-has-about-1-second-delay-before-it-hits-main/m-p/539973#M33092</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Does 500ms sound right? I've got a kl15, kl17, STM32F4 and k20 I'm powering up, polling after 10ms and powering down. Even 100 ms seems like an eternity to me for a 48MHz processor. I'll have to rewrite code we've used for a few years all the way up to the C# app if it takes 100ms to boot. The 2 I'm seeing now is insane.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have the FOPT bits set as they are in the example. Fast boot, clkdiv = 1, can't remember what else is in there right now but I went through it several times over making sure I was setup for the fastest boot.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ryan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(sent from mobile device)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 18 Jun 2016 02:05:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/KL02-has-about-1-second-delay-before-it-hits-main/m-p/539973#M33092</guid>
      <dc:creator>ryanlush</dc:creator>
      <dc:date>2016-06-18T02:05:02Z</dc:date>
    </item>
    <item>
      <title>Re: KL02 has about 1 second delay before it hits main</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/KL02-has-about-1-second-delay-before-it-hits-main/m-p/539974#M33093</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I just realized I didn't answer all your questions. I'm measuring time by monitoring Vdd, reset and the IO with my scope. I trigger on Vdd, reset comes up with it and a second later I see my IO go low (I have an external pullup and I'm pulling it low with the processor). Or if I get rid of the IO and watch the UART data I see roughly the same thing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is my FOPT bits&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/TD&gt;&lt;TD&gt;SECTION FlashConfig:CODE&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;__FlashConfig&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/TD&gt;&lt;TD&gt;DCD 0xFFFFFFFF&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/TD&gt;&lt;TD&gt;DCD 0xFFFFFFFF&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/TD&gt;&lt;TD&gt;DCD 0xFFFFFFFF&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/TD&gt;&lt;TD&gt;DCD 0x7EFBFFFF&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;__FlashConfig_End&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas? I have a KL17 running the same bootloader coming up in less than 2ms.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jun 2016 19:53:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/KL02-has-about-1-second-delay-before-it-hits-main/m-p/539974#M33093</guid>
      <dc:creator>ryanlush</dc:creator>
      <dc:date>2016-06-20T19:53:36Z</dc:date>
    </item>
    <item>
      <title>Re: KL02 has about 1 second delay before it hits main</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/KL02-has-about-1-second-delay-before-it-hits-main/m-p/539975#M33094</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The problem was I had the NMI enabled. Once I got that straightened out the device booted in a few microseconds. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Jun 2016 13:11:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/KL02-has-about-1-second-delay-before-it-hits-main/m-p/539975#M33094</guid>
      <dc:creator>ryanlush</dc:creator>
      <dc:date>2016-06-22T13:11:11Z</dc:date>
    </item>
    <item>
      <title>Re: KL02 has about 1 second delay before it hits main</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/KL02-has-about-1-second-delay-before-it-hits-main/m-p/539976#M33095</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ryan Lush&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Glad to hear that you could resolve your issue, and thanks for sharing your workaround. Please tell us with any others questions that you could have.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Jorge Alcala&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Jun 2016 22:05:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/KL02-has-about-1-second-delay-before-it-hits-main/m-p/539976#M33095</guid>
      <dc:creator>jorge_a_vazquez</dc:creator>
      <dc:date>2016-06-22T22:05:19Z</dc:date>
    </item>
  </channel>
</rss>

