<?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>On ST25DV after writing to FTM buffer cannot write to EEPROM via I2C with NRF52832.</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/82084/on-st25dv-after-writing-to-ftm-buffer-cannot-write-to-eeprom-via-i2c-with-nrf52832</link><description>app_twi_perform() returns 0x03 == NRF_ERROR_INTERNAL. 
 Reset board with button does not help. 
 After Power Cycle can update EEPROM successfully. 
 Accessing FTM buffer with proprietary smartphone app. 
 NRF52832 built with nRF SDK 12.3.</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 26 Nov 2021 14:39:26 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/82084/on-st25dv-after-writing-to-ftm-buffer-cannot-write-to-eeprom-via-i2c-with-nrf52832" /><item><title>RE: On ST25DV after writing to FTM buffer cannot write to EEPROM via I2C with NRF52832.</title><link>https://devzone.nordicsemi.com/thread/340932?ContentTypeID=1</link><pubDate>Fri, 26 Nov 2021 14:39:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fb7603c9-5629-413b-bcad-123a83cb079d</guid><dc:creator>NKern</dc:creator><description>&lt;p&gt;Hello Edvin,&lt;/p&gt;
&lt;p&gt;unfortunately that solution did not work.&lt;/p&gt;
&lt;p&gt;The best answer came from ST forum:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://community.st.com/s/question/0D73W000001MsCn/"&gt;https://community.st.com/s/question/0D73W000001MsCn/&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Problem was that &amp;quot;&lt;strong&gt;&lt;em&gt;it is not possible to write into EEPROM if FTM is activated&lt;/em&gt;&lt;/strong&gt;&amp;quot;.&lt;/p&gt;
&lt;p&gt;And logical&amp;nbsp;solution was to &lt;span style="text-decoration:underline;"&gt;deactivate FTM before interacting with EEPROM&lt;/span&gt;.&lt;/p&gt;
&lt;p&gt;Anyway, I a&lt;span&gt;ppreciate your involvement as a good sign of a great customer support.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: On ST25DV after writing to FTM buffer cannot write to EEPROM via I2C with NRF52832.</title><link>https://devzone.nordicsemi.com/thread/340914?ContentTypeID=1</link><pubDate>Fri, 26 Nov 2021 13:15:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:77b40585-4401-43e1-abcc-f1a9db55e7bb</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;So you need to power cycle the DK (which also power cycles the EEPROM, I guess?) in order for it to work?&lt;/p&gt;
&lt;p&gt;What happens if you try to initialize the EEPROM twice without power cycling it in between?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;If you look at the unmodified twi_master_using_app_twi_pca10040 example from SDK12.3.0, you should see:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;static void twi_config(void)
{
    uint32_t err_code;

    nrf_drv_twi_config_t const config = {
       .scl                = ARDUINO_SCL_PIN,
       .sda                = ARDUINO_SDA_PIN,
       .frequency          = NRF_TWI_FREQ_100K,
       .interrupt_priority = APP_IRQ_PRIORITY_LOWEST,
       .clear_bus_init     = false
    };

    APP_TWI_INIT(&amp;amp;m_app_twi, &amp;amp;config, MAX_PENDING_TRANSACTIONS, err_code);
    APP_ERROR_CHECK(err_code);
}&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Can you try to change .clear_bus_init = false to .clear_bus_init = true?&lt;/p&gt;
&lt;p&gt;See if that helps, and let me know if it doesn&amp;#39;t.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>