<?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>MCUXpresso Config ToolsのトピックRe: Need help witn I2C code (using Peripheral Config Tool)</title>
    <link>https://community.nxp.com/t5/MCUXpresso-Config-Tools/Need-help-witn-I2C-code-using-Peripheral-Config-Tool/m-p/2000512#M1880</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/182695"&gt;@simmania&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please let us know your chip part number thus we can assign right engineer to answer your questions.&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Jun Zhang&lt;/P&gt;</description>
    <pubDate>Sat, 23 Nov 2024 13:47:55 GMT</pubDate>
    <dc:creator>ZhangJennie</dc:creator>
    <dc:date>2024-11-23T13:47:55Z</dc:date>
    <item>
      <title>Need help witn I2C code (using Peripheral Config Tool)</title>
      <link>https://community.nxp.com/t5/MCUXpresso-Config-Tools/Need-help-witn-I2C-code-using-Peripheral-Config-Tool/m-p/2000412#M1879</link>
      <description>&lt;P&gt;I need to use the I2C1 peripheral. I checked the example programs. But I must say that is not really example code. Because with example code I expect good comments explaining the why's and how's. But there is zero comments! As a programmer I would never write such code, and certainly not example code!&lt;/P&gt;&lt;P&gt;But what is worst, the examples do not use the Peripheral and Clock Config Tools while that is said to be the preferred way of working!&lt;/P&gt;&lt;P&gt;So I have to figure everything out myself. But without good examples that is hard. Very hard.&lt;/P&gt;&lt;P&gt;For instance: one can choose one of the modes: Polling, Interrupts, Transfer, eDMA and RTOS. Is there any explanation somewhere what they exactly mean?&lt;BR /&gt;Is a programmer I think I have an idea of Polling, Interrupt and eDMA. But what is Transfer? They all transfer data. And why is RTOS is separate mode. Isn't RTOS also eDMA or Interrupts?&lt;/P&gt;&lt;P&gt;If I choose one of these modes, which function am I supposed to use? Are those the same as the examples that are not based on the Peripheral Config Tools?&lt;/P&gt;&lt;P&gt;What is the expected way to find you way around?&lt;/P&gt;&lt;P&gt;(And please, please, please, give us example code that uses the Config Tools!)&lt;/P&gt;</description>
      <pubDate>Fri, 22 Nov 2024 22:49:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-Config-Tools/Need-help-witn-I2C-code-using-Peripheral-Config-Tool/m-p/2000412#M1879</guid>
      <dc:creator>simmania</dc:creator>
      <dc:date>2024-11-22T22:49:39Z</dc:date>
    </item>
    <item>
      <title>Re: Need help witn I2C code (using Peripheral Config Tool)</title>
      <link>https://community.nxp.com/t5/MCUXpresso-Config-Tools/Need-help-witn-I2C-code-using-Peripheral-Config-Tool/m-p/2000512#M1880</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/182695"&gt;@simmania&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please let us know your chip part number thus we can assign right engineer to answer your questions.&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Jun Zhang&lt;/P&gt;</description>
      <pubDate>Sat, 23 Nov 2024 13:47:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-Config-Tools/Need-help-witn-I2C-code-using-Peripheral-Config-Tool/m-p/2000512#M1880</guid>
      <dc:creator>ZhangJennie</dc:creator>
      <dc:date>2024-11-23T13:47:55Z</dc:date>
    </item>
    <item>
      <title>Re: Need help witn I2C code (using Peripheral Config Tool)</title>
      <link>https://community.nxp.com/t5/MCUXpresso-Config-Tools/Need-help-witn-I2C-code-using-Peripheral-Config-Tool/m-p/2000515#M1881</link>
      <description>&lt;P&gt;I'm using the MIMXRT1010-EVK board.&lt;BR /&gt;&lt;BR /&gt;I copied some code from the example 'evkmimxrt1010_lpi2c_interrupt_b2b_transfer_master' into a new project. I did configure the Pins, Clock and Peripheral for the LPI2C1 port with the config tools, so I removed that code from the main function. But it does not work. While the example project did work.&lt;/P&gt;&lt;P&gt;So what am I doing wrong?&lt;BR /&gt;&lt;BR /&gt;The clock for the LPI2C is configured for 10MHz, The pins GPIO_01 and GPIO_02 are assigned to the LPI2C1. And the peripheral is configured as shown in the attached picture.&lt;/P&gt;&lt;P&gt;The main code is listed below.&lt;/P&gt;&lt;P&gt;Note that when I run this program I do see activity on the I2C lines. It looks like the start condition is generated and then immediately both lines go high and stay high. The interrupt routine is called with &lt;SPAN&gt;status != kStatus_Success&lt;/SPAN&gt;. The value is 905, but I can not found out what that means.&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;P&gt;&lt;SPAN&gt;#include&lt;/SPAN&gt; &lt;SPAN&gt;&amp;lt;stdio.h&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;#include&lt;/SPAN&gt; &lt;SPAN&gt;"board.h"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;#include&lt;/SPAN&gt; &lt;SPAN&gt;"peripherals.h"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;#include&lt;/SPAN&gt; &lt;SPAN&gt;"pin_mux.h"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;#include&lt;/SPAN&gt; &lt;SPAN&gt;"clock_config.h"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;#include&lt;/SPAN&gt; &lt;SPAN&gt;"fsl_debug_console.h"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;#include&lt;/SPAN&gt; &lt;SPAN&gt;&amp;lt;string.h&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;#include&lt;/SPAN&gt; &lt;SPAN&gt;"fsl_lpi2c.h"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;#define&lt;/SPAN&gt;&lt;SPAN&gt; EXAMPLE_I2C_MASTER_BASE (LPI2C1_BASE)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;#define&lt;/SPAN&gt;&lt;SPAN&gt; EXAMPLE_I2C_MASTER ((LPI2C_Type *)EXAMPLE_I2C_MASTER_BASE)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;#define&lt;/SPAN&gt;&lt;SPAN&gt; I2C_MASTER_SLAVE_ADDR_7BIT 0x1AU&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;//&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;// Global variables&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;//&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;lpi2c_master_handle_t&lt;/SPAN&gt;&lt;SPAN&gt; g_m_handle;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;volatile&lt;/SPAN&gt;&lt;SPAN&gt; bool g_MasterCompletionFlag = false;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;volatile&lt;/SPAN&gt;&lt;SPAN&gt; bool g_MasterNackFlag = false;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;static&lt;/SPAN&gt; &lt;SPAN&gt;void&lt;/SPAN&gt; &lt;SPAN&gt;lpi2c_master_callback&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;LPI2C_Type&lt;/SPAN&gt;&lt;SPAN&gt; *base, &lt;/SPAN&gt;&lt;SPAN&gt;lpi2c_master_handle_t&lt;/SPAN&gt;&lt;SPAN&gt; *handle, &lt;/SPAN&gt;&lt;SPAN&gt;status_t&lt;/SPAN&gt;&lt;SPAN&gt; status, &lt;/SPAN&gt;&lt;SPAN&gt;void&lt;/SPAN&gt;&lt;SPAN&gt; *userData)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;PRINTF(&lt;/SPAN&gt;&lt;SPAN&gt;"\r\n*** INT\r\n"&lt;/SPAN&gt;&lt;SPAN&gt;);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;if&lt;/SPAN&gt;&lt;SPAN&gt; (status == &lt;/SPAN&gt;&lt;SPAN&gt;kStatus_LPI2C_Nak&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; g_MasterNackFlag = true;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;else&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; g_MasterCompletionFlag = true;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* Display failure information when status is not success. */&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if&lt;/SPAN&gt;&lt;SPAN&gt; (status != &lt;/SPAN&gt;&lt;SPAN&gt;kStatus_Success&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; PRINTF(&lt;/SPAN&gt;&lt;SPAN&gt;"\r\n*** Error &lt;/SPAN&gt;&lt;SPAN&gt;occured&lt;/SPAN&gt;&lt;SPAN&gt; during transfer! status = %d\r\n"&lt;/SPAN&gt;&lt;SPAN&gt;, status);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;/*&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;* @brief Application entry point.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;*/&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;int&lt;/SPAN&gt; &lt;SPAN&gt;main&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;void&lt;/SPAN&gt;&lt;SPAN&gt;) {&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;/* &lt;/SPAN&gt;&lt;SPAN&gt;Init&lt;/SPAN&gt;&lt;SPAN&gt; board hardware. */&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;BOARD_ConfigMPU();&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;BOARD_InitBootPins();&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;BOARD_InitBootClocks();&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;BOARD_InitBootPeripherals();&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;#ifndef&lt;/SPAN&gt;&lt;SPAN&gt; BOARD_INIT_DEBUG_CONSOLE_PERIPHERAL&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;/* &lt;/SPAN&gt;&lt;SPAN&gt;Init&lt;/SPAN&gt;&lt;SPAN&gt; FSL debug console. */&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;BOARD_InitDebugConsole();&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;#endif&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;lpi2c_master_transfer_t&lt;/SPAN&gt;&lt;SPAN&gt; masterXfer = {0};&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;status_t&lt;/SPAN&gt;&lt;SPAN&gt; reVal = &lt;/SPAN&gt;&lt;SPAN&gt;kStatus_Fail&lt;/SPAN&gt;&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;/* Create the LPI2C handle for the non-blocking transfer */&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;LPI2C_MasterTransferCreateHandle(EXAMPLE_I2C_MASTER, &amp;amp;g_m_handle, lpi2c_master_callback, NULL);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;PRINTF(&lt;/SPAN&gt;&lt;SPAN&gt;"\r\nSend data to slave...\r\n"&lt;/SPAN&gt;&lt;SPAN&gt;);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;uint8_t&lt;/SPAN&gt;&lt;SPAN&gt; deviceAddress = 0x01U;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;uint8_t&lt;/SPAN&gt;&lt;SPAN&gt; data[1] = {0xAA};&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;masterXfer.&lt;/SPAN&gt;&lt;SPAN&gt;slaveAddress&lt;/SPAN&gt;&lt;SPAN&gt; = I2C_MASTER_SLAVE_ADDR_7BIT;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;masterXfer.&lt;/SPAN&gt;&lt;SPAN&gt;direction&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;kLPI2C_Write&lt;/SPAN&gt;&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;masterXfer.&lt;/SPAN&gt;&lt;SPAN&gt;subaddress&lt;/SPAN&gt;&lt;SPAN&gt; = (&lt;/SPAN&gt;&lt;SPAN&gt;uint32_t&lt;/SPAN&gt;&lt;SPAN&gt;)deviceAddress;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;masterXfer.&lt;/SPAN&gt;&lt;SPAN&gt;subaddressSize&lt;/SPAN&gt;&lt;SPAN&gt; = 1;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;masterXfer.&lt;/SPAN&gt;&lt;SPAN&gt;data&lt;/SPAN&gt;&lt;SPAN&gt; = data;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;masterXfer.&lt;/SPAN&gt;&lt;SPAN&gt;dataSize&lt;/SPAN&gt;&lt;SPAN&gt; = 1;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;masterXfer.&lt;/SPAN&gt;&lt;SPAN&gt;flags&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;kLPI2C_TransferDefaultFlag&lt;/SPAN&gt;&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;/* Send master non-blocking data to slave */&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;reVal = LPI2C_MasterTransferNonBlocking(EXAMPLE_I2C_MASTER, &amp;amp;g_m_handle, &amp;amp;masterXfer);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;if&lt;/SPAN&gt;&lt;SPAN&gt; (reVal != &lt;/SPAN&gt;&lt;SPAN&gt;kStatus_Success&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; PRINTF(&lt;/SPAN&gt;&lt;SPAN&gt;"\r\nI2C transfer error!\r\n"&lt;/SPAN&gt;&lt;SPAN&gt;);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; return&lt;/SPAN&gt;&lt;SPAN&gt; -1;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;/* Wait for transfer completed. */&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;while&lt;/SPAN&gt;&lt;SPAN&gt; ((!g_MasterCompletionFlag) &amp;amp;&amp;amp; (!g_MasterNackFlag))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;if&lt;/SPAN&gt;&lt;SPAN&gt; (g_MasterNackFlag)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; PRINTF(&lt;/SPAN&gt;&lt;SPAN&gt;"- Master &lt;/SPAN&gt;&lt;SPAN&gt;nacked&lt;/SPAN&gt;&lt;SPAN&gt; by slave!\r\n"&lt;/SPAN&gt;&lt;SPAN&gt;);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; g_MasterNackFlag = false;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;g_MasterCompletionFlag = false;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;PRINTF(&lt;/SPAN&gt;&lt;SPAN&gt;"\r\nEnd of LPI2C example.\r\n"&lt;/SPAN&gt;&lt;SPAN&gt;);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;while&lt;/SPAN&gt;&lt;SPAN&gt; (1)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;return&lt;/SPAN&gt;&lt;SPAN&gt; 0 ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Sat, 23 Nov 2024 14:59:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-Config-Tools/Need-help-witn-I2C-code-using-Peripheral-Config-Tool/m-p/2000515#M1881</guid>
      <dc:creator>simmania</dc:creator>
      <dc:date>2024-11-23T14:59:14Z</dc:date>
    </item>
    <item>
      <title>Re: Need help witn I2C code (using Peripheral Config Tool)</title>
      <link>https://community.nxp.com/t5/MCUXpresso-Config-Tools/Need-help-witn-I2C-code-using-Peripheral-Config-Tool/m-p/2000516#M1882</link>
      <description>&lt;P&gt;Update:&lt;/P&gt;&lt;P&gt;When create a new project and copy the whole file with the main function of the working example into this new project, it gives the same problem!&lt;BR /&gt;So only a start condition on the I2C bus and then it stops.&lt;/P&gt;&lt;P&gt;What is different from a example and a new project that can cause this?&lt;/P&gt;</description>
      <pubDate>Sat, 23 Nov 2024 15:46:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-Config-Tools/Need-help-witn-I2C-code-using-Peripheral-Config-Tool/m-p/2000516#M1882</guid>
      <dc:creator>simmania</dc:creator>
      <dc:date>2024-11-23T15:46:58Z</dc:date>
    </item>
    <item>
      <title>Re: Need help witn I2C code (using Peripheral Config Tool)</title>
      <link>https://community.nxp.com/t5/MCUXpresso-Config-Tools/Need-help-witn-I2C-code-using-Peripheral-Config-Tool/m-p/2000679#M1883</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/182695"&gt;@simmania&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Thank you so much for your interest in our products and for using our community.&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I'm sorry that you have&amp;nbsp; problem while using the NXP config tool.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I want to know did you copy&amp;nbsp; evkmimxrt1010_lpi2c_interrupt_b2b_transfer_master.mex file&amp;nbsp; &amp;nbsp;into your new project?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mayliu1_1-1732507364517.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/312194iB7F9D63E4D822CA5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="mayliu1_1-1732507364517.png" alt="mayliu1_1-1732507364517.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;If you change I2C pin, Please double check I2C PIN configuration. Especially&amp;nbsp; Software Input On and Open drain need to be set enable.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mayliu1_3-1732507752839.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/312197iC6DE0262E29530EA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="mayliu1_3-1732507752839.png" alt="mayliu1_3-1732507752839.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;If you want to know more about NXP Config Tool, maybe you refer "MCUXpresso_IDE_ConfigTools_User_Guide.pdf",&amp;nbsp; This file is in your MCUXPresso IDE installed path.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mayliu1_4-1732508054467.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/312200i720304AE1C347CDC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="mayliu1_4-1732508054467.png" alt="mayliu1_4-1732508054467.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Wish it helps you.&lt;BR /&gt;If you still have question about it, please kindly let me know.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards&lt;/P&gt;
&lt;P&gt;mayliu&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 25 Nov 2024 04:15:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-Config-Tools/Need-help-witn-I2C-code-using-Peripheral-Config-Tool/m-p/2000679#M1883</guid>
      <dc:creator>mayliu1</dc:creator>
      <dc:date>2024-11-25T04:15:59Z</dc:date>
    </item>
    <item>
      <title>Re: Need help witn I2C code (using Peripheral Config Tool)</title>
      <link>https://community.nxp.com/t5/MCUXpresso-Config-Tools/Need-help-witn-I2C-code-using-Peripheral-Config-Tool/m-p/2002251#M1887</link>
      <description>&lt;P&gt;No, I did not copy the mex file, but I configured the I2C IO pins properly and checked for correct clock in the Clock Config tool.&lt;/P&gt;</description>
      <pubDate>Tue, 26 Nov 2024 20:45:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-Config-Tools/Need-help-witn-I2C-code-using-Peripheral-Config-Tool/m-p/2002251#M1887</guid>
      <dc:creator>simmania</dc:creator>
      <dc:date>2024-11-26T20:45:46Z</dc:date>
    </item>
    <item>
      <title>Re: Need help witn I2C code (using Peripheral Config Tool)</title>
      <link>https://community.nxp.com/t5/MCUXpresso-Config-Tools/Need-help-witn-I2C-code-using-Peripheral-Config-Tool/m-p/2003417#M1889</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/182695"&gt;@simmania&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for your reply.&lt;/P&gt;
&lt;P&gt;I did a validation as you do.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I create a new project, and set pin in Config Tool, I use the I2C pins just as you do.&lt;/P&gt;
&lt;P&gt;and copy driver files from&amp;nbsp; evkmimxrt1010_lpi2c_interrupt_b2b_transfer_master to the new project, also I copy code from&amp;nbsp;evkmimxrt1010_lpi2c_interrupt_b2b_transfer_master.c to the new project file&amp;nbsp;MIMXRT1011_Project.c&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mayliu1_0-1732775516277.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/313023iAE2FB1F14F5375F3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="mayliu1_0-1732775516277.png" alt="mayliu1_0-1732775516277.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mayliu1_3-1732775731977.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/313026i5AADF36B4598AEE0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="mayliu1_3-1732775731977.png" alt="mayliu1_3-1732775731977.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I use MIMXRT1064-EVK board as I 2C slave.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mayliu1_1-1732775551564.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/313024i333E7C4D03D3A907/image-size/medium?v=v2&amp;amp;px=400" role="button" title="mayliu1_1-1732775551564.png" alt="mayliu1_1-1732775551564.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;I test that I2C can work normal.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mayliu1_2-1732775664674.jpeg" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/313025i6F077C753A7D8B3C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="mayliu1_2-1732775664674.jpeg" alt="mayliu1_2-1732775664674.jpeg" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Wish it helps you.&lt;BR /&gt;If you still have question about it, please kindly let me know.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;BR&lt;/P&gt;
&lt;P&gt;mayliu&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Nov 2024 06:38:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-Config-Tools/Need-help-witn-I2C-code-using-Peripheral-Config-Tool/m-p/2003417#M1889</guid>
      <dc:creator>mayliu1</dc:creator>
      <dc:date>2024-11-28T06:38:04Z</dc:date>
    </item>
  </channel>
</rss>

