<?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>nRF5340: SPI controlled external RAM</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/122458/nrf5340-spi-controlled-external-ram</link><description>Hi, 
 I am wanting to talk to this external 1Mbit RAM chip through an SPI interface: https://www.microchip.com/en-us/product/23lc1024 with the nRF5340 device. Preferably, I would like for this external RAM to be memory mapped. I was wondering, is there</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 25 Jun 2025 13:17:44 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/122458/nrf5340-spi-controlled-external-ram" /><item><title>RE: nRF5340: SPI controlled external RAM</title><link>https://devzone.nordicsemi.com/thread/540490?ContentTypeID=1</link><pubDate>Wed, 25 Jun 2025 13:17:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5fb25dc5-f19c-4b5c-ac0a-121eac2b39ad</guid><dc:creator>&amp;#216;yvind</dc:creator><description>&lt;p&gt;Hey Manning,&lt;/p&gt;
[quote user="Manning"]et me know if there are any in the list of driver APIs that match the chip I am trying to integrate. If not, then I will work towards creating a custom API for this external RAM chip.[/quote]
&lt;p&gt;I&amp;#39;m not aware of any driver API, but that is more due to the endless possibilities in Zephyr. I would recommend looking into some of the samples that use external flash, e.g. here is some configuration documentation for&amp;nbsp;&lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/nrf/app_dev/device_guides/nrf91/nrf9160_external_flash.html#adding_the_configuration_and_devicetree_option"&gt;nRF9160DK external flash&lt;/a&gt;&amp;nbsp;or the &lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/nrf/app_dev/device_guides/nrf53/qspi_xip_guide_nrf5340.html#setting_up_qspi_flash"&gt;nRF5340 external flash using QSPI&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Have a look at&amp;nbsp;&lt;code&gt;zephyr/samples/drivers/spi_flash/src/main.c&lt;/code&gt;, this might be able to point you in the correct direction. And the &lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/zephyr/hardware/peripherals/flash.html#flash-api"&gt;flash API here&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Good luck!&lt;br /&gt;&lt;br /&gt;Kind regards,&lt;br /&gt;Øyvind&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5340: SPI controlled external RAM</title><link>https://devzone.nordicsemi.com/thread/540392?ContentTypeID=1</link><pubDate>Tue, 24 Jun 2025 18:31:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0d95ebb3-f82c-43de-b555-b6f4988f8b56</guid><dc:creator>Manning</dc:creator><description>&lt;p&gt;Hello&amp;nbsp;&amp;Oslash;yvind,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thank you for your prompt response. I have started looking at the courses you sent me and have started getting a better idea of how Nordic/Zephyr&amp;#39;s Device driver model works. To me, it sees like based on the available list of all driver APIs (&lt;a id="" href="https://docs.nordicsemi.com/bundle/zephyr-apis-latest/page/group_io_interfaces.html"&gt;https://docs.nordicsemi.com/bundle/zephyr-apis-latest/page/group_io_interfaces.html&lt;/a&gt;) I don&amp;#39;t see any option for a generic SRAM that would match the driver I would be wanting to implement. Let me know if there are any in the list of driver APIs that match the chip I am trying to integrate. If not, then I will work towards creating a custom API for this external RAM chip.&lt;/p&gt;
&lt;p&gt;Thank you in advance!&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best Regards,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Manning&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5340: SPI controlled external RAM</title><link>https://devzone.nordicsemi.com/thread/540278?ContentTypeID=1</link><pubDate>Tue, 24 Jun 2025 08:20:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a73fb015-e100-4912-9b9b-47eabc613104</guid><dc:creator>&amp;#216;yvind</dc:creator><description>&lt;p&gt;Hello,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I you are new to our nRF Connect SDK I would suggest starting with our Developer Academy courses, e.g.&amp;nbsp;n&lt;a href="https://academy.nordicsemi.com/courses/nrf-connect-sdk-fundamentals/"&gt;RF Connect SDK Fundamentals&lt;/a&gt; and &lt;a href="https://academy.nordicsemi.com/courses/nrf-connect-sdk-intermediate/"&gt;nRF Connect SDK Intermediate&lt;/a&gt;. These will take you through the world of Zephyr&amp;#39;s DeviceTree and how to make your own Zephyr driver.&amp;nbsp;&lt;/p&gt;
[quote user=""] I was wondering, is there an SPI controlled RAM driver already implemented in the sdk that is compatible with this chip?[/quote]
&lt;p&gt;There does not currenlty seem to be any support for the 23LC1024 device in nRF Connect SDK/Zephyr, so you might need to make your own drivers for this one.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;br /&gt;Øyvind&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>