<?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 Problem In MK66FN2M0VLQ18 in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/I2C-Problem-In-MK66FN2M0VLQ18/m-p/1073153#M57352</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;Try to modify &lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;I2C_MASTER_SLAVE_ADDR_7BIT&lt;SPAN&gt;&amp;nbsp; to 0x50U&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a great day,&lt;BR /&gt;TIC&lt;/P&gt;&lt;P&gt;-------------------------------------------------------------------------------&lt;BR /&gt;Note:&lt;BR /&gt;- If this post answers your question, please click the "Mark Correct" button. Thank you!&lt;/P&gt;&lt;P&gt;- We are following threads for 7 weeks after the last post, later replies are ignored&lt;BR /&gt;Please open a new thread and refer to the closed one, if you have a related question at a later point in time.&lt;BR /&gt;------------------------------------------------------------------------------- &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 22 Jun 2020 07:31:43 GMT</pubDate>
    <dc:creator>nxf56274</dc:creator>
    <dc:date>2020-06-22T07:31:43Z</dc:date>
    <item>
      <title>I2C Problem In MK66FN2M0VLQ18</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/I2C-Problem-In-MK66FN2M0VLQ18/m-p/1073150#M57349</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;I am using the MK66FN2M0VLQ18 to communicate with&amp;nbsp;external EEPROM(24LC1026) with I2C interface, While interfacing with the EEPROM I a getting the NACK error what may be the problem. I am using the SDK of MK66.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With regards,&lt;/P&gt;&lt;P&gt;Sivakrishna&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 21 Jun 2020 08:34:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/I2C-Problem-In-MK66FN2M0VLQ18/m-p/1073150#M57349</guid>
      <dc:creator>durgasivakrishn</dc:creator>
      <dc:date>2020-06-21T08:34:36Z</dc:date>
    </item>
    <item>
      <title>Re: I2C Problem In MK66FN2M0VLQ18</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/I2C-Problem-In-MK66FN2M0VLQ18/m-p/1073151#M57350</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Any chance at getting more information?&amp;nbsp; Could you share you code and wiring?&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regardless, the first place to look for an I2C NACK error (after&amp;nbsp;checking your wiring and power) is the address that is being used to address the device.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I just did a quick look at the datasheet for the 24LC1026 and saw that the address sent to the peripheral device is 8 bits and includes four bits for the address, two chip address (set by the pins on the chip), a block bit and a read/write bit.&amp;nbsp; It's a little hard to visualize, but the address you give the Kinetis is shifted up by one and the read/write bit added to the hardware - so to get the correct address sent out to the chip, shift the device address down by one (or divide by 2) to put out the correct address on the bus.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you have A1, A2 tied low and you wanted to write to block 0 of the chip, you would be sending an address of 0b10100000 (0xA0) &lt;STRONG&gt;BUT&lt;/STRONG&gt; because of the read/write bit is handled in hardware and added to the address, you have to shift this down by one bit (to 0b01010000)&amp;nbsp;and set address to&amp;nbsp;0x50 for the&amp;nbsp;I2C hardare.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Take a look at what you have and let us know what you find.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;myke&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 21 Jun 2020 22:09:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/I2C-Problem-In-MK66FN2M0VLQ18/m-p/1073151#M57350</guid>
      <dc:creator>myke_predko</dc:creator>
      <dc:date>2020-06-21T22:09:59Z</dc:date>
    </item>
    <item>
      <title>Re: I2C Problem In MK66FN2M0VLQ18</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/I2C-Problem-In-MK66FN2M0VLQ18/m-p/1073152#M57351</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Myke,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your response, Here I am attaching the schematic and code. R99 is mounted and R48 is not mounted and EEPROM_WP pin is gpio making it low,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="shematic.JPG"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/113365i2453E9945A65AB4A/image-size/large?v=v2&amp;amp;px=999" role="button" title="shematic.JPG" alt="shematic.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;i2c_master_transfer_t Master_TX;&lt;BR /&gt;i2c_master_handle_t Master_TX_Handler;&lt;/P&gt;&lt;P&gt;uint8_t EEPROM_Tx[10]={0},EEPROM_Rx[10]={0},Return_Val=0;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;#define I2C_MASTER_SLAVE_ADDR_7BIT 0xA0U&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;void EEPROM_Write(void)&lt;BR /&gt;{&lt;BR /&gt; Master_TX.slaveAddress = I2C_MASTER_SLAVE_ADDR_7BIT;&lt;BR /&gt; Master_TX.direction = kI2C_Write;&lt;BR /&gt; Master_TX.subaddress = 0;&lt;BR /&gt; Master_TX.subaddressSize = 2;&lt;BR /&gt; Master_TX.data = EEPROM_Tx;&lt;BR /&gt; Master_TX.dataSize = 2;&lt;BR /&gt; Master_TX.flags = kI2C_TransferDefaultFlag;&lt;/P&gt;&lt;P&gt;EEPROM_Tx[0] = 0x10;&lt;BR /&gt; EEPROM_Tx[1] = 0x20;&lt;BR /&gt; &lt;BR /&gt; while(1)&lt;BR /&gt; {&lt;BR /&gt; Master_TX.direction = kI2C_Write;&lt;BR /&gt; Master_TX.data = EEPROM_Tx;&lt;BR /&gt; I2C_MasterTransferBlocking(I2C_EEPROM_PERIPHERAL, &amp;amp;Master_TX);&lt;/P&gt;&lt;P&gt;Delay(0xFFFF);&lt;BR /&gt; }&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;with regards,&lt;/P&gt;&lt;P&gt;Sivakrishna&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Jun 2020 04:17:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/I2C-Problem-In-MK66FN2M0VLQ18/m-p/1073152#M57351</guid>
      <dc:creator>durgasivakrishn</dc:creator>
      <dc:date>2020-06-22T04:17:36Z</dc:date>
    </item>
    <item>
      <title>Re: I2C Problem In MK66FN2M0VLQ18</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/I2C-Problem-In-MK66FN2M0VLQ18/m-p/1073153#M57352</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;Try to modify &lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;I2C_MASTER_SLAVE_ADDR_7BIT&lt;SPAN&gt;&amp;nbsp; to 0x50U&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a great day,&lt;BR /&gt;TIC&lt;/P&gt;&lt;P&gt;-------------------------------------------------------------------------------&lt;BR /&gt;Note:&lt;BR /&gt;- If this post answers your question, please click the "Mark Correct" button. Thank you!&lt;/P&gt;&lt;P&gt;- We are following threads for 7 weeks after the last post, later replies are ignored&lt;BR /&gt;Please open a new thread and refer to the closed one, if you have a related question at a later point in time.&lt;BR /&gt;------------------------------------------------------------------------------- &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Jun 2020 07:31:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/I2C-Problem-In-MK66FN2M0VLQ18/m-p/1073153#M57352</guid>
      <dc:creator>nxf56274</dc:creator>
      <dc:date>2020-06-22T07:31:43Z</dc:date>
    </item>
    <item>
      <title>Re: I2C Problem In MK66FN2M0VLQ18</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/I2C-Problem-In-MK66FN2M0VLQ18/m-p/1073154#M57353</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&amp;nbsp;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Sivakrishna,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;I think&amp;nbsp;Da Li and I are inagreement - try again with:&lt;/SPAN&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff; font-family: 'andale mono', monospace;"&gt;#define I2C_MASTER_SLAVE_ADDR_7BIT 0x50U&lt;/SPAN&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Let us know how you make out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;myke&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Jun 2020 14:02:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/I2C-Problem-In-MK66FN2M0VLQ18/m-p/1073154#M57353</guid>
      <dc:creator>myke_predko</dc:creator>
      <dc:date>2020-06-22T14:02:14Z</dc:date>
    </item>
    <item>
      <title>Re: I2C Problem In MK66FN2M0VLQ18</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/I2C-Problem-In-MK66FN2M0VLQ18/m-p/1073155#M57354</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;Thanks for both of you it is working fine I am able to&amp;nbsp;write and&amp;nbsp;read&amp;nbsp;from EEPROM, But I got 2 more questions&lt;/P&gt;&lt;P&gt;1.) In MK66FN20VLQ18 if we configure the pin as I2C line, By default open-drain configuration is not enabled?&lt;/P&gt;&lt;P&gt;2.)&amp;nbsp;After making the I2C pin as open-drain it is working fine(able to&amp;nbsp;write and&amp;nbsp;read&amp;nbsp;from EEPROM) in the flash but when I run in the debug SDA pin state changed to LOW and I am getting the BUSY error what may be the problem, I tried placing the delay after pin initialization and I2C initialization but it didn't work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With regards,&lt;/P&gt;&lt;P&gt;Sivakrishna&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jun 2020 02:04:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/I2C-Problem-In-MK66FN2M0VLQ18/m-p/1073155#M57354</guid>
      <dc:creator>durgasivakrishn</dc:creator>
      <dc:date>2020-06-23T02:04:12Z</dc:date>
    </item>
    <item>
      <title>Re: I2C Problem In MK66FN2M0VLQ18</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/I2C-Problem-In-MK66FN2M0VLQ18/m-p/1073156#M57355</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Durga,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can I ask how are you configuring the pins?&amp;nbsp; Can I also ask how do you know it's "working fine"?&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It doesn't sound like you are selecting the MUX option that is appropriate for the pins but are using the GPIO op\tion (usually MUX ALT1) when you should be using the I2C pin MUX selection.&amp;nbsp;&amp;nbsp;If you're using MCUXpresso, the easiest way to correctly specify the pin mux is to use the pin configuration wizard.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm not sure why you're having problems with single stepping (which is what I think you're talking about) as&amp;nbsp;using the SDK driver should work while single stepping without any issues.&amp;nbsp; Are you expecting the send to happen immediately following the return from&amp;nbsp;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;I2C_MasterTransferBlocking(I2C_EEPROM_PERIPHERAL, &amp;amp;Master_TX) call?&amp;nbsp; If so, you should wait until after the following delay call.&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;myke&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jun 2020 03:52:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/I2C-Problem-In-MK66FN2M0VLQ18/m-p/1073156#M57355</guid>
      <dc:creator>myke_predko</dc:creator>
      <dc:date>2020-06-23T03:52:37Z</dc:date>
    </item>
    <item>
      <title>Re: I2C Problem In MK66FN2M0VLQ18</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/I2C-Problem-In-MK66FN2M0VLQ18/m-p/1073157#M57356</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Myke,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your response, Here I am briefing the code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/* Port B Clock Gate Control: Clock enabled */&lt;BR /&gt; CLOCK_EnableClock(kCLOCK_PortB);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if use the below it is not working&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;|---------------------------------------- NOT WORKING&amp;nbsp;----------------------------------------|&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;/* PORTB2 (pin 83) is configured as I2C0_SCL */&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;PORT_SetPinMux(PORTB, 2U, kPORT_MuxAlt2);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/* PORTB3 (pin 84) is configured as I2C0_SDA */&lt;/P&gt;&lt;P&gt;PORT_SetPinMux(PORTB, 3U, kPORT_MuxAlt2);&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;|---------------------------------------- NOT WORKING&amp;nbsp;----------------------------------------|&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;|---------------------------------------- WORKING&amp;nbsp;----------------------------------------|&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN style="font-weight: 400;"&gt;if use the below&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-weight: 400;"&gt;it is&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-weight: 400;"&gt;working&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-weight: 400; "&gt;/* PORTB2 (pin 83) is configured as I2C0_SCL */&lt;BR /&gt; Pin_Config.openDrainEnable = kPORT_OpenDrainEnable;&lt;BR /&gt; Pin_Config.driveStrength = kPORT_LowDriveStrength;&lt;BR /&gt; Pin_Config.lockRegister = kPORT_UnlockRegister;&lt;BR /&gt; Pin_Config.mux = kPORT_MuxAlt2;&lt;BR /&gt; Pin_Config.pullSelect = kPORT_PullDisable;&lt;BR /&gt; Pin_Config.slewRate = kPORT_FastSlewRate;&lt;BR /&gt; &lt;BR /&gt; PORT_SetPinConfig(PORTB,2U,&amp;amp;Pin_Config);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-weight: 400; "&gt;/* PORTB3 (pin 84) is configured as I2C0_SDA */&lt;BR /&gt; Pin_Config.openDrainEnable = kPORT_OpenDrainEnable;&lt;BR /&gt; Pin_Config.driveStrength = kPORT_LowDriveStrength;&lt;BR /&gt; Pin_Config.lockRegister = kPORT_UnlockRegister;&lt;BR /&gt; Pin_Config.mux = kPORT_MuxAlt2;&lt;BR /&gt; Pin_Config.pullSelect = kPORT_PullDisable;&lt;BR /&gt; Pin_Config.slewRate = kPORT_FastSlewRate;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-weight: 400; "&gt;&lt;BR /&gt; PORT_SetPinConfig(PORTB,3U,&amp;amp;Pin_Config);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;|---------------------------------------- WORKING&amp;nbsp;----------------------------------------|&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jun 2020 04:02:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/I2C-Problem-In-MK66FN2M0VLQ18/m-p/1073157#M57356</guid>
      <dc:creator>durgasivakrishn</dc:creator>
      <dc:date>2020-06-23T04:02:53Z</dc:date>
    </item>
    <item>
      <title>Re: I2C Problem In MK66FN2M0VLQ18</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/I2C-Problem-In-MK66FN2M0VLQ18/m-p/1073158#M57357</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Myke,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am considering it is working fine because I am able to see pulses on the SDA pin, But if I do debug pulses are not coming and SDA is LOW.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Debug means I am going to debug mode using Ulink2 and making it full run in this scenario it is not working and the state of the SDA pin is going to LOW. Even I do the step over the same problem is arising.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With regards,&lt;/P&gt;&lt;P&gt;Sivakrishna&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jun 2020 04:10:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/I2C-Problem-In-MK66FN2M0VLQ18/m-p/1073158#M57357</guid>
      <dc:creator>durgasivakrishn</dc:creator>
      <dc:date>2020-06-23T04:10:17Z</dc:date>
    </item>
    <item>
      <title>Re: I2C Problem In MK66FN2M0VLQ18</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/I2C-Problem-In-MK66FN2M0VLQ18/m-p/1073159#M57358</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&amp;nbsp;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Sivakrishna,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;The code that I am using (and generated by the pin config wizard in pin_mux.c) is:&lt;/SPAN&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', monospace;"&gt;CLOCK_EnableClock(kCLOCK_PortB);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'andale mono', monospace;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-family: 'andale mono', monospace;"&gt;const port_pin_config_t portb2_pin37_config = {/* Internal pull-up resistor is enabled */&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'andale mono', monospace;"&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; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;kPORT_PullUp,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'andale mono', monospace;"&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; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;/* Fast slew rate is configured */&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'andale mono', monospace;"&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; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;kPORT_FastSlewRate,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'andale mono', monospace;"&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; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;/* Passive filter is disabled */&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'andale mono', monospace;"&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; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;kPORT_PassiveFilterDisable,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'andale mono', monospace;"&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; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;/* Open drain is enabled */&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'andale mono', monospace;"&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; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;kPORT_OpenDrainEnable,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'andale mono', monospace;"&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; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;/* Low drive strength is configured */&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'andale mono', monospace;"&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; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;kPORT_LowDriveStrength,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'andale mono', monospace;"&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; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;/* Pin is configured as I2C0_SCL */&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'andale mono', monospace;"&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; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;kPORT_MuxAlt2,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'andale mono', monospace;"&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; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;/* Pin Control Register fields [15:0] are not locked */&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'andale mono', monospace;"&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; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;kPORT_UnlockRegister};&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'andale mono', monospace;"&gt;/* PORTB2 (pin 37) is configured as I2C0_SCL */&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'andale mono', monospace;"&gt;&amp;nbsp; PORT_SetPinConfig(PORTB, 2U, &amp;amp;portb2_pin37_config);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', monospace;"&gt;const port_pin_config_t portb3_pin38_config = {/* Internal pull-up resistor is enabled */&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'andale mono', monospace;"&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; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;kPORT_PullUp,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'andale mono', monospace;"&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; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;/* Fast slew rate is configured */&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'andale mono', monospace;"&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; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;kPORT_FastSlewRate,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'andale mono', monospace;"&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; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;/* Passive filter is disabled */&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'andale mono', monospace;"&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; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;kPORT_PassiveFilterDisable,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'andale mono', monospace;"&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; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;/* Open drain is enabled */&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'andale mono', monospace;"&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; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;kPORT_OpenDrainEnable,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'andale mono', monospace;"&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; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;/* Low drive strength is configured */&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'andale mono', monospace;"&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; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;kPORT_LowDriveStrength,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'andale mono', monospace;"&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; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;/* Pin is configured as I2C0_SDA */&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'andale mono', monospace;"&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; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;kPORT_MuxAlt2,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'andale mono', monospace;"&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; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;/* Pin Control Register fields [15:0] are not locked */&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'andale mono', monospace;"&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; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;kPORT_UnlockRegister};&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'andale mono', monospace;"&gt; /* PORTB3 (pin 38) is configured as I2C0_SDA */&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'andale mono', monospace;"&gt;&amp;nbsp; PORT_SetPinConfig(PORTB, 3U, &amp;amp;portb3_pin38_config);&lt;/SPAN&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;The only difference I see it in the two snippets is that the internal pull up resistor is enabled in the wizard provided code.&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;When you say you're using "Ulink2" that's a P&amp;amp;E Micro debugger/programmer?&amp;nbsp; Have you reached out to them to ask about this?&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Sorry, I've seen OpenSDA strangeness when single stepping but I use the Segger J-Link Plus for my work and I definitely don't see what you are getting.&amp;nbsp; I can run at full speed or single step through I2C operations with noting that data send/clocking does not happen as you would expect).&amp;nbsp; I'm still not sure what you mean by "debug mode" - are you building the project differently to debug it?&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;myke&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jun 2020 14:14:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/I2C-Problem-In-MK66FN2M0VLQ18/m-p/1073159#M57358</guid>
      <dc:creator>myke_predko</dc:creator>
      <dc:date>2020-06-23T14:14:26Z</dc:date>
    </item>
    <item>
      <title>Re: I2C Problem In MK66FN2M0VLQ18</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/I2C-Problem-In-MK66FN2M0VLQ18/m-p/1073160#M57359</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Myke,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the information.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With regards,&lt;/P&gt;&lt;P&gt;Sivakrishna&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Jun 2020 01:27:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/I2C-Problem-In-MK66FN2M0VLQ18/m-p/1073160#M57359</guid>
      <dc:creator>durgasivakrishn</dc:creator>
      <dc:date>2020-06-26T01:27:53Z</dc:date>
    </item>
  </channel>
</rss>

