<?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>SPI invalid address error</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/114954/spi-invalid-address-error</link><description>Hi everyone, 
 I&amp;#39;m currently developing an application supposed to read through SPI from an extrernal SRAM, i&amp;#39;m using nrfx_spim libraries. 
 Compilation is flawless but when i try to debug i get NRFX_ERROR_INVALID_ADDR when starting Spi transmission,</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 26 Sep 2024 11:39:56 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/114954/spi-invalid-address-error" /><item><title>RE: SPI invalid address error</title><link>https://devzone.nordicsemi.com/thread/503960?ContentTypeID=1</link><pubDate>Thu, 26 Sep 2024 11:39:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f183e171-e3ee-4772-ac53-f33c0bb44ded</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;nrfx_spim_xfer() willl return&amp;nbsp;NRFX_ERROR_INVALID_ADDR if th Rx and/or Tx buffer is not available for DMA (the checking is in nrf_dma_accessible_check() in modules/hal/nordic/nrfx/drivers/src/nrfx_spim.c). In practice this means that the buffers needs to be within the RAM region. As the buffers here are only static but nost const they should be placed in RAM, but perhaps you can either add printouts or check with a debugger which addresses you provide?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>