<?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 3xSPIM, 1x UARTE and 1x TWIM simutaneously on NRF5340?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/77851/can-i-use-3xspim-1x-uarte-and-1x-twim-simutaneously-on-nrf5340</link><description>Hi all, 
 In my project, I make 2 SPIM and 1 UARTE works well. 
 Currently I want to use 1 TWIM, so I add lines below in proj.conf 
 
 However, I get errors: gen_isr_tables.py: error: multiple registrations at table_index 9 for irq 9 (0x9) 
 I wonder</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 26 Jul 2021 08:18:22 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/77851/can-i-use-3xspim-1x-uarte-and-1x-twim-simutaneously-on-nrf5340" /><item><title>RE: Can I use 3xSPIM, 1x UARTE and 1x TWIM simutaneously on NRF5340?</title><link>https://devzone.nordicsemi.com/thread/321722?ContentTypeID=1</link><pubDate>Mon, 26 Jul 2021 08:18:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:29ffbe1d-de48-4815-8ea2-a8e6bcc78692</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;The serial peripherals (UARTE/SPIM/SPIS/TWIM/TWIS) in nRF5340 shares resources and base addresses, which means that you can only enable one type of peripheral for each slot.&lt;/p&gt;
&lt;p&gt;From&amp;nbsp;&lt;a title="Peripheral instantiation" href="https://infocenter.nordicsemi.com/topic/ps_nrf5340/chapters/memory/appmem.html?cp=3_0_0_4_2_0#instantiation"&gt;Peripheral instantiation&lt;/a&gt;, you can see which peripherals share base address. Make sure you only enable one peripheral for each. For instance:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;UARTE0&lt;/li&gt;
&lt;li&gt;TWIM1&lt;/li&gt;
&lt;li&gt;SPIM2&lt;/li&gt;
&lt;li&gt;SPIM3&lt;/li&gt;
&lt;li&gt;SPIM4&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;SPIM4 (32 MHz high-speed instance) does not share base address with other serial peripherals, and can only be used for SPIM.&lt;/p&gt;
&lt;p&gt;As you can see, the combination you request should fit exactly into the supported instances in nRF5340 if you configure it correctly.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Jørgen&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>