<?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: Timer ISR problem with flash write/read for FRDM-K64F in MCUXpresso in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Timer-ISR-problem-with-flash-write-read-for-FRDM-K64F-in/m-p/761812#M46416</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;You doesn't enable the SIM-&amp;gt;SCGC5.LPTMR bit. This bit controls software access to the Low Power Timer module.&lt;/P&gt;&lt;P&gt;Since the K64 has very complex structure, I think you'd better refer to lptmr example, and use the functions in SDK to control all of the module.&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;Jing&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 13 Nov 2017 02:56:32 GMT</pubDate>
    <dc:creator>jingpan</dc:creator>
    <dc:date>2017-11-13T02:56:32Z</dc:date>
    <item>
      <title>Timer ISR problem with flash write/read for FRDM-K64F in MCUXpresso</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Timer-ISR-problem-with-flash-write-read-for-FRDM-K64F-in/m-p/761809#M46413</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am facing some problems&amp;nbsp;with timer interrupt while writing/reading data in flash in the timer ISR. I am able to write and read data in the ISR but the ISR is running at an independent rate, regardless of the value in the CMR (30 to 65530) of the lptmr0. In the ISR I toggle the LED whenever the read value is even.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I added the timer interrupt code to the PFlash example of the SDK.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also checked the timer register values while debugging, they don't seem to get initialized as the watch window displays following error messages:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Multiple errors reported.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;1) Unable to create variable object&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;2) Failed to execute MI command:&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;-data-evaluate-expression LPTMR0-&amp;gt;CSR&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Error message from debugger back end:&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;No symbol "LPTMR0" in current context.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;3) Failed to execute MI command:&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;-var-create - * LPTMR0-&amp;gt;CSR&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Error message from debugger back end:&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;-var-create: unable to create variable object&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;4) Failed to execute MI command:&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;-var-create - * LPTMR0-&amp;gt;CSR&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Error message from debugger back end:&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;-var-create: unable to create variable object&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The code does go into the timer ISR, as I checked it using breakpoints.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I check the lptmr0 project independently it is running as expected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any pointers as to where I may be going wrong. I am using FRDM K64F board in MCUXpresso 10.0.0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Nov 2017 14:30:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Timer-ISR-problem-with-flash-write-read-for-FRDM-K64F-in/m-p/761809#M46413</guid>
      <dc:creator>shoaibshaikh</dc:creator>
      <dc:date>2017-11-09T14:30:46Z</dc:date>
    </item>
    <item>
      <title>Re: Timer ISR problem with flash write/read for FRDM-K64F in MCUXpresso</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Timer-ISR-problem-with-flash-write-read-for-FRDM-K64F-in/m-p/761810#M46414</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;would you mind to send me your code?&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;Jing&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Nov 2017 03:32:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Timer-ISR-problem-with-flash-write-read-for-FRDM-K64F-in/m-p/761810#M46414</guid>
      <dc:creator>jingpan</dc:creator>
      <dc:date>2017-11-10T03:32:19Z</dc:date>
    </item>
    <item>
      <title>Re: Timer ISR problem with flash write/read for FRDM-K64F in MCUXpresso</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Timer-ISR-problem-with-flash-write-read-for-FRDM-K64F-in/m-p/761811#M46415</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/nxf32199"&gt;nxf32199&lt;/A&gt;‌&lt;/P&gt;&lt;P&gt;I attached the code&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Nov 2017 13:47:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Timer-ISR-problem-with-flash-write-read-for-FRDM-K64F-in/m-p/761811#M46415</guid>
      <dc:creator>shoaibshaikh</dc:creator>
      <dc:date>2017-11-10T13:47:57Z</dc:date>
    </item>
    <item>
      <title>Re: Timer ISR problem with flash write/read for FRDM-K64F in MCUXpresso</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Timer-ISR-problem-with-flash-write-read-for-FRDM-K64F-in/m-p/761812#M46416</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;You doesn't enable the SIM-&amp;gt;SCGC5.LPTMR bit. This bit controls software access to the Low Power Timer module.&lt;/P&gt;&lt;P&gt;Since the K64 has very complex structure, I think you'd better refer to lptmr example, and use the functions in SDK to control all of the module.&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;Jing&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Nov 2017 02:56:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Timer-ISR-problem-with-flash-write-read-for-FRDM-K64F-in/m-p/761812#M46416</guid>
      <dc:creator>jingpan</dc:creator>
      <dc:date>2017-11-13T02:56:32Z</dc:date>
    </item>
  </channel>
</rss>

