<?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>Problem while using SPI4 and UART1 together in nrf5340</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/91778/problem-while-using-spi4-and-uart1-together-in-nrf5340</link><description>Hi, 
 I am using nrf connect sdk V2.0.0 and nrf5340 DK. 
 Using fat_fs and uart examples, I managed to get the SD card and UART work individually. For SD card, I am using SPI4 and for UART, I am using UART1. 
 However, when I tried to combine fat_fs into</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 12 Sep 2022 11:47:02 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/91778/problem-while-using-spi4-and-uart1-together-in-nrf5340" /><item><title>RE: Problem while using SPI4 and UART1 together in nrf5340</title><link>https://devzone.nordicsemi.com/thread/385719?ContentTypeID=1</link><pubDate>Mon, 12 Sep 2022 11:47:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8a18ebe6-80b1-49bb-b90e-6df920f74304</guid><dc:creator>Einarh</dc:creator><description>&lt;p&gt;When UART communication fails and the device keeps restarting, do you get any error messages in the log?&lt;/p&gt;
&lt;p&gt;Have you tried scoping the pins?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem while using SPI4 and UART1 together in nrf5340</title><link>https://devzone.nordicsemi.com/thread/385632?ContentTypeID=1</link><pubDate>Mon, 12 Sep 2022 06:53:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:856c5255-ecb2-47b9-8dd4-8ad2f1239d4e</guid><dc:creator>ShuMan</dc:creator><description>&lt;p&gt;I am attaching the fat_fs sample with my overlay file. The example is working for me and I am able to read and write to the SD card.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/fat_5F00_fs_5F00_spi4.zip"&gt;devzone.nordicsemi.com/.../fat_5F00_fs_5F00_spi4.zip&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;-Shubham&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem while using SPI4 and UART1 together in nrf5340</title><link>https://devzone.nordicsemi.com/thread/385501?ContentTypeID=1</link><pubDate>Fri, 09 Sep 2022 11:27:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f867a3f2-350a-40a8-9194-607bd621b9a1</guid><dc:creator>Einarh</dc:creator><description>&lt;p&gt;Have you tested the fat_fs sample with your overlay file, or only with the default configuration?&lt;/p&gt;
&lt;p&gt;I&amp;#39;m suspecting you might need a storage_dev pointer in your fs_mount_t struct when you&amp;#39;re using a custom config. Are you doing this?&lt;/p&gt;
&lt;p&gt;-Einar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem while using SPI4 and UART1 together in nrf5340</title><link>https://devzone.nordicsemi.com/thread/385366?ContentTypeID=1</link><pubDate>Thu, 08 Sep 2022 15:49:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a2d7d4f6-2616-46f4-b784-c020262f7c82</guid><dc:creator>ShuMan</dc:creator><description>&lt;p&gt;Hi Einarh,&lt;/p&gt;
&lt;p&gt;Below is the attached zip file with combined prj.conf and nrf5340dk_nrf5340_cpuapp.overlay files. Previously, I have referred &lt;a href="https://github.com/nrfconnect/sdk-zephyr/tree/v2.7.99-ncs1/samples/subsys/fs/fat_fs"&gt;fat_fs&lt;/a&gt; and &lt;a href="https://academy.nordicsemi.com/topic/exercise-1-5/"&gt;UART&lt;/a&gt; examples.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/prj_5F00_overlay.zip"&gt;devzone.nordicsemi.com/.../prj_5F00_overlay.zip&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;If &lt;em&gt;&lt;strong&gt;CONFIG_DISK_DRIVER_SDMMC=y&lt;/strong&gt;&lt;/em&gt; &amp;amp; &lt;em&gt;&lt;strong&gt;CONFIG_SPI=y&lt;/strong&gt; &lt;/em&gt;lines are not commented then UART communication fails over UART and nrf5340 keeps on restarting.&lt;/p&gt;
&lt;p&gt;If &lt;em&gt;&lt;strong&gt;CONFIG_DISK_DRIVER_SDMMC=y&lt;/strong&gt;&lt;/em&gt; &amp;amp; &lt;em&gt;&lt;strong&gt;CONFIG_SPI=y&lt;/strong&gt; &lt;/em&gt;lines are commented then UART communication works over UART1 but SD card initialization fails (as SDMMC and SPI are not configured).&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem while using SPI4 and UART1 together in nrf5340</title><link>https://devzone.nordicsemi.com/thread/385277?ContentTypeID=1</link><pubDate>Thu, 08 Sep 2022 12:25:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c4df89bc-02fc-48af-bdd1-fb513e3d3a8b</guid><dc:creator>Einarh</dc:creator><description>&lt;p&gt;Hello&lt;/p&gt;
[quote user=""]&lt;p&gt;However, when I tried to combine fat_fs into UART example, I am unable to initialise them together.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;[/quote]
&lt;p&gt;What exactly do you mean by &amp;quot;unable&amp;quot;?&lt;/p&gt;
&lt;p&gt;Can you share any error messages or logs etc giving any info on why/how it fails?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Einar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>