<?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 I2C errors on LPC11U68 using LPCOpen I2C ROM driver (ERR_I2C_GENERAL_FAILURE) in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/I2C-errors-on-LPC11U68-using-LPCOpen-I2C-ROM-driver-ERR-I2C/m-p/682064#M27429</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am working on a LPC11U68 (custom PCB design) and I have some errors when using the I2C interface. In particular, I obtain ERR_I2C_GENERAL_FAILURE (0x00060007) for some calls to ‘i2c_master_tx_rx_poll’ and ‘i2c_master_transmit_poll’ functions of the I2C ROM driver. The errors are not frequent (about 1 every minute with approximatively 1200 I2C transactions per minutes) and occur with no particular timing. Although, these errors are managed with a “check and retry” procedure, I am worried about the type of error: ERR_I2C_GENERAL_FAILURE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does someone know in which case such an error is raised by the ROM driver? Maybe some hints to identify the origin of the error (hardware or software).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Hardware setup:&lt;/EM&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Custom PCB design with all I2C slaves connected with PCB&amp;nbsp;traces (no connector or external wire on I2C bus),&lt;/LI&gt;&lt;LI&gt;LPC11U68 as I2C master on I2C0,&lt;/LI&gt;&lt;LI&gt;4 I2C slaves on I2C0 (all with different addresses),&lt;/LI&gt;&lt;LI&gt;Other interfaces used: USB VCOM and UART.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;EM&gt;Firmware setup:&lt;/EM&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;I2C configuration based on LPCOpen example “periph_i2c_rom_polling” (reusing function “setupI2CMaster”),&lt;/LI&gt;&lt;LI&gt;Simple tx/rx operations on I2C in polling mode.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;David.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 03 Jul 2017 15:16:33 GMT</pubDate>
    <dc:creator>d_m_</dc:creator>
    <dc:date>2017-07-03T15:16:33Z</dc:date>
    <item>
      <title>I2C errors on LPC11U68 using LPCOpen I2C ROM driver (ERR_I2C_GENERAL_FAILURE)</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/I2C-errors-on-LPC11U68-using-LPCOpen-I2C-ROM-driver-ERR-I2C/m-p/682064#M27429</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am working on a LPC11U68 (custom PCB design) and I have some errors when using the I2C interface. In particular, I obtain ERR_I2C_GENERAL_FAILURE (0x00060007) for some calls to ‘i2c_master_tx_rx_poll’ and ‘i2c_master_transmit_poll’ functions of the I2C ROM driver. The errors are not frequent (about 1 every minute with approximatively 1200 I2C transactions per minutes) and occur with no particular timing. Although, these errors are managed with a “check and retry” procedure, I am worried about the type of error: ERR_I2C_GENERAL_FAILURE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does someone know in which case such an error is raised by the ROM driver? Maybe some hints to identify the origin of the error (hardware or software).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Hardware setup:&lt;/EM&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Custom PCB design with all I2C slaves connected with PCB&amp;nbsp;traces (no connector or external wire on I2C bus),&lt;/LI&gt;&lt;LI&gt;LPC11U68 as I2C master on I2C0,&lt;/LI&gt;&lt;LI&gt;4 I2C slaves on I2C0 (all with different addresses),&lt;/LI&gt;&lt;LI&gt;Other interfaces used: USB VCOM and UART.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;EM&gt;Firmware setup:&lt;/EM&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;I2C configuration based on LPCOpen example “periph_i2c_rom_polling” (reusing function “setupI2CMaster”),&lt;/LI&gt;&lt;LI&gt;Simple tx/rx operations on I2C in polling mode.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;David.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Jul 2017 15:16:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/I2C-errors-on-LPC11U68-using-LPCOpen-I2C-ROM-driver-ERR-I2C/m-p/682064#M27429</guid>
      <dc:creator>d_m_</dc:creator>
      <dc:date>2017-07-03T15:16:33Z</dc:date>
    </item>
    <item>
      <title>Re: I2C errors on LPC11U68 using LPCOpen I2C ROM driver (ERR_I2C_GENERAL_FAILURE)</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/I2C-errors-on-LPC11U68-using-LPCOpen-I2C-ROM-driver-ERR-I2C/m-p/682065#M27430</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;ERR_I2C_GENERAL_FAILURE means there is a failure detected on I2C bus. Please check the pull-up resistor in the I2C pins.&lt;/P&gt;&lt;P&gt;Remember that the number of ICs that can be connected to the same bus is limited only by a maximum bus capacitance of 400 pF, so please check the capacitive load.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please check the AN11249 application note, this appnote details how to use the I2C ROM driver in master&lt;/P&gt;&lt;P&gt;and slave mode.&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/legacyfs/online/266616_NXP.Application_Note_2.pdf"&gt;https://www.element14.com/community/servlet/JiveServlet/downloadBody/52504-102-1-266616/NXP.Application_Note_2.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope this helps,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Soledad&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, 06 Jul 2017 21:58:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/I2C-errors-on-LPC11U68-using-LPCOpen-I2C-ROM-driver-ERR-I2C/m-p/682065#M27430</guid>
      <dc:creator>soledad</dc:creator>
      <dc:date>2017-07-06T21:58:59Z</dc:date>
    </item>
    <item>
      <title>Re: I2C errors on LPC11U68 using LPCOpen I2C ROM driver (ERR_I2C_GENERAL_FAILURE)</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/I2C-errors-on-LPC11U68-using-LPCOpen-I2C-ROM-driver-ERR-I2C/m-p/682066#M27431</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the detailed answer.&lt;/P&gt;&lt;P&gt;As I already checked I2C pins config, I will check hardware and also I2C protocol for peripherals.&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;David&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Jul 2017 13:16:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/I2C-errors-on-LPC11U68-using-LPCOpen-I2C-ROM-driver-ERR-I2C/m-p/682066#M27431</guid>
      <dc:creator>d_m_</dc:creator>
      <dc:date>2017-07-10T13:16:00Z</dc:date>
    </item>
  </channel>
</rss>

