<?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>i2c_nrfx_twim: Error 195952641 occurred for message 0</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/68228/i2c_nrfx_twim-error-195952641-occurred-for-message-0</link><description>It works when I use I2C_2 to communicateon nrf9160. The register value is successfully accessed when i2C_reg_write_byte() is called. 
 
 9160dk_9160ns.overlay: 
 
 
 I want to change I2C2 to I2C1. 
 
 Modified overlay: 
 
 The following error occurs when</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 12 Nov 2020 10:43:11 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/68228/i2c_nrfx_twim-error-195952641-occurred-for-message-0" /><item><title>RE: i2c_nrfx_twim: Error 195952641 occurred for message 0</title><link>https://devzone.nordicsemi.com/thread/279670?ContentTypeID=1</link><pubDate>Thu, 12 Nov 2020 10:43:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:573d06df-a39f-4e95-b7ff-8ac0e3658596</guid><dc:creator>xinjiang</dc:creator><description>&lt;p&gt;In my overlay file, uart1 is obviously closed&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: i2c_nrfx_twim: Error 195952641 occurred for message 0</title><link>https://devzone.nordicsemi.com/thread/279668?ContentTypeID=1</link><pubDate>Thu, 12 Nov 2020 10:40:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bc23b687-c41e-4130-af62-3d6f90ab13c9</guid><dc:creator>JONATHAN LL</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;uart1 and i2c_1 use the same memory base address and can not be used simultaneously, see&amp;nbsp;&lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fps_nrf9160%2Fmemory.html&amp;amp;cp=2_0_0_3_1_1&amp;amp;anchor=topic"&gt;https://infocenter.nordicsemi.com/index.jsp?topic=%2Fps_nrf9160%2Fmemory.html&amp;amp;cp=2_0_0_3_1_1&amp;amp;anchor=topic&lt;/a&gt;&amp;nbsp;for more info on what have the same ID.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
[quote user="xinjiang"] tried I2C_3 and it worked.[/quote]
&lt;p&gt;&lt;br /&gt;if this solved you problem then mark it as suggested answer.&lt;br /&gt;&lt;br /&gt;Regards,&lt;br /&gt;Jonathan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: i2c_nrfx_twim: Error 195952641 occurred for message 0</title><link>https://devzone.nordicsemi.com/thread/279609?ContentTypeID=1</link><pubDate>Thu, 12 Nov 2020 02:58:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fffbe519-6fab-4e47-98f9-95a0dbee3df0</guid><dc:creator>xinjiang</dc:creator><description>&lt;p&gt;&lt;span&gt;I tried I2C_3 and it worked.&amp;nbsp;I have used uart0, uart2 and uart3, so I can only use&amp;nbsp;I2C_1 now. This problem has bothered me for a long time.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: i2c_nrfx_twim: Error 195952641 occurred for message 0</title><link>https://devzone.nordicsemi.com/thread/279606?ContentTypeID=1</link><pubDate>Thu, 12 Nov 2020 01:34:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6d8e0659-f388-4183-b345-9aa71602b2e3</guid><dc:creator>xinjiang</dc:creator><description>&lt;p&gt;&lt;span&gt;The project won&amp;#39;t open after I&amp;#39;ve configured it this way&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;pri.config:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;pre class="ui-code" data-mode="text"&gt;#CONFIG_TRUSTED_EXECUTION_NONSECURE=y

# LOG
CONFIG_LOG=y
CONFIG_LOG_DEFAULT_LEVEL=3

# UART interface
CONFIG_SERIAL=y
CONFIG_UART_INTERRUPT_DRIVEN=y

# Segger RTT
CONFIG_USE_SEGGER_RTT=y
CONFIG_RTT_CONSOLE=y
CONFIG_LOG_BACKEND_RTT=y
#CONFIG_UART_CONSOLE=n
#CONFIG_LOG_BACKEND_UART=n

# Network
CONFIG_NETWORKING=y
CONFIG_NET_NATIVE=n
CONFIG_NET_SOCKETS=y
CONFIG_NET_SOCKETS_OFFLOAD=y

# BSD library
CONFIG_BSD_LIBRARY=y

# LTE link control
CONFIG_LTE_LINK_CONTROL=y
CONFIG_LTE_AUTO_INIT_AND_CONNECT=n
CONFIG_LTE_NETWORK_MODE_NBIOT_GPS=y
CONFIG_LTE_LEGACY_PCO_MODE=y

# ADC
CONFIG_ADC=y
CONFIG_ADC_NRFX_SAADC=y

#DA270
CONFIG_I2C=y
CONFIG_SENSOR=y
CONFIG_DA270=y
CONFIG_DA270_TRIGGER_GLOBAL_THREAD=y
CONFIG_SENSOR_LOG_LEVEL_WRN=y
CONFIG_I2C_NRFX=y
CONFIG_I2C_1=y
CONFIG_I2C_1_NRF_TWIM=y
CONFIG_I2C_2=n
CONFIG_I2C_2_NRF_TWIM=n

# AT host library
CONFIG_AT_HOST_LIBRARY=y
#CONFIG_AT_CMD=y
#CONFIG_AT_NOTIF=y

# Device power management
CONFIG_DEVICE_POWER_MANAGEMENT=y

CONFIG_MAIN_STACK_SIZE=4096
CONFIG_HEAP_MEM_POOL_SIZE=4096
CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE=2048&lt;/pre&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;ERROR:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1605144758955v1.png" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;These macros are automatically activated when the device tree is configured. I accessed the register error during debug.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1605146841055v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: i2c_nrfx_twim: Error 195952641 occurred for message 0</title><link>https://devzone.nordicsemi.com/thread/279491?ContentTypeID=1</link><pubDate>Wed, 11 Nov 2020 13:16:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d841a78a-5fe9-4c45-8eec-69a5ccffbf08</guid><dc:creator>JONATHAN LL</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;In you proj.conf file try to set:&lt;/p&gt;
&lt;p&gt;CONFIG_I2C=y&lt;/p&gt;
&lt;p&gt;CONFIG_I2C_NRFX=y&lt;br /&gt;CONFIG_I2C_1=y&lt;br /&gt;CONFIG_I2C_1_NRF_TWIM=y&lt;/p&gt;
&lt;p&gt;CONFIG_I2C_2=n&lt;br /&gt;CONFIG_I2C_2_NRF_TWIM=n&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;br /&gt;&lt;/span&gt;Regards,&lt;br /&gt;Jonathan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>