<?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>can I use 3 uart and 2 i2c</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/73575/can-i-use-3-uart-and-2-i2c</link><description>in ~/ncs/zephyr/samples/hello_world/prj.conf CONFIG_I2C=y //////////// 2 uart + 2 i2c build OK in nrf9160dk_nrf9160ns.overlay / { chosen { zephyr,console = &amp;amp;uart0; zephyr,shell-uart = &amp;amp;uart0; zephyr,uart-mcumgr = &amp;amp;uart0; zephyr,bt-mon-uart = &amp;amp;uart0; </description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 06 Apr 2021 23:19:10 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/73575/can-i-use-3-uart-and-2-i2c" /><item><title>RE: can I use 3 uart and 2 i2c</title><link>https://devzone.nordicsemi.com/thread/303314?ContentTypeID=1</link><pubDate>Tue, 06 Apr 2021 23:19:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ffaa105d-f520-4acb-95ab-7c99b3f0da49</guid><dc:creator>fatalfeel</dc:creator><description>&lt;p&gt;thanks a lot, same as I think~~~&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: can I use 3 uart and 2 i2c</title><link>https://devzone.nordicsemi.com/thread/303138?ContentTypeID=1</link><pubDate>Tue, 06 Apr 2021 12:21:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:db41cd9d-54da-4b05-a5f6-abb80fe71373</guid><dc:creator>Albrecht Markus Schellenberger</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;unfortunately it is not possible to build an application using 3 UARTS and 2 I2C interfaces.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fps_nrf9160%2Fmemory.html&amp;amp;anchor=topic"&gt;https://infocenter.nordicsemi.com/index.jsp?topic=%2Fps_nrf9160%2Fmemory.html&amp;amp;anchor=topic&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;As you can see in the instantiation table ID 10, the peripherals UART2 and TWI2 are using the same memory instance.&lt;/p&gt;
&lt;p&gt;Cheers!&lt;/p&gt;
&lt;p&gt;Markus&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: can I use 3 uart and 2 i2c</title><link>https://devzone.nordicsemi.com/thread/302980?ContentTypeID=1</link><pubDate>Mon, 05 Apr 2021 13:38:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:37d6f819-8d43-4c86-9b7f-d211b631d7d3</guid><dc:creator>fatalfeel</dc:creator><description>&lt;p&gt;more info for IRQ&lt;br /&gt;&lt;br /&gt;~/ncs/modules/hal/nordic/nrfx/drivers/nrfx_common.h&lt;br /&gt;#define NRFX_IRQ_NUMBER_GET(base_addr)&amp;nbsp; NRFX_PERIPHERAL_ID_GET(base_addr)&lt;br /&gt;&lt;br /&gt;~/ncs/nrf/subsys/spm/spm.c&lt;br /&gt;//#define NRFX_PERIPHERAL_ID_GET(base_addr) (uint8_t)((uint32_t)(base_addr) &amp;gt;&amp;gt; 12)&lt;br /&gt;&lt;br /&gt;////////////////////////////////////////////////////////////////////////////////&lt;br /&gt;~/ncs/modules/hal/nordic/nrfx/drivers/src/nrfx_twim.c&lt;br /&gt;NRFX_IRQ_ENABLE(nrfx_get_irq_number(p_instance-&amp;gt;p_twim));&lt;br /&gt;&lt;br /&gt;~/ncs/zephyr/arch/arm/core/aarch32/irq_manage.c&lt;br /&gt;void arch_irq_enable(unsigned int irq)&lt;br /&gt;{&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;NVIC_EnableIRQ((IRQn_Type)irq);&lt;br /&gt;}&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>