<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>External EEPROM via I2C (Non-constant address declaration issue)</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/16971/external-eeprom-via-i2c-non-constant-address-declaration-issue</link><description>Hi, 
 EX_1.rar 
 Can I define &amp;quot;non-const&amp;quot; variable for writing data via I2C using &amp;quot;APP_TWI_Write&amp;quot; function? Similar for read. 
 When using External &amp;quot;EEPROM&amp;quot; one should define register address and data to be stored as a dynamic variable rather than</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 12 Oct 2016 10:32:59 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/16971/external-eeprom-via-i2c-non-constant-address-declaration-issue" /><item><title>RE: External EEPROM via I2C (Non-constant address declaration issue)</title><link>https://devzone.nordicsemi.com/thread/65105?ContentTypeID=1</link><pubDate>Wed, 12 Oct 2016 10:32:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:78f25c7b-612c-4fc5-a862-47955bfdc53c</guid><dc:creator>Siva</dc:creator><description>&lt;p&gt;Thanks it&amp;#39;s Working.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: External EEPROM via I2C (Non-constant address declaration issue)</title><link>https://devzone.nordicsemi.com/thread/65104?ContentTypeID=1</link><pubDate>Wed, 12 Oct 2016 07:49:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:21985694-7ed6-4b7c-a6f2-27c7168f286e</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;The reason that you are getting these errors are because you have defined &lt;code&gt;m_twi_master&lt;/code&gt; instance on line 170 in you main file with the argument &lt;code&gt;MASTER_TWI_INST&lt;/code&gt;. This is not defined anywhere. You should use a number corresponding to the TWI instance you are using and have enabled in nrf_drv_config.h.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: External EEPROM via I2C (Non-constant address declaration issue)</title><link>https://devzone.nordicsemi.com/thread/65103?ContentTypeID=1</link><pubDate>Tue, 11 Oct 2016 15:23:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:62930dcc-9e9a-42d5-bc7b-447866f7fac2</guid><dc:creator>Siva</dc:creator><description>&lt;p&gt;I have now uploaded my project &amp;quot;EX_1.rar&amp;quot;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: External EEPROM via I2C (Non-constant address declaration issue)</title><link>https://devzone.nordicsemi.com/thread/65102?ContentTypeID=1</link><pubDate>Tue, 11 Oct 2016 14:33:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8670eefc-77b1-42d3-8d58-39bf04e3710d</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;None of this is defined in &amp;quot;../../components/drivers_nrf/twi_master/nrf_drv_twi.h&amp;quot;:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;NRF_TWIMASTER_TWI_INST&lt;/li&gt;
&lt;li&gt;NRF_TWIMASTER_TWI_INST&lt;/li&gt;
&lt;li&gt;TWIMASTER_TWI_INST_INSTANCE_INDEX&lt;/li&gt;
&lt;li&gt;TWI_MASTER_TWI_INST_USE_EASY_DMA&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Can you upload the project where you use TWI master driver?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: External EEPROM via I2C (Non-constant address declaration issue)</title><link>https://devzone.nordicsemi.com/thread/65101?ContentTypeID=1</link><pubDate>Tue, 11 Oct 2016 14:22:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4c5ddc5b-6e97-488d-9a9f-62534afcd8f3</guid><dc:creator>Siva</dc:creator><description>&lt;p&gt;I am using SDK v11.0.0&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: External EEPROM via I2C (Non-constant address declaration issue)</title><link>https://devzone.nordicsemi.com/thread/65100?ContentTypeID=1</link><pubDate>Tue, 11 Oct 2016 14:21:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bf02c1b4-9680-4e96-901f-d939914df138</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Which SDK version are you using?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: External EEPROM via I2C (Non-constant address declaration issue)</title><link>https://devzone.nordicsemi.com/thread/65099?ContentTypeID=1</link><pubDate>Tue, 11 Oct 2016 13:52:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:82b72b26-64ab-4232-8490-27d71c9d815a</guid><dc:creator>Siva</dc:creator><description>&lt;p&gt;Those errors are coming from &amp;quot;../../components/drivers_nrf/twi_master/nrf_drv_twi.h&amp;quot;. I am not sure if it to do with declaration or something else.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: External EEPROM via I2C (Non-constant address declaration issue)</title><link>https://devzone.nordicsemi.com/thread/65095?ContentTypeID=1</link><pubDate>Tue, 11 Oct 2016 13:41:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e45d24ca-b653-432f-a9ae-9ac477f3ef4d</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Please checout &lt;a href="https://devzone.nordicsemi.com/question/59022/app_twi-vs-nrf_drv_twi-whats-the-difference-and-why-would-you-choose-one-over-the-other/?answer=59186#post-id-59186"&gt;this post&lt;/a&gt; about the differences between app_twi and nrf_drv_twi. Which one you should use depends primarily on you preferences. app_twi is built on top of nrf_drv_twi, so they can basically perform the same operations. I cannot find the functions you are refering, can you explain where these functions are from?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: External EEPROM via I2C (Non-constant address declaration issue)</title><link>https://devzone.nordicsemi.com/thread/65098?ContentTypeID=1</link><pubDate>Tue, 11 Oct 2016 13:09:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5e0fedc0-87fb-408f-a9cf-866c3fc30247</guid><dc:creator>Siva</dc:creator><description>&lt;p&gt;Is this the ideal way to do if I want to access both EEPROM and Capactive sensor? I have already developed my code for Capactive sensor using &amp;quot;TWI transaction Manager&amp;quot;.&lt;/p&gt;
&lt;p&gt;I am getting &amp;quot;undeclared error&amp;quot; messages while using TWI master driver on the following functions;&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;NRF_TWIMASTER_TWI_INST&lt;/li&gt;
&lt;li&gt;NRF_TWIMASTER_TWI_INST
3.TWIMASTER_TWI_INST_INSTANCE_INDEX&lt;/li&gt;
&lt;li&gt;TWI_MASTER_TWI_INST_USE_EASY_DMA&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Any suggestion?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: External EEPROM via I2C (Non-constant address declaration issue)</title><link>https://devzone.nordicsemi.com/thread/65106?ContentTypeID=1</link><pubDate>Tue, 11 Oct 2016 11:04:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9d542add-c5df-4a7f-ba82-bf7382cab0bc</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Please have a look at the &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v12.0.0/twi_master_with_twis_slave_example.html?cp=4_0_0_4_5_34"&gt;TWIS Slave and TWI Master mode drivers Example&lt;/a&gt; in the SDK. In this example a EEPROM TWI slave device is emulated and the master reads and writes to the device using the &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v12.0.0/hardware_driver_spi_master.html?cp=4_0_0_2_14"&gt;TWI master driver&lt;/a&gt;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: External EEPROM via I2C (Non-constant address declaration issue)</title><link>https://devzone.nordicsemi.com/thread/65097?ContentTypeID=1</link><pubDate>Tue, 11 Oct 2016 09:30:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ef0b6592-6bfe-4d9e-91b3-623365ca9a8c</guid><dc:creator>Siva</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I am using &amp;quot;24AA128(Microchip EEPROM)&amp;quot;. I have now attached my code where I used macros.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: External EEPROM via I2C (Non-constant address declaration issue)</title><link>https://devzone.nordicsemi.com/thread/65096?ContentTypeID=1</link><pubDate>Tue, 11 Oct 2016 09:23:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d0cd8b95-db5f-48a9-a4b8-70b8dd134a6a</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Can you please upload the code? Which EEPROM are you using? Typically you send the address as TWI payload, which should not have to be const.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>