<?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>LPC MicrocontrollersのトピックRe: I2C not working on FLEXCOMM5</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/I2C-not-working-on-FLEXCOMM5/m-p/1209329#M43511</link>
    <description>&lt;P&gt;Yes,&amp;nbsp;&lt;SPAN&gt;paulsanders is right. How about it now after change it?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Alice&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 11 Jan 2021 03:00:06 GMT</pubDate>
    <dc:creator>Alice_Yang</dc:creator>
    <dc:date>2021-01-11T03:00:06Z</dc:date>
    <item>
      <title>I2C not working on FLEXCOMM5</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/I2C-not-working-on-FLEXCOMM5/m-p/1192651#M43122</link>
      <description>&lt;P&gt;I am using the LPC54606 processor and I have written code with an I2C bus on FLEXXOMM2 and it works perfectly.&lt;BR /&gt;I have since designed a new PCA (same LPC54606) where the I2C is now on the FLEXCOMM5 port and the I2C does not work and gets lost waiting for I2C.&lt;/P&gt;&lt;P&gt;I have turned off all other code and it still does not work.&amp;nbsp; I then changed it back to FLEXCOMM2 and looked at the pins and the SCL pin and saw that it was trying to clock (the circuit is not designed to have I2C on that pin).&amp;nbsp; So I know the code does work.&lt;/P&gt;&lt;P&gt;Does anybody have any ideas on what could be wrong?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;#define I2C_MASTER_BASE ((I2C_Type *)I2C2_BASE)&lt;BR /&gt;#define I2C_MASTER_CLK_SRC kCLOCK_Flexcomm5&lt;BR /&gt;#define I2C_MASTER_CLK kFRO12M_to_FLEXCOMM5&lt;/P&gt;&lt;P&gt;void I2C_Init(ENUM_I2C_SPEED Speed)&lt;BR /&gt;{&lt;BR /&gt;i2c_master_config_t MasterConfig;&lt;/P&gt;&lt;P&gt;CLOCK_AttachClk(I2C_MASTER_CLK);&lt;/P&gt;&lt;P&gt;NVIC_SetPriority(IRQ_I2C, IRQ_PRIORITY_I2C);&lt;/P&gt;&lt;P&gt;// Change the default baudrate configuration&lt;BR /&gt;MasterConfig.enableMaster = true;&lt;BR /&gt;MasterConfig.baudRate_Bps = (uint32_t)Speed;&lt;BR /&gt;//MasterConfig.enableTimeout = true;&lt;/P&gt;&lt;P&gt;// Initialize the I2C master peripheral&lt;BR /&gt;I2C_MasterInit(I2C_MASTER_BASE, &amp;amp;MasterConfig, CLOCK_GetFreq(I2C_MASTER_CLK_SRC));&lt;BR /&gt;&lt;BR /&gt;// Enable TimeOut&lt;BR /&gt;I2C_MASTER_BASE-&amp;gt;CFG |= 0x8;&lt;/P&gt;&lt;P&gt;// Create the I2C handle for the non-blocking transfer&lt;BR /&gt;I2C_MasterTransferCreateHandle(I2C_MASTER_BASE, &amp;amp;m_I2C_Handle, I2C_Callback, NULL);&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The base problem seems to be the "CLOCK_AttachClk"&lt;/P&gt;</description>
      <pubDate>Wed, 02 Dec 2020 21:21:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/I2C-not-working-on-FLEXCOMM5/m-p/1192651#M43122</guid>
      <dc:creator>georgechancello</dc:creator>
      <dc:date>2020-12-02T21:21:29Z</dc:date>
    </item>
    <item>
      <title>Re: I2C not working on FLEXCOMM5</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/I2C-not-working-on-FLEXCOMM5/m-p/1208854#M43494</link>
      <description>&lt;P&gt;Try changing #define I2C_MASTER_BASE ((I2C_Type *)I2C2_BASE)&lt;/P&gt;&lt;P&gt;For #define I2C_MASTER_BASE ((I2C_Type *)I2C5_BASE)&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;</description>
      <pubDate>Fri, 08 Jan 2021 09:45:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/I2C-not-working-on-FLEXCOMM5/m-p/1208854#M43494</guid>
      <dc:creator>sanders7284</dc:creator>
      <dc:date>2021-01-08T09:45:01Z</dc:date>
    </item>
    <item>
      <title>Re: I2C not working on FLEXCOMM5</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/I2C-not-working-on-FLEXCOMM5/m-p/1209329#M43511</link>
      <description>&lt;P&gt;Yes,&amp;nbsp;&lt;SPAN&gt;paulsanders is right. How about it now after change it?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Alice&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Jan 2021 03:00:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/I2C-not-working-on-FLEXCOMM5/m-p/1209329#M43511</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2021-01-11T03:00:06Z</dc:date>
    </item>
    <item>
      <title>Re: I2C not working on FLEXCOMM5</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/I2C-not-working-on-FLEXCOMM5/m-p/1609356#M51798</link>
      <description>&lt;P&gt;Did you end up getting it working? I encounter the same issue.&lt;/P&gt;</description>
      <pubDate>Fri, 03 Mar 2023 16:52:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/I2C-not-working-on-FLEXCOMM5/m-p/1609356#M51798</guid>
      <dc:creator>adi_mb</dc:creator>
      <dc:date>2023-03-03T16:52:05Z</dc:date>
    </item>
  </channel>
</rss>

