<?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>assinging ram variable to attribute char value</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/25848/assinging-ram-variable-to-attribute-char-value</link><description>Hi,
i have assigned RAM address as: 
 #define RAM_MEMORY_TEST_ADDRESS (0x20002BD8)
 uint8_t * p_ram_test = (uint8_t *)RAM_MEMORY_TEST_ADDRESS;
 
 to this p_ram_test i am assigning :
p_ram_test = packet_form;// where packet form is also array of</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 12 Oct 2017 08:41:48 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/25848/assinging-ram-variable-to-attribute-char-value" /><item><title>RE: assinging ram variable to attribute char value</title><link>https://devzone.nordicsemi.com/thread/101815?ContentTypeID=1</link><pubDate>Thu, 12 Oct 2017 08:41:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5e95704d-8751-45b2-bd08-c48ac7a6194e</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;I don&amp;#39;t see the point assigning p_ram_test to RAM_MEMORY_TEST_ADDRESS and then assign it again to p_ram_test = packet_form. It will point to same address of packet_form.&lt;/p&gt;
&lt;p&gt;To include a variable into different file, you need to declare it and add extern in.&lt;/p&gt;
&lt;p&gt;So what you need to do is to declare in our_service.c
extern uint8_t * p_ram_test;&lt;/p&gt;
&lt;p&gt;And then use p_ram_test normally (without extern)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>