<?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: i2c Slave issue on KL25Z in Processor Expert Software</title>
    <link>https://community.nxp.com/t5/Processor-Expert-Software/i2c-Slave-issue-on-KL25Z/m-p/274326#M1816</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My first guess would be incorrect hardware connection, as the symptoms suggest talking "thin air" as in&amp;nbsp; "noise", but that is just a wild guess. Which turns out is 100% correct.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 27 Feb 2013 02:44:17 GMT</pubDate>
    <dc:creator>JimDon</dc:creator>
    <dc:date>2013-02-27T02:44:17Z</dc:date>
    <item>
      <title>i2c Slave issue on KL25Z</title>
      <link>https://community.nxp.com/t5/Processor-Expert-Software/i2c-Slave-issue-on-KL25Z/m-p/274325#M1815</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a KL25Z that I've been learning on.&amp;nbsp; I've recently started to work on making the board an i2c slave hooked up to a raspberry pi.&amp;nbsp; The pi i2c bus operates at 3.3v and has 1.8k pullups.&amp;nbsp; In Processor Expert I added an I2C_LDD component and set the following parameters:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I2C Channel: I2C1&lt;/P&gt;&lt;P&gt;Interrupt Service: enabled&lt;/P&gt;&lt;P&gt;Mode Selection: SLAVE&lt;/P&gt;&lt;P&gt;Address Mode: 7-bit&lt;/P&gt;&lt;P&gt;Slave address: 9&lt;/P&gt;&lt;P&gt;SDA Pin: PTE0&lt;/P&gt;&lt;P&gt;SCL Pin: PTE1&lt;/P&gt;&lt;P&gt;Enabled in init code: yes&lt;/P&gt;&lt;P&gt;Auto initlization: no&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also configured the bus for 100khz (pi default) by following the directions at &lt;A href="http://mcuoneclipse.com/2012/12/05/kl25z-and-i2c-missing-repeated-start-condition/" title="http://mcuoneclipse.com/2012/12/05/kl25z-and-i2c-missing-repeated-start-condition/"&gt;KL25Z and I2C: Missing Repeated Start Condition | MCU on Eclipse&lt;/A&gt; to avoid the pre-scaler issue.&amp;nbsp; I left all other parameters at their defaults.&amp;nbsp; After generating code I added the i2c _Init function to main() in ProcessorExpert.c, compiled and loaded the code onto the board.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Once loaded and hooked up to the i2c bus I ran i2cdetect on the pi and, instead of a device being listed at address 9, I see devices listed at nearly every address on the bus:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;root@pi-1:~# i2cdetect -y 1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&amp;nbsp; 1&amp;nbsp; 2&amp;nbsp; 3&amp;nbsp; 4&amp;nbsp; 5&amp;nbsp; 6&amp;nbsp; 7&amp;nbsp; 8&amp;nbsp; 9&amp;nbsp; a&amp;nbsp; b&amp;nbsp; c&amp;nbsp; d&amp;nbsp; e&amp;nbsp; f&lt;/P&gt;&lt;P&gt;00:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 03 04 05 06 07 08 -- -- -- 0c 0d 0e 0f&lt;/P&gt;&lt;P&gt;10: 10 11 12 13 14 15 -- -- -- -- 1a -- -- -- 1e 1f&lt;/P&gt;&lt;P&gt;20: 20 21 22 23 24 25 26 27 28 29 2a 2b 2c 2d 2e --&lt;/P&gt;&lt;P&gt;30: 30 -- -- 33 -- 35 36 37 38 39 3a 3b 3c 3d 3e 3f&lt;/P&gt;&lt;P&gt;40: 40 41 42 43 44 45 46 47 48 -- -- -- -- 4d -- --&lt;/P&gt;&lt;P&gt;50: 50 51 52 53 54 55 56 57 58 59 5a 5b 5c 5d 5e --&lt;/P&gt;&lt;P&gt;60: -- 61 -- -- -- 65 66 67 -- 69 6a 6b 6c 6d 6e 6f&lt;/P&gt;&lt;P&gt;70: 70 71 -- 73 74 75 76 --&lt;/P&gt;&lt;P&gt;root@pi-1:~#&lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Different runs show different addresses used.&amp;nbsp; As a sanity check I took an arduino that I already had running i2c code on and hooked it up to the bus (after removing the KL25Z).&amp;nbsp; It showed up at the expected address and nothing else was listed on the bus.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;I've been poring over documentation and searching through these forums but I haven't seen anything that would point me in the right direction.&amp;nbsp; Is there something I'm missing that someone can point me to?&amp;nbsp; Or is this is a bug?&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Feb 2013 15:22:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Processor-Expert-Software/i2c-Slave-issue-on-KL25Z/m-p/274325#M1815</guid>
      <dc:creator>jvr</dc:creator>
      <dc:date>2013-02-26T15:22:57Z</dc:date>
    </item>
    <item>
      <title>Re: i2c Slave issue on KL25Z</title>
      <link>https://community.nxp.com/t5/Processor-Expert-Software/i2c-Slave-issue-on-KL25Z/m-p/274326#M1816</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My first guess would be incorrect hardware connection, as the symptoms suggest talking "thin air" as in&amp;nbsp; "noise", but that is just a wild guess. Which turns out is 100% correct.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Feb 2013 02:44:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Processor-Expert-Software/i2c-Slave-issue-on-KL25Z/m-p/274326#M1816</guid>
      <dc:creator>JimDon</dc:creator>
      <dc:date>2013-02-27T02:44:17Z</dc:date>
    </item>
    <item>
      <title>Re: i2c Slave issue on KL25Z</title>
      <link>https://community.nxp.com/t5/Processor-Expert-Software/i2c-Slave-issue-on-KL25Z/m-p/274327#M1817</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I have tried I2C slave communication between Raspberry Pi (model B) and FREEDOM board - KL25Z.&lt;BR /&gt;My communication by master I2C0 (I don't have for I2C1 channel right S5 connector) was right.&lt;BR /&gt;To I2C0-master(raspi) is connected only one I2C slave device with 0x09 address:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;A href="mailto:pi@raspberrypi:~$"&gt;pi@raspberrypi:~$&lt;/A&gt; sudo i2cdetect -y 0&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&amp;nbsp; 1&amp;nbsp; 2&amp;nbsp; 3&amp;nbsp; 4&amp;nbsp; 5&amp;nbsp; 6&amp;nbsp; 7&amp;nbsp; 8&amp;nbsp; 9&amp;nbsp; a&amp;nbsp; b&amp;nbsp; c&amp;nbsp; d&amp;nbsp; e&amp;nbsp; f&lt;BR /&gt;00:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -- -- -- -- -- -- 09 -- -- -- -- -- --&lt;BR /&gt;10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --&lt;BR /&gt;20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --&lt;BR /&gt;30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --&lt;BR /&gt;40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --&lt;BR /&gt;50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --&lt;BR /&gt;60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --&lt;BR /&gt;70: -- -- -- -- -- -- -- --&lt;BR /&gt;&lt;A href="mailto:pi@raspberrypi:~$"&gt;pi@raspberrypi:~$&lt;/A&gt; sudo i2cdetect -y 0&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&amp;nbsp; 1&amp;nbsp; 2&amp;nbsp; 3&amp;nbsp; 4&amp;nbsp; 5&amp;nbsp; 6&amp;nbsp; 7&amp;nbsp; 8&amp;nbsp; 9&amp;nbsp; a&amp;nbsp; b&amp;nbsp; c&amp;nbsp; d&amp;nbsp; e&amp;nbsp; f&lt;BR /&gt;00:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -- -- -- -- -- -- 09 -- -- -- -- -- --&lt;BR /&gt;10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --&lt;BR /&gt;20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --&lt;BR /&gt;30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --&lt;BR /&gt;40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --&lt;BR /&gt;50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --&lt;BR /&gt;60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --&lt;BR /&gt;70: -- -- -- -- -- -- -- --&lt;BR /&gt;&lt;A href="mailto:pi@raspberrypi:~$"&gt;pi@raspberrypi:~$&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Could you please check connection between raspi and KL25?&lt;/P&gt;&lt;P&gt;KL25&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -&amp;gt; RasPi &lt;BR /&gt;xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx&lt;BR /&gt;I2C1_SDA(PTE0) -&amp;gt; SDA0(P1 - pin 3) &lt;BR /&gt;I2C1_SCL(PTE1) -&amp;gt; SCL0(P1 - pin 5)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; GND -&amp;gt; GND (P1 - pin 6)&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;My test projects is attached.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;BR /&gt;Jiri Rezler&lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Feb 2013 16:06:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Processor-Expert-Software/i2c-Slave-issue-on-KL25Z/m-p/274327#M1817</guid>
      <dc:creator>jiri_rezler</dc:creator>
      <dc:date>2013-02-28T16:06:11Z</dc:date>
    </item>
    <item>
      <title>Re: i2c Slave issue on KL25Z</title>
      <link>https://community.nxp.com/t5/Processor-Expert-Software/i2c-Slave-issue-on-KL25Z/m-p/274328#M1818</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok, here is the issue.&amp;nbsp; The cardboard inset that comes with the KL25 has a photo diagram of the board with the pins marked, which is what I have been working off of.&amp;nbsp; On that diagram, on figure2 where the pins are marked, PTE0 and PTE1 are reversed.&amp;nbsp; After your test program gave bad results I decided to check my soldering job on the pin headers by throwing together a quick LED blink test and testing each pin.&amp;nbsp; Sure enough I found them reversed.&amp;nbsp; With the wires flipped i2c behaves as expected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In hindsight that should have been obvious, an Arduino UNO's SDA and SCL pins match the correct layout for those two pins.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 03 Mar 2013 02:20:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Processor-Expert-Software/i2c-Slave-issue-on-KL25Z/m-p/274328#M1818</guid>
      <dc:creator>jvr</dc:creator>
      <dc:date>2013-03-03T02:20:08Z</dc:date>
    </item>
  </channel>
</rss>

