<?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: KL03 LPUART Driver Interrupt Crash in Kinetis Software Development Kit</title>
    <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/KL03-LPUART-Driver-Interrupt-Crash/m-p/481293#M4151</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Jorge,&lt;/P&gt;&lt;P&gt;Thank you for the tip!&lt;/P&gt;&lt;P&gt;Turns out in the startup_MKL03Z4.s I had:&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 0xFFFF39FE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it ought to be:&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 0xFFFF3BFE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mike&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 21 Mar 2016 21:31:06 GMT</pubDate>
    <dc:creator>aes_mike</dc:creator>
    <dc:date>2016-03-21T21:31:06Z</dc:date>
    <item>
      <title>KL03 LPUART Driver Interrupt Crash</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/KL03-LPUART-Driver-Interrupt-Crash/m-p/481288#M4146</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I created a project using the KSDK Project Generator 1.0 for a MKL03 MKL03Z32VFK4.&amp;nbsp; See image below. &lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="144210_144210.JPG"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/121185i8A20ECAC4C52F129/image-size/large?v=v2&amp;amp;px=999" role="button" title="144210_144210.JPG" alt="144210_144210.JPG" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="KDS_Project_Generator.JPG"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/23238iF8AC02E1A6146A4B/image-size/large?v=v2&amp;amp;px=999" role="button" title="KDS_Project_Generator.JPG" alt="KDS_Project_Generator.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to get the LPUART_DRV working using interrupts, but when the LPUART_DRV_SendData() runs it crashes when LPUART_BWR_CTRL_TIE(base, 1U) is run in function LPUART_DRV_StartSendData().&amp;nbsp; See attached image of the debug session.&amp;nbsp; &lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="144211_144211.JPG"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/121186iA9227471978E815C/image-size/large?v=v2&amp;amp;px=999" role="button" title="144211_144211.JPG" alt="144211_144211.JPG" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Crash at LPUART_DRV_StartSendData.JPG"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/23272i47E3A22EA40497B8/image-size/large?v=v2&amp;amp;px=999" role="button" title="Crash at LPUART_DRV_StartSendData.JPG" alt="Crash at LPUART_DRV_StartSendData.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also, attached is the project. &lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am missing something, but cannot figure it out.&amp;nbsp; Any advice as to why it is crashing would be really appreciated.&amp;nbsp;&amp;nbsp; Thank you.&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-338555"&gt;MKL03_Device_Platform_MKL03Z32VFK4.zip&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Mar 2016 11:40:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/KL03-LPUART-Driver-Interrupt-Crash/m-p/481288#M4146</guid>
      <dc:creator>aes_mike</dc:creator>
      <dc:date>2016-03-16T11:40:27Z</dc:date>
    </item>
    <item>
      <title>Re: KL03 LPUART Driver Interrupt Crash</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/KL03-LPUART-Driver-Interrupt-Crash/m-p/481289#M4147</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Also, the project is referencing the "libksdk_platform.a" library which was compiled using the ksdk_platform_lib_KL03Z4.&amp;nbsp;&amp;nbsp; This is a KSDK 1.3.0 revision.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Mar 2016 12:11:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/KL03-LPUART-Driver-Interrupt-Crash/m-p/481289#M4147</guid>
      <dc:creator>aes_mike</dc:creator>
      <dc:date>2016-03-16T12:11:22Z</dc:date>
    </item>
    <item>
      <title>Re: KL03 LPUART Driver Interrupt Crash</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/KL03-LPUART-Driver-Interrupt-Crash/m-p/481290#M4148</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The issue is that there is no project example using processor expert which is very weird!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Mar 2016 20:29:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/KL03-LPUART-Driver-Interrupt-Crash/m-p/481290#M4148</guid>
      <dc:creator>gnichimohamed</dc:creator>
      <dc:date>2016-03-16T20:29:53Z</dc:date>
    </item>
    <item>
      <title>Re: KL03 LPUART Driver Interrupt Crash</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/KL03-LPUART-Driver-Interrupt-Crash/m-p/481291#M4149</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The problem with processor expert after adding the blocks I need it compiles to around 24K before adding the application code.&amp;nbsp; Adding application puts the compiled code into the 40K range!&amp;nbsp; If I use the above, then the baseline will likely be around 15K which will be enough room for what I need to do.&lt;/P&gt;&lt;P&gt;I will give &lt;SPAN class="jive-comment-meta font-color-meta-light"&gt;&lt;SPAN class="j-username-wrap"&gt;&lt;A _jive_internal="true" data-content-finding="Community" data-userid="219774" data-username="Carlos_Mendoza" href="https://community.nxp.com/people/Carlos_Mendoza"&gt;Carlos_Mendoza&lt;/A&gt; &lt;span class="lia-inline-image-display-wrapper" image-alt="Employee"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/121184i078A1F64055533B7/image-size/large?v=v2&amp;amp;px=999" role="button" title="Employee" alt="Employee" /&gt;&lt;/span&gt;&amp;nbsp; solution a try from your thread&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;A href="https://community.nxp.com/thread/387619"&gt;lpuart issue&lt;/A&gt; .&amp;nbsp; At least compare and contrast the two projects. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="jive-comment-meta font-color-meta-light"&gt;&lt;SPAN class="j-username-wrap"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Mar 2016 02:07:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/KL03-LPUART-Driver-Interrupt-Crash/m-p/481291#M4149</guid>
      <dc:creator>aes_mike</dc:creator>
      <dc:date>2016-03-17T02:07:19Z</dc:date>
    </item>
    <item>
      <title>Re: KL03 LPUART Driver Interrupt Crash</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/KL03-LPUART-Driver-Interrupt-Crash/m-p/481292#M4150</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Mike:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you still have this issue? Have you tried in standalone mode without the debugger?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tested your project from my side with a FRDM-KL03Z and it worked as expected. From your screenshot it seems that the core is using the vector table from the ROM bootloader.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try adding the next code before any application code is executed (e.g. in &lt;STRONG&gt;SystemInit()&lt;/STRONG&gt; or at the beginning of &lt;STRONG&gt;main()&lt;/STRONG&gt;:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_1458264704411784 jive_text_macro" data-renderedposition="216.5_8_1155_80" jivemacro_uid="_1458264704411784"&gt;&lt;P&gt;// Disable force ROM.&lt;/P&gt;&lt;P&gt;RCM_BWR_FM_FORCEROM(RCM, 0);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;// Clear status register (bits are w1c).&lt;/P&gt;&lt;P&gt;RCM_BWR_MR_BOOTROM(RCM, 3);&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;BR /&gt;Jorge Gonzalez&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>Fri, 18 Mar 2016 01:30:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/KL03-LPUART-Driver-Interrupt-Crash/m-p/481292#M4150</guid>
      <dc:creator>Jorge_Gonzalez</dc:creator>
      <dc:date>2016-03-18T01:30:45Z</dc:date>
    </item>
    <item>
      <title>Re: KL03 LPUART Driver Interrupt Crash</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/KL03-LPUART-Driver-Interrupt-Crash/m-p/481293#M4151</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Jorge,&lt;/P&gt;&lt;P&gt;Thank you for the tip!&lt;/P&gt;&lt;P&gt;Turns out in the startup_MKL03Z4.s I had:&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 0xFFFF39FE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it ought to be:&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 0xFFFF3BFE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mike&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Mar 2016 21:31:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/KL03-LPUART-Driver-Interrupt-Crash/m-p/481293#M4151</guid>
      <dc:creator>aes_mike</dc:creator>
      <dc:date>2016-03-21T21:31:06Z</dc:date>
    </item>
  </channel>
</rss>

