<?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>What are the var types of RAM data?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/81916/what-are-the-var-types-of-ram-data</link><description>Hi Team, 
 
 Recently, I am developing spi functions. There is a function that makes me confused --&amp;quot;nrfx_is_in_ram&amp;quot;. 
 I am not clear that what types belong to RAM data. 
 Can you explain to me? 
 
 In one SPI example, it seems a const type. If so, suppose</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 22 Nov 2021 16:37:33 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/81916/what-are-the-var-types-of-ram-data" /><item><title>RE: What are the var types of RAM data?</title><link>https://devzone.nordicsemi.com/thread/340174?ContentTypeID=1</link><pubDate>Mon, 22 Nov 2021 16:37:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8ba9905d-b45e-47ba-ad6d-509440c36855</guid><dc:creator>lgs</dc:creator><description>&lt;p&gt;Yes, when I try to malloc the pointer, it works. Thanks a lot.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Gaosheng Liu&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: What are the var types of RAM data?</title><link>https://devzone.nordicsemi.com/thread/340172?ContentTypeID=1</link><pubDate>Mon, 22 Nov 2021 16:31:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:acc8ae90-f97b-4dcf-8e32-bef1521eab71</guid><dc:creator>hmolesworth</dc:creator><description>&lt;p&gt;&lt;em&gt;NULL&lt;/em&gt;&amp;nbsp;is 0x00000000 which is address 0 in Flash memory, ie not RAM. &lt;em&gt;m_tx_buf&lt;/em&gt; can only point to RAM, so if a default initialiser has to be used it must be other than NULL. The implication is the transfer is being used without setting the&lt;em&gt; m_tx_buf&lt;/em&gt; to a real buffer in RAM&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: What are the var types of RAM data?</title><link>https://devzone.nordicsemi.com/thread/339882?ContentTypeID=1</link><pubDate>Fri, 19 Nov 2021 17:03:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:25ff2a81-7112-4a20-987e-965815ff9e0e</guid><dc:creator>lgs</dc:creator><description>&lt;p&gt;Hi Jorgen,&lt;/p&gt;
&lt;p&gt;Thanks for the help.&lt;/p&gt;
&lt;p&gt;One thing is that I declared the variable is not &amp;quot;const&amp;quot; type. Why is it still reporting errors?&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1637341364768v3.png" alt=" " /&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1637341364745v2.png" alt=" " /&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1637341364716v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best,&lt;/p&gt;
&lt;p&gt;Gaosheng&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: What are the var types of RAM data?</title><link>https://devzone.nordicsemi.com/thread/339880?ContentTypeID=1</link><pubDate>Fri, 19 Nov 2021 16:41:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c43a1769-27dc-4718-a0bd-2f27d092013f</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The reason for having a function to check if data is stored in RAM is that some peripherals (SPIM/TWIM/SPIS/TWIS/etc) support EasyDMA, to get/put data directly from/to RAM while CPU is sleeping. Data stored in flash can&amp;#39;t be read using EasyDMA.&lt;/p&gt;
&lt;p&gt;Normally, data declared as &amp;#39;const&amp;#39; is stored in flash, while other variables/buffers are stored in RAM.&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>