<?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>MQX Software SolutionsのトピックRe: Kinetis I2C MQX code</title>
    <link>https://community.nxp.com/t5/MQX-Software-Solutions/Kinetis-I2C-MQX-code/m-p/146659#M144</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is Processor Expert I2C demo application with MQX for TWR-MK60. There are two zip files. One with MK60 BSP (with integrated Processor Expert project) and the second one with demo application using Processor Expert I2C component from BSP. Just put BSP into MQX proper location, build BSP and demo application. Demo application reads data from on-board accelerometer. Feel free to contact me if any problem.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Marek V.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 14 Jul 2011 20:08:47 GMT</pubDate>
    <dc:creator>marek_vinkler</dc:creator>
    <dc:date>2011-07-14T20:08:47Z</dc:date>
    <item>
      <title>Kinetis I2C MQX code</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Kinetis-I2C-MQX-code/m-p/146654#M139</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am working with the Kinetis TWR-K60N512 kit and am trying to get some i2c code running. I am using CW10. I can run the i2c demo in the example code in the rev_1_4 folder from Freescale with no problem. This example doesn't use MQX.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However when I try to use MQX, &amp;nbsp;I get an unhandled interrupt &amp;nbsp;in the i2c task even though the task is using polled mode and the i2c interrupt is disabled in the bsp project. I started with the pe_demo_twrk60n512 example project (from the pe_demo project in the MQX 3.7 folder), modified the bsp_twrk60n512_pe project to add the i2c component, recompiled all the libraries, and added the i2c code as a separate task. I disabled all other tasks except the led task which still runs fine. The i2c task starts up but is aborted as soon as the unhandled interrupt is encountered. I can look at the i2c registers and verify that the interrupt is not enabled. I don't know what the source of the interrupt is.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have also tried using the PE generated code as outlined in the help for the i2c component with my own external i2c peripheral (using I2C0) with the same result. The unhandled interrupt doesn't always occur at the same place in the code. And looking at the i2c communication on a scope hasn't revealed any errors. I installed a task exception handler using _task_set_exception_handler() and print out the exception number that is passed in. This value is always 3.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help would be greatly appreciated!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Jul 2011 01:24:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Kinetis-I2C-MQX-code/m-p/146654#M139</guid>
      <dc:creator>ERussell</dc:creator>
      <dc:date>2011-07-06T01:24:21Z</dc:date>
    </item>
    <item>
      <title>Re: Kinetis I2C MQX code</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Kinetis-I2C-MQX-code/m-p/146655#M140</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I can't speak for the PE questions, but MQX already has an I2C driver, so using Processor Expert isn't required.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For examples, look at C:\Program Files\Freescale\Freescale MQX 3.7\mqx\examples\i2c﻿&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Or look at the &lt;A href="http://cache.freescale.com/files/32bit/doc/support_info/TWRK60N512QSDLAB.zip" rel="nofollow" target="_self"&gt;Kinetis Quick Start Demo&lt;/A&gt; code, specifically the&amp;nbsp;Accel_Task.c﻿ file which sets up and reads the I2C accelerometer part on the K60 Tower board.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-amh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Jul 2011 04:09:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Kinetis-I2C-MQX-code/m-p/146655#M140</guid>
      <dc:creator>anthony_huereca</dc:creator>
      <dc:date>2011-07-06T04:09:03Z</dc:date>
    </item>
    <item>
      <title>Re: Kinetis I2C MQX code</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Kinetis-I2C-MQX-code/m-p/146656#M141</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I do like PE and would like to use it if possible.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I did try the Kinetis Quick Start Demo which worked just fine. I didn't realize there was a quick start for MQX 3.7 using CW10 - I had only tried the older version for MQX 3.6.2 using IAR.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I haven't been able to determine what the difference is between running with PE and MQX versus MQX alone for the i2c code -&amp;nbsp;BUT I was able to run my program (based on the pe_demo) with my external i2c peripheral by adding a 1 msec delay after the call to the PE routine I2C_Main(). This would probably be the equivalent to the MQX call to fflush(). I2C_Main() is called while waiting for the transmission to complete and sets the appropriate event upon completion.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My concern is whether adding a delay is a trustable solution and why it is necessary at all. I haven't changed anything else about my code.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any thoughts?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Jul 2011 12:33:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Kinetis-I2C-MQX-code/m-p/146656#M141</guid>
      <dc:creator>ERussell</dc:creator>
      <dc:date>2011-07-06T12:33:22Z</dc:date>
    </item>
    <item>
      <title>Re: Kinetis I2C MQX code</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Kinetis-I2C-MQX-code/m-p/146657#M142</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm glad to hear that you would like to use Processor Expert within MQX. We will prepare I2C example in Processor Expert for you. You can use it as a starting point in your application. It will be prepared at beginning of the next week due to hollidays in Brno, Czech Republic.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Marek V.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Jul 2011 20:19:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Kinetis-I2C-MQX-code/m-p/146657#M142</guid>
      <dc:creator>marek_vinkler</dc:creator>
      <dc:date>2011-07-07T20:19:45Z</dc:date>
    </item>
    <item>
      <title>Re: Kinetis I2C MQX code</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Kinetis-I2C-MQX-code/m-p/146658#M143</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That sounds great. I look forward to seeing it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Jul 2011 22:06:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Kinetis-I2C-MQX-code/m-p/146658#M143</guid>
      <dc:creator>ERussell</dc:creator>
      <dc:date>2011-07-07T22:06:24Z</dc:date>
    </item>
    <item>
      <title>Re: Kinetis I2C MQX code</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Kinetis-I2C-MQX-code/m-p/146659#M144</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is Processor Expert I2C demo application with MQX for TWR-MK60. There are two zip files. One with MK60 BSP (with integrated Processor Expert project) and the second one with demo application using Processor Expert I2C component from BSP. Just put BSP into MQX proper location, build BSP and demo application. Demo application reads data from on-board accelerometer. Feel free to contact me if any problem.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Marek V.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Jul 2011 20:08:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Kinetis-I2C-MQX-code/m-p/146659#M144</guid>
      <dc:creator>marek_vinkler</dc:creator>
      <dc:date>2011-07-14T20:08:47Z</dc:date>
    </item>
    <item>
      <title>Re: Kinetis I2C MQX code</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Kinetis-I2C-MQX-code/m-p/146660#M145</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for the demo. I was able to get it running. It uses an interrupt driven interface and I was wondering if you could provide a polled version as well?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also I tried using breakpoints and found that they caused a transmission timeout condition, even when only one breakpoint was used (hardware or software) and was placed before a call to ReadACCRegs(). &amp;nbsp;Is it not possible to use breakpoints while debugging when using the Timer?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 16 Jul 2011 03:01:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Kinetis-I2C-MQX-code/m-p/146660#M145</guid>
      <dc:creator>ERussell</dc:creator>
      <dc:date>2011-07-16T03:01:34Z</dc:date>
    </item>
    <item>
      <title>Re: Kinetis I2C MQX code</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Kinetis-I2C-MQX-code/m-p/146661#M146</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Where can I download the two zip files ? &lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Richard&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Aug 2014 16:53:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Kinetis-I2C-MQX-code/m-p/146661#M146</guid>
      <dc:creator>richardtseng</dc:creator>
      <dc:date>2014-08-15T16:53:52Z</dc:date>
    </item>
    <item>
      <title>Re: Kinetis I2C MQX code</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Kinetis-I2C-MQX-code/m-p/146662#M147</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Where can I download this sample application.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Abid&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 29 Nov 2015 18:40:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Kinetis-I2C-MQX-code/m-p/146662#M147</guid>
      <dc:creator>abidesmail</dc:creator>
      <dc:date>2015-11-29T18:40:43Z</dc:date>
    </item>
  </channel>
</rss>

