<?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: Problem with I2C communication on a custom LPC1778 Board in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/Problem-with-I2C-communication-on-a-custom-LPC1778-Board/m-p/561275#M16257</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vijay,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have you tried using the LPCOpen I2C drivers? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.nxp.com/products/software-and-tools/hardware-development-tools/lpcxpresso-boards/lpcopen-software-development-platform-lpc17xx:LPCOPEN-SOFTWARE-FOR-LPC17XX" title="http://www.nxp.com/products/software-and-tools/hardware-development-tools/lpcxpresso-boards/lpcopen-software-development-platform-lpc17xx:LPCOPEN-SOFTWARE-FOR-LPC17XX"&gt;LPCOpen Software for LPC17XX|NXP&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regarding the error you get, when you say that the values are getting written at the non-addressed locations, does this mean that the variable where you specify the address to be written in ram is getting random values?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance for you response!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Carlos Mendoza&lt;/P&gt;&lt;P&gt;Technical Support Engineer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 18 Jul 2016 22:55:32 GMT</pubDate>
    <dc:creator>Carlos_Mendoza</dc:creator>
    <dc:date>2016-07-18T22:55:32Z</dc:date>
    <item>
      <title>Problem with I2C communication on a custom LPC1778 Board</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Problem-with-I2C-communication-on-a-custom-LPC1778-Board/m-p/561274#M16256</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;System Description:&lt;/P&gt;&lt;P&gt;-------------------&lt;/P&gt;&lt;P&gt;We have a custom LPC1778 board. We have connected a FerroRam chip&lt;/P&gt;&lt;P&gt;MB85RC256V to I2C0 Bus. The I2C clock rate is 100kHz. &lt;/P&gt;&lt;P&gt;The system has one Timer Interrupt coming at every 2ms and &lt;/P&gt;&lt;P&gt;interrupt load as about 200uS. &lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We are using CMSIS V2.00 lpc177x_8x libraries for handling &lt;/P&gt;&lt;P&gt;I2C communication. Basically we are calling &lt;/P&gt;&lt;P&gt;"I2C_MasterTransferData(...)" function with&lt;/P&gt;&lt;P&gt;required parameters. The I2C is used in POLLING mode. The calls to&lt;/P&gt;&lt;P&gt;the library function are made from the Main Program. The program is&lt;/P&gt;&lt;P&gt;required to write and read the memeory in blocks of 64Bytes.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Surely the Timer Interrupt, interrupts the library call.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Problem:&lt;/P&gt;&lt;P&gt;--------&lt;/P&gt;&lt;P&gt;After the system starts we observe some values getting written &lt;/P&gt;&lt;P&gt;at the non-addressed locations.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Observations:&lt;/P&gt;&lt;P&gt;-------------&lt;/P&gt;&lt;P&gt;If we disable interrupt across the library call, everything works fine.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. I2C Specs does not talk about any timeouts.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2. What are we missing, Which part of the driver is required to be immutable.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help will be highly appreciated.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;Vijay Vaidya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Jul 2016 12:55:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Problem-with-I2C-communication-on-a-custom-LPC1778-Board/m-p/561274#M16256</guid>
      <dc:creator>vijayvaidya</dc:creator>
      <dc:date>2016-07-12T12:55:47Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with I2C communication on a custom LPC1778 Board</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Problem-with-I2C-communication-on-a-custom-LPC1778-Board/m-p/561275#M16257</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vijay,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have you tried using the LPCOpen I2C drivers? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.nxp.com/products/software-and-tools/hardware-development-tools/lpcxpresso-boards/lpcopen-software-development-platform-lpc17xx:LPCOPEN-SOFTWARE-FOR-LPC17XX" title="http://www.nxp.com/products/software-and-tools/hardware-development-tools/lpcxpresso-boards/lpcopen-software-development-platform-lpc17xx:LPCOPEN-SOFTWARE-FOR-LPC17XX"&gt;LPCOpen Software for LPC17XX|NXP&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regarding the error you get, when you say that the values are getting written at the non-addressed locations, does this mean that the variable where you specify the address to be written in ram is getting random values?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance for you response!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Carlos Mendoza&lt;/P&gt;&lt;P&gt;Technical Support Engineer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Jul 2016 22:55:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Problem-with-I2C-communication-on-a-custom-LPC1778-Board/m-p/561275#M16257</guid>
      <dc:creator>Carlos_Mendoza</dc:creator>
      <dc:date>2016-07-18T22:55:32Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with I2C communication on a custom LPC1778 Board</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Problem-with-I2C-communication-on-a-custom-LPC1778-Board/m-p/561276#M16258</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Carlos,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your suggestions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We will certainly tryout LPCOpen drivers and provide you the feedback in next 3-4 days.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As regards the information you asked for, our observations are as follows.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Say, we are writing to locations 0x100, 0x101, 0x102 and 0x103. The program is writing to these locations regularly with new values. The values at all other locations are 0x00.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All of a sudden we start seeing values at address say, 0x80.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;These nos. (addresses and datas) are arbitrary, i.e. we were not able to find any co-relation among these addresses or datas that start appearing at non-addressed locations.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The doubt you raised was, whether the variable that holds address (0x100, 0x101 etc in this case) gets wrongly written with&lt;/P&gt;&lt;P&gt;a value of 0x80 (in this case). Our doubt is, how does one really finds this out,as the address can really be any number.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this feedback helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Vijay Vaidya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jul 2016 19:12:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Problem-with-I2C-communication-on-a-custom-LPC1778-Board/m-p/561276#M16258</guid>
      <dc:creator>vijayvaidya</dc:creator>
      <dc:date>2016-07-19T19:12:15Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with I2C communication on a custom LPC1778 Board</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Problem-with-I2C-communication-on-a-custom-LPC1778-Board/m-p/561277#M16259</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vijay,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for you response.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is the variable that holds the address local? Maybe the stack area that holds the address value is getting overwritten during function execution, could you try declaring it as a global variable?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Carlos Mendoza&lt;/P&gt;&lt;P&gt;Technical Support Engineer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jul 2016 23:16:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Problem-with-I2C-communication-on-a-custom-LPC1778-Board/m-p/561277#M16259</guid>
      <dc:creator>Carlos_Mendoza</dc:creator>
      <dc:date>2016-07-20T23:16:31Z</dc:date>
    </item>
  </channel>
</rss>

