<?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: Using CLEV663B Blueboard Rev3 with Raspberry Pi 3 and I2C in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/Using-CLEV663B-Blueboard-Rev3-with-Raspberry-Pi-3-and-I2C/m-p/1675484#M53223</link>
    <description>&lt;P&gt;Good day,&lt;/P&gt;&lt;P&gt;I have the CLRC66303 connected over i2c to the Raspberry pi. I see the address "2b" with i2c detect.&lt;/P&gt;&lt;P&gt;Is there any example in C or Python just to see if the whole thing it is working ?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you,&lt;BR /&gt;Catalin&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sun, 25 Jun 2023 12:06:46 GMT</pubDate>
    <dc:creator>catalin_alb</dc:creator>
    <dc:date>2023-06-25T12:06:46Z</dc:date>
    <item>
      <title>Using CLEV663B Blueboard Rev3 with Raspberry Pi 3 and I2C</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Using-CLEV663B-Blueboard-Rev3-with-Raspberry-Pi-3-and-I2C/m-p/700351#M28195</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everyone,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For some time now, I'm trying to get the CLEV663B Blueboard Rev3 working with the Raspberry Pi. With no luck, I've tried using SPI and since I will have to use I2C in the end, I'm now trying to communicate via I2C.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The CLEV663B is functionnal using a LPC11U68 and SPI.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For my latest tests, you will find below my configuration :&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;- NXPNFCRDLIB LINUX SW PACKAGE (v4.040.05.011646_20161115) , sw3693.zip.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;The only file modified in the package is the NxpNfcRdLib/types/ph_NxpBuild_Lpc.h and here the modifications :&lt;/P&gt;&lt;P&gt;&amp;nbsp;comment line 64 :&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;//#define NXPBUILD_PH_LPC1769&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;uncomment line 67 :&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;#define NXPBUILD_PH_RASPBERRY_PI&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;comment line 85 and uncomment line 86 :&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;//#define NXPBUILD_PHBAL_REG_LINUX_USER_SPI&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;#define NXPBUILD_PHBAL_REG_LINUX_USER_I2C&lt;/SPAN&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;comment line 96 and uncomment line 97 :&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;//#define NXPBUILD_PHHAL_HW_RC523&lt;/P&gt;&lt;P&gt;#define NXPBUILD_PHHAL_HW_RC663&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;STRONG&gt;Soldering on the CLEV663B :&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have removed R15, R26 and R21 and placed the 0R resistor on R29, R16 and R20 (as instructed in&amp;nbsp;AN11211).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Pinout CLEV663B / RPi :&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Following the file NxpNfcRdLib/intfs/phPlatform_Port_Pi_RC633.h, here how I connect my two devices :&amp;nbsp;&lt;/P&gt;&lt;P&gt;Pins for 3.3V, 5V and GND are classicaly connected. The USB alim is also connected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE class="j-table jiveBorder" style="border: 1px solid #c6c6c6; width: 42.6065%;"&gt;&lt;THEAD&gt;&lt;TR style="background-color: #efefef;"&gt;&lt;TH style="width: 19%;"&gt;Raspberry PI 3&lt;/TH&gt;&lt;TH style="width: 10%;"&gt;CLEV663B REV 3&lt;/TH&gt;&lt;/TR&gt;&lt;/THEAD&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD style="width: 19%;"&gt;&lt;SPAN&gt;PIN&lt;/SPAN&gt; 3 &amp;nbsp; (GPIO2)&lt;/TD&gt;&lt;TD style="width: 10%;"&gt;SDA&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="width: 19%;"&gt;&lt;SPAN&gt;PIN&lt;/SPAN&gt; 5 &amp;nbsp; (GPIO3)&lt;/TD&gt;&lt;TD style="width: 10%;"&gt;SCL&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="width: 19%;"&gt;&lt;SPAN&gt;PIN&lt;/SPAN&gt; 7 &amp;nbsp; (GPIO4)&lt;/TD&gt;&lt;TD style="width: 10%;"&gt;AD0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="width: 19%;"&gt;PIN 11 (GPIO17)&lt;/TD&gt;&lt;TD style="width: 10%;"&gt;AD1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="width: 19%;"&gt;PIN 13 (GPIO27)&lt;/TD&gt;&lt;TD style="width: 10%;"&gt;P2.4&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="width: 19%;"&gt;PIN 15 (GPIO22)&lt;/TD&gt;&lt;TD style="width: 10%;"&gt;P2.5&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="width: 19%;"&gt;PIN 16 (GPIO23)&lt;/TD&gt;&lt;TD style="width: 10%;"&gt;P3.3&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="width: 19%;"&gt;PIN 18 (GPIO24)&lt;/TD&gt;&lt;TD style="width: 10%;"&gt;RST&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First of all, when I use `i2cdetect` on Raspbian to find the slave adress of the blueboard, frames leave the RPi but no answer from the Blueboard.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I deduce from the datasheet that the slave adress should be 0x28 (as configured in the config file). When I run the first example from the lib, I received the following error (continuously looping on it) :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;Line : 189 &amp;nbsp;Error - (0x010B) has occured : 0xCCEE CC-Component ID, EE-Error code&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;So according to the ph_Status.h, it's an error from RC communication in BAL Component Code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is someone have a hint or a solution to that particular issue ?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot in advance,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Florian Jouffreau&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Aug 2017 13:20:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Using-CLEV663B-Blueboard-Rev3-with-Raspberry-Pi-3-and-I2C/m-p/700351#M28195</guid>
      <dc:creator>florianjouffrea</dc:creator>
      <dc:date>2017-08-17T13:20:09Z</dc:date>
    </item>
    <item>
      <title>Re: Using CLEV663B Blueboard Rev3 with Raspberry Pi 3 and I2C</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Using-CLEV663B-Blueboard-Rev3-with-Raspberry-Pi-3-and-I2C/m-p/1675484#M53223</link>
      <description>&lt;P&gt;Good day,&lt;/P&gt;&lt;P&gt;I have the CLRC66303 connected over i2c to the Raspberry pi. I see the address "2b" with i2c detect.&lt;/P&gt;&lt;P&gt;Is there any example in C or Python just to see if the whole thing it is working ?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you,&lt;BR /&gt;Catalin&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 25 Jun 2023 12:06:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Using-CLEV663B-Blueboard-Rev3-with-Raspberry-Pi-3-and-I2C/m-p/1675484#M53223</guid>
      <dc:creator>catalin_alb</dc:creator>
      <dc:date>2023-06-25T12:06:46Z</dc:date>
    </item>
  </channel>
</rss>

