<?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>Kinetis MicrocontrollersのトピックRe: I2C works in Debug with Multilink universal, not in standalone</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/I2C-works-in-Debug-with-Multilink-universal-not-in-standalone/m-p/583035#M34444</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 know these informations, so for the moment I just boot from ROM Bootloader and I observe when the I2C peripheral is activated in the Bootloader it doesn't work correctly when switching to user application, I don't know why. This seems not be normal for me.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 11 Jul 2016 07:50:12 GMT</pubDate>
    <dc:creator>samc</dc:creator>
    <dc:date>2016-07-11T07:50:12Z</dc:date>
    <item>
      <title>I2C works in Debug with Multilink universal, not in standalone</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/I2C-works-in-Debug-with-Multilink-universal-not-in-standalone/m-p/583019#M34428</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 use the I2C bus of the MKL17Z256VFT4 at 400KHz. When I have the PE Multilink universal connected to the board it works perfectly, when I unplug the Mulitlink it always works but when I restart my board the I2C bus doesn't work. I know my program is running because I do a blink of a LED thanks to a PIT_Interrupt. I have 2 I2C slaves on the bus and no response of the both so I think it's from the MCU.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On BK000001.BMP it's I2C frame when it works and on BL00002.BMP when it doesn't work. This last appears just one time at the start-up of the MCU, after this the bus remains in Vcc State. I think the MCU try a first communication then abandons.&lt;/P&gt;&lt;P&gt;It seems the clock doesn't want to works, SDA fall to "0" but not the SCL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sam,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jun 2016 11:08:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/I2C-works-in-Debug-with-Multilink-universal-not-in-standalone/m-p/583019#M34428</guid>
      <dc:creator>samc</dc:creator>
      <dc:date>2016-06-28T11:08:53Z</dc:date>
    </item>
    <item>
      <title>Re: I2C works in Debug with Multilink universal, not in standalone</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/I2C-works-in-Debug-with-Multilink-universal-not-in-standalone/m-p/583020#M34429</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Samuel,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Could you tell me what the clock source you are using? Internal clock or external crystal?&lt;/P&gt;&lt;P&gt;&amp;nbsp; You said:&lt;SPAN style="color: #e23d39;"&gt;PE Multilink universal connected to the board it works perfectly, when I unplug the Mulitlink it always works but when I restart my board the I2C bus doesn't work. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #303030;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Do you mean, just connect the debugger, and don't enter in the debug mode? Or when do debugging the code works ok?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #303030;"&gt;&amp;nbsp; Besides, did you add the external pullup resistor in the I2C_CLK and I2C_DAT pin?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #303030;"&gt;&amp;nbsp; You can send me your project, I would like to help you to check it on my side.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #303030;"&gt;Waiting for your reply.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Jingjing&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Jun 2016 09:22:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/I2C-works-in-Debug-with-Multilink-universal-not-in-standalone/m-p/583020#M34429</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2016-06-29T09:22:51Z</dc:date>
    </item>
    <item>
      <title>Re: I2C works in Debug with Multilink universal, not in standalone</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/I2C-works-in-Debug-with-Multilink-universal-not-in-standalone/m-p/583021#M34430</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;- It's an external 12Mhz Crystal.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- It's when I debug the code, it works well. During this debug I unplug the Multilink and it always works.However when I restart my board (electrical reset) it doesn't work (with or without the multilink connected to the board). I did the test without debug mode but just flashing the MCU with KDS too and same result, just after flashing it's OK, when I unplug the probe always OK but after restart : KO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;External pull-up are soldered, it was 8k2 resistors, but rise time was so long and I placed two 1K in parallel for the 2 lines, so equivalent pull-up are 500 ohms for my tests (communication at 400kbits/s).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you give me an adress mail to send the project please ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope to resolve this problem rapidly because with this problem 2 important functionnalities of my design are KO, it's bad I need it ASAP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jun 2016 07:40:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/I2C-works-in-Debug-with-Multilink-universal-not-in-standalone/m-p/583021#M34430</guid>
      <dc:creator>samc</dc:creator>
      <dc:date>2016-06-30T07:40:28Z</dc:date>
    </item>
    <item>
      <title>Re: I2C works in Debug with Multilink universal, not in standalone</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/I2C-works-in-Debug-with-Multilink-universal-not-in-standalone/m-p/583022#M34431</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Samuel,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; You can attached your project directly.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; If it is confidential to you, you can delete all the other important code, just leave the I2C initialize and communication code.&lt;/P&gt;&lt;P&gt;&amp;nbsp; I will test it on my side.&lt;/P&gt;&lt;P&gt;&amp;nbsp; Now please test these points on your side:&lt;/P&gt;&lt;P&gt;1. bus clock frequent checking&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Please configure PTC3 as the CLKOUT, and output the bus clock, test it in debug and none debug mode independently.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Whether the bus frequency is changed.&lt;/P&gt;&lt;P&gt;2. Add some delay after power on in the main function, and before the I2C configuration.&lt;/P&gt;&lt;P&gt;&amp;nbsp; For example, add 1 second delay, then test it again.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. electrical reset, do you mean POR?&lt;/P&gt;&lt;P&gt;&amp;nbsp; Try use the pin reset in PTA4, don't use POR reset again.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Waiting for your reply!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Jingjing&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jun 2016 08:45:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/I2C-works-in-Debug-with-Multilink-universal-not-in-standalone/m-p/583022#M34431</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2016-06-30T08:45:35Z</dc:date>
    </item>
    <item>
      <title>Re: I2C works in Debug with Multilink universal, not in standalone</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/I2C-works-in-Debug-with-Multilink-universal-not-in-standalone/m-p/583023#M34432</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;1) I don't find how to configure PTC as CLKOUT with PE...otherwise I have a UART Tx chip connected on this pin pulling up the signal to Vcc, it seems not possible to send the CLK here...no ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) Delay have no effect...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3) Yest it's a POR. The regulator who supplies the MCU is "Enable or Disabled" by a battery powered hardware.&lt;/P&gt;&lt;P&gt;I tried to pull down PTA4 with no effect. I saw in the datasheet this pin is disabled when boot from ROM, it's my case.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can't post the complete project so I join a cleaned project. I tested it and he have a different behaviour, it seems that the MCU try to launch an I2C communication permanently without success, the CLK toggles chaotically. I can send the complete project only to a private mail.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jun 2016 10:07:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/I2C-works-in-Debug-with-Multilink-universal-not-in-standalone/m-p/583023#M34432</guid>
      <dc:creator>samc</dc:creator>
      <dc:date>2016-06-30T10:07:12Z</dc:date>
    </item>
    <item>
      <title>Re: I2C works in Debug with Multilink universal, not in standalone</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/I2C-works-in-Debug-with-Multilink-universal-not-in-standalone/m-p/583024#M34433</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi samuel,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; CLKOUT configuration, please add this code.&lt;/P&gt;&lt;P&gt;&amp;nbsp; SIM_SCGC5|=SIM_SCGC5_PORTC_MASK;&lt;/P&gt;&lt;P&gt;&amp;nbsp; PORTC_PCT3 = PORT_PCR_MUX(5) | PORT_PCR_PE_MASK_PORT_PCR_PS_MASK;&lt;/P&gt;&lt;P&gt;&amp;nbsp; SIM_SOPT2 = SIM_SOPT2_CLKOUTSEL(2) ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Then test the PTC3 pin on your board.&lt;/P&gt;&lt;P&gt;&amp;nbsp; About other questions, I will reply you after I check your sample code, please wait patiently.&lt;/P&gt;&lt;P&gt;&amp;nbsp; Thanks a lot for your understanding.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Jingjing&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Jul 2016 09:15:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/I2C-works-in-Debug-with-Multilink-universal-not-in-standalone/m-p/583024#M34433</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2016-07-01T09:15:15Z</dc:date>
    </item>
    <item>
      <title>Re: I2C works in Debug with Multilink universal, not in standalone</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/I2C-works-in-Debug-with-Multilink-universal-not-in-standalone/m-p/583025#M34434</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Isn't there an error on the second line of the code ? :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-&amp;nbsp; PORTC_PCT3 --&amp;gt; PORTC_PCR3&lt;/P&gt;&lt;P&gt;- PORT_PCR_PE_MASK_PORT_PCR_PS_MASK --&amp;gt; isn'' it a mix of 2 define ? eilther PORT_PCR_PE_MASK or PORT_PCR_PS_MASK ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think there will be a conflict with the Tx pin of another chip wonnected at this port but I will try.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EDIT :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tested with PORTC_PCR3 = PORT_PCR_PE_MASK and I have a Clock at 24 Mhz.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Jul 2016 09:51:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/I2C-works-in-Debug-with-Multilink-universal-not-in-standalone/m-p/583025#M34434</guid>
      <dc:creator>samc</dc:creator>
      <dc:date>2016-07-01T09:51:48Z</dc:date>
    </item>
    <item>
      <title>Re: I2C works in Debug with Multilink universal, not in standalone</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/I2C-works-in-Debug-with-Multilink-universal-not-in-standalone/m-p/583026#M34435</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think to find the problem. I did a test without bootloader at start and it seems to work...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EDIT :&amp;nbsp; I confirm the problem is when the MCU starts from bootloader!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With this it's OK :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/* Flash Configuration */&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; .section .FlashConfig, "a"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; .long 0xFFFFFFFF&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; .long 0xFFFFFFFF&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; .long 0xFFFFFFFF&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; .long 0xFFFF3FFE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With this it's KO :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/* Flash Configuration */&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; .section .FlashConfig, "a"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; .long 0xFFFFFFFF&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; .long 0xFFFFFFFF&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; .long 0xFFFFFFFF&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; .long 0xFFFFFFFE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have I forget everything in the code to avoid this problem ?&lt;/P&gt;&lt;P&gt;So I absolutely need of the bootloader at start.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Jul 2016 10:09:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/I2C-works-in-Debug-with-Multilink-universal-not-in-standalone/m-p/583026#M34435</guid>
      <dc:creator>samc</dc:creator>
      <dc:date>2016-07-01T10:09:14Z</dc:date>
    </item>
    <item>
      <title>Re: I2C works in Debug with Multilink universal, not in standalone</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/I2C-works-in-Debug-with-Multilink-universal-not-in-standalone/m-p/583027#M34436</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I just ran into something not entirely unlike this when adding a bootloader - my project was proven code migrated from CW6 to CW10 with Processor Expert so everything got shuffled around.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I discovered is that the linker file specified one entry point and the reset vector pointed to another.&amp;nbsp; Some of the startup code was being bypassed because the debugger apparently starts execution at the entry point as defined in the linker and not at the reset vector.&amp;nbsp; This had me cursing at the system for a good 20 minutes, trying to figure out why my UART was running at entirely the wrong speed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Scott&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 03 Jul 2016 05:13:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/I2C-works-in-Debug-with-Multilink-universal-not-in-standalone/m-p/583027#M34436</guid>
      <dc:creator>scottm</dc:creator>
      <dc:date>2016-07-03T05:13:24Z</dc:date>
    </item>
    <item>
      <title>Re: I2C works in Debug with Multilink universal, not in standalone</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/I2C-works-in-Debug-with-Multilink-universal-not-in-standalone/m-p/583028#M34437</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Samuel, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Yes, you are correct, I typed the wrong word, I want to write PORTC_PCR3, it is the type error, it should be:&lt;/P&gt;&lt;P&gt;&amp;nbsp; SIM_SCGC5|=SIM_SCGC5_PORTC_MASK;&lt;/P&gt;&lt;P&gt;&amp;nbsp; PORTC_PCR3 = PORT_PCR_MUX(5) | PORT_PCR_PE_MASK | PORT_PCR_PS_MASK;&lt;/P&gt;&lt;P&gt;&amp;nbsp; SIM_SOPT2 = SIM_SOPT2_CLKOUTSEL(2) ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But now, you already get the bus clock.&lt;/P&gt;&lt;P&gt;Jingjing&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Jul 2016 08:08:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/I2C-works-in-Debug-with-Multilink-universal-not-in-standalone/m-p/583028#M34437</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2016-07-04T08:08:38Z</dc:date>
    </item>
    <item>
      <title>Re: I2C works in Debug with Multilink universal, not in standalone</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/I2C-works-in-Debug-with-Multilink-universal-not-in-standalone/m-p/583029#M34438</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Samuel,&lt;/P&gt;&lt;P&gt;OK, thank you for your more information.&lt;/P&gt;&lt;P&gt;The main difference is the boot source selection in the FOPT area, 0x40d is the FOPT register data, if you configure it as 0XF3, it means, boot from flash. if you configure FOPT to 11, it means boot from ROOM.&lt;/P&gt;&lt;P&gt;&amp;nbsp; So, you can modify your application code, and let it run from the flash.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Jingjign&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Jul 2016 08:13:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/I2C-works-in-Debug-with-Multilink-universal-not-in-standalone/m-p/583029#M34438</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2016-07-04T08:13:56Z</dc:date>
    </item>
    <item>
      <title>Re: I2C works in Debug with Multilink universal, not in standalone</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/I2C-works-in-Debug-with-Multilink-universal-not-in-standalone/m-p/583030#M34439</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;Correction already done, Clock works well. You can find my observation about the bootloader below.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Jul 2016 08:14:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/I2C-works-in-Debug-with-Multilink-universal-not-in-standalone/m-p/583030#M34439</guid>
      <dc:creator>samc</dc:creator>
      <dc:date>2016-07-04T08:14:27Z</dc:date>
    </item>
    <item>
      <title>Re: I2C works in Debug with Multilink universal, not in standalone</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/I2C-works-in-Debug-with-Multilink-universal-not-in-standalone/m-p/583031#M34440</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;Yes I know I did the test with boot from flash and boot from ROM. The problems on the I2C disappears when I boot from flash but it's not possible for me, I need to boot from ROM to enter Bootloader at startup.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Jul 2016 08:44:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/I2C-works-in-Debug-with-Multilink-universal-not-in-standalone/m-p/583031#M34440</guid>
      <dc:creator>samc</dc:creator>
      <dc:date>2016-07-04T08:44:30Z</dc:date>
    </item>
    <item>
      <title>Re: I2C works in Debug with Multilink universal, not in standalone</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/I2C-works-in-Debug-with-Multilink-universal-not-in-standalone/m-p/583032#M34441</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What the I2C pin you are using?&lt;/P&gt;&lt;P&gt;The same pin withROM bootloader I2C?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Jingjing&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Jul 2016 08:49:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/I2C-works-in-Debug-with-Multilink-universal-not-in-standalone/m-p/583032#M34441</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2016-07-04T08:49:17Z</dc:date>
    </item>
    <item>
      <title>Re: I2C works in Debug with Multilink universal, not in standalone</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/I2C-works-in-Debug-with-Multilink-universal-not-in-standalone/m-p/583033#M34442</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It's not the same pin as the ROM Bootloader :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- ROM BOOTLOADER&amp;nbsp; :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; - I2C0_SDA : Pin 28 (PTB1)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; - I2C0_SCL : Pin 27 (PTB0)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- My board :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; - I2C0_SDA : Pin 5 (PTE18)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; - I2C0_SCL : Pin 6 (PTE19)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I just succed to work the I2C bus with the bootloader, when I deactivate the I2C in the BCA it works well.&lt;/P&gt;&lt;P&gt;I'm surprised to observed this behaviour, the bootloader have to free the I2C bus after bootloading ? no ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Jul 2016 09:32:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/I2C-works-in-Debug-with-Multilink-universal-not-in-standalone/m-p/583033#M34442</guid>
      <dc:creator>samc</dc:creator>
      <dc:date>2016-07-04T09:32:54Z</dc:date>
    </item>
    <item>
      <title>Re: I2C works in Debug with Multilink universal, not in standalone</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/I2C-works-in-Debug-with-Multilink-universal-not-in-standalone/m-p/583034#M34443</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Samuel,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Actually it is the same I2C module.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Even you want to use the ROM bootloader, you still can configure the FOPT select the code run from Flash.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; When you want to run the ROM bootloader, you just need to assert NMI/BOOTCFG0 pin, from the reference manual:&lt;/P&gt;&lt;P&gt;The following conditions will force the hardware to start the Kinetis Bootloader:&lt;/P&gt;&lt;P&gt;• BOOTSRC_SEL field of FOPT register is set to either 0b11 or 0b10. This forces the&lt;/P&gt;&lt;P&gt;ROM to run out of reset.&lt;/P&gt;&lt;P&gt;• &lt;STRONG&gt;The BOOTCFG0 pin is asserted. The pin must be configured as BOOTCFG0 by&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;setting the BOOTPIN_OPT bit of FOPT to 0.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;• A user applications running on flash or RAM calls into the Kinetis Bootloader entry&lt;/P&gt;&lt;P&gt;point address in ROM, to start Kinetis Bootloader execution.&lt;/P&gt;&lt;P&gt;&amp;nbsp; So you can choose the NMI pin as the ROM bootloader enter pin, then you still can run the code from flash.&lt;/P&gt;&lt;P&gt;&amp;nbsp; You can try it on your side.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Jingjing&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Jul 2016 09:38:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/I2C-works-in-Debug-with-Multilink-universal-not-in-standalone/m-p/583034#M34443</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2016-07-05T09:38:06Z</dc:date>
    </item>
    <item>
      <title>Re: I2C works in Debug with Multilink universal, not in standalone</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/I2C-works-in-Debug-with-Multilink-universal-not-in-standalone/m-p/583035#M34444</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 know these informations, so for the moment I just boot from ROM Bootloader and I observe when the I2C peripheral is activated in the Bootloader it doesn't work correctly when switching to user application, I don't know why. This seems not be normal for me.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Jul 2016 07:50:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/I2C-works-in-Debug-with-Multilink-universal-not-in-standalone/m-p/583035#M34444</guid>
      <dc:creator>samc</dc:creator>
      <dc:date>2016-07-11T07:50:12Z</dc:date>
    </item>
    <item>
      <title>Re: I2C works in Debug with Multilink universal, not in standalone</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/I2C-works-in-Debug-with-Multilink-universal-not-in-standalone/m-p/583036#M34445</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I will check it on my side with ROM bootloader.&lt;/P&gt;&lt;P&gt;Now confirm the question again, just the I2C0 in the app can't work after the ROM bootloader downloading the application code?&lt;/P&gt;&lt;P&gt;Other function in the app code still works ok?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Jingjing&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Jul 2016 09:03:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/I2C-works-in-Debug-with-Multilink-universal-not-in-standalone/m-p/583036#M34445</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2016-07-11T09:03:59Z</dc:date>
    </item>
    <item>
      <title>Re: I2C works in Debug with Multilink universal, not in standalone</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/I2C-works-in-Debug-with-Multilink-universal-not-in-standalone/m-p/583037#M34446</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No problem with other peripheral. For exmaple, I leave the LPUART0 and SPI activated in the ROM bootloader and the two works correctly in my application (I only use LPUART0 to use the bootloader). The SPI works correctly with a flash, no problem with ADC, clockmanager OK, PIT Timer OK&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Jul 2016 09:10:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/I2C-works-in-Debug-with-Multilink-universal-not-in-standalone/m-p/583037#M34446</guid>
      <dc:creator>samc</dc:creator>
      <dc:date>2016-07-11T09:10:56Z</dc:date>
    </item>
    <item>
      <title>Re: I2C works in Debug with Multilink universal, not in standalone</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/I2C-works-in-Debug-with-Multilink-universal-not-in-standalone/m-p/583038#M34447</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Samuel,&lt;/P&gt;&lt;P&gt;I have test it on our FRDM-KL27 board, the chip is MKL27Z64VLH4, this chip has no PTE18,PTE19, so I use PTB0,PTB1 as the I2C0 pin.&lt;/P&gt;&lt;P&gt;My test code is the KSDK2.0_FRDM-KL27, after I use the UART ROM bootloader, my I2C0 still works ok on my side.&lt;/P&gt;&lt;P&gt;I don't know how did you initialize your I2C0 in your application code.&lt;/P&gt;&lt;P&gt;Please disable the I2C0 module at first, then enable it again, this is the I2C initialization code for your reference:&lt;/P&gt;&lt;PRE __default_attr="c++" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_14683099813721563" data-renderedposition="138_8_1192_32" jivemacro_uid="_14683099813721563"&gt;&lt;P&gt;&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;void I2C_MasterInit(I2C_Type *base, const i2c_master_config_t *masterConfig, uint32_t srcClock_Hz)&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; assert(masterConfig &amp;amp;&amp;amp; srcClock_Hz);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* Temporary register for filter read. */&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; uint8_t fltReg;&lt;/P&gt;&lt;P&gt;#if defined(FSL_FEATURE_I2C_HAS_HIGH_DRIVE_SELECTION) &amp;amp;&amp;amp; FSL_FEATURE_I2C_HAS_HIGH_DRIVE_SELECTION&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; uint8_t c2Reg;&lt;/P&gt;&lt;P&gt;#endif&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* Enable I2C clock. */&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; CLOCK_EnableClock(s_i2cClocks[I2C_GetInstance(base)]);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #e23d39;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* Disable I2C prior to configuring it. */&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #e23d39;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; base-&amp;gt;C1 &amp;amp;= ~(I2C_C1_IICEN_MASK);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* Clear all flags. */&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; I2C_MasterClearStatusFlags(base, kClearFlags);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* Configure baud rate. */&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; I2C_MasterSetBaudRate(base, masterConfig-&amp;gt;baudRate_Bps, srcClock_Hz);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;#if defined(FSL_FEATURE_I2C_HAS_HIGH_DRIVE_SELECTION) &amp;amp;&amp;amp; FSL_FEATURE_I2C_HAS_HIGH_DRIVE_SELECTION&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* Configure high drive feature. */&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; c2Reg = base-&amp;gt;C2;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; c2Reg &amp;amp;= ~(I2C_C2_HDRS_MASK);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; c2Reg |= I2C_C2_HDRS(masterConfig-&amp;gt;enableHighDrive);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; base-&amp;gt;C2 = c2Reg;&lt;/P&gt;&lt;P&gt;#endif&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* Read out the FLT register. */&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; fltReg = base-&amp;gt;FLT;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;#if defined(FSL_FEATURE_I2C_HAS_STOP_HOLD_OFF) &amp;amp;&amp;amp; FSL_FEATURE_I2C_HAS_STOP_HOLD_OFF&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* Configure the stop / hold enable. */&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; fltReg &amp;amp;= ~(I2C_FLT_SHEN_MASK);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; fltReg |= I2C_FLT_SHEN(masterConfig-&amp;gt;enableStopHold);&lt;/P&gt;&lt;P&gt;#endif&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* Configure the glitch filter value. */&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; fltReg &amp;amp;= ~(I2C_FLT_FLT_MASK);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; fltReg |= I2C_FLT_FLT(masterConfig-&amp;gt;glitchFilterWidth);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* Write the register value back to the filter register. */&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; base-&amp;gt;FLT = fltReg;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* Enable the I2C peripheral based on the configuration. */&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; base-&amp;gt;C1 = I2C_C1_IICEN(masterConfig-&amp;gt;enableMaster);&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please disable I2C prior to configure it, and try again on you side.&lt;/P&gt;&lt;P&gt;If you still have question, please let me know!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Jingjing&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Jul 2016 07:56:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/I2C-works-in-Debug-with-Multilink-universal-not-in-standalone/m-p/583038#M34447</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2016-07-12T07:56:41Z</dc:date>
    </item>
  </channel>
</rss>

