<?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>Need to flash code in RAM of Nordic nrf52832 from Segger Embedded Studio?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/51757/need-to-flash-code-in-ram-of-nordic-nrf52832-from-segger-embedded-studio</link><description>Trying to flash code in RAM of nRF52832 using Segger Embedded Studio. 
 
 Is there any SDK Example program for the same Please share the same</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 21 Nov 2022 09:32:46 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/51757/need-to-flash-code-in-ram-of-nordic-nrf52832-from-segger-embedded-studio" /><item><title>RE: Need to flash code in RAM of Nordic nrf52832 from Segger Embedded Studio?</title><link>https://devzone.nordicsemi.com/thread/396588?ContentTypeID=1</link><pubDate>Mon, 21 Nov 2022 09:32:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4104bd42-6e2f-47d7-a98b-22e7d3ff9ec0</guid><dc:creator>lvh831</dc:creator><description>&lt;p&gt;Could you elaborate how you did it? I also want to download my code to RAM so that I wouldn&amp;#39;t damage the flash unit. It&amp;#39;s for CI unit test.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Need to flash code in RAM of Nordic nrf52832 from Segger Embedded Studio?</title><link>https://devzone.nordicsemi.com/thread/209311?ContentTypeID=1</link><pubDate>Thu, 12 Sep 2019 07:12:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bce00dca-e5d4-4a32-9670-9781c866151c</guid><dc:creator>Nivas Bathirappan</dc:creator><description>&lt;p&gt;I have tried with some register configuration by referring&amp;nbsp;&lt;a href="http://markding.github.io/swd_programing_sram/"&gt;http://markding.github.io/swd_programing_sram/&lt;/a&gt;&amp;nbsp;and can able to flash code successfully in RAM.&lt;/p&gt;
&lt;p&gt;Thanks for your support on this Vidar for understanding what I need.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Need to flash code in RAM of Nordic nrf52832 from Segger Embedded Studio?</title><link>https://devzone.nordicsemi.com/thread/207991?ContentTypeID=1</link><pubDate>Wed, 04 Sep 2019 13:27:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:aac73bf8-8904-4f69-9089-a65eb4d271c0</guid><dc:creator>Nivas Bathirappan</dc:creator><description>&lt;p&gt;We are working in a flashing prgram(if I try to explain it , it may go pages &amp;amp; pages) So only I have mentioned what I needed.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Need to flash code in RAM of Nordic nrf52832 from Segger Embedded Studio?</title><link>https://devzone.nordicsemi.com/thread/207990?ContentTypeID=1</link><pubDate>Wed, 04 Sep 2019 13:26:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9c49a636-9fd6-457f-a5fc-f8000dfbecfb</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Please try the blinky example attached below. I just change the address range for the flash segment to code RAM. Segments should be renamed if you want to do it properly.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/5557.blinky.zip"&gt;devzone.nordicsemi.com/.../5557.blinky.zip&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;You also need to set update PC with the debugger to start execution from RAM:&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1567603608090v1.png" /&gt;&lt;/p&gt;
&lt;p&gt;EDIT: You also need to set the VTOR register if you need interrupt forwarding.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Need to flash code in RAM of Nordic nrf52832 from Segger Embedded Studio?</title><link>https://devzone.nordicsemi.com/thread/207985?ContentTypeID=1</link><pubDate>Wed, 04 Sep 2019 13:15:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e382ac73-a6b7-4fe4-b7d4-fd78306e78c8</guid><dc:creator>awneil</dc:creator><description>[quote userid="81882" url="~/f/nordic-q-a/51757/need-to-flash-code-in-ram-of-nordic-nrf52832-from-segger-embedded-studio/207979"]im trying to get a simple solution[/quote]
&lt;p&gt;But a solution to &lt;strong&gt;&lt;em&gt;what&lt;/em&gt; problem ?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;What problem, exactly, do you solve by having your code disappear when the power is removed?&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;/strong&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Need to flash code in RAM of Nordic nrf52832 from Segger Embedded Studio?</title><link>https://devzone.nordicsemi.com/thread/207979?ContentTypeID=1</link><pubDate>Wed, 04 Sep 2019 13:05:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4951907c-9c7d-4da8-ad17-4e457772d282</guid><dc:creator>Nivas Bathirappan</dc:creator><description>&lt;p&gt;Please, I know RAM is volatile &amp;amp; it will be gone once it is power off. Again im trying to get a simple solution . I need to flash code in RAM instead of Flash memory is that possible if so how to achieve this?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Need to flash code in RAM of Nordic nrf52832 from Segger Embedded Studio?</title><link>https://devzone.nordicsemi.com/thread/207977?ContentTypeID=1</link><pubDate>Wed, 04 Sep 2019 13:01:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5957f214-33ca-4eba-8935-60ff407e9a39</guid><dc:creator>Nivas Bathirappan</dc:creator><description>&lt;p&gt;I have tried setting of ProgramSection load=&amp;quot;No&amp;quot; in Flash&amp;nbsp;area&amp;nbsp;and making&amp;nbsp;ProgramSection load=&amp;quot;yes&amp;quot; in the RAM area in &amp;#39;Flash_Placement.xml&amp;#39; and removed FLASH related Macro in Section Placement MAcro in Common (Private Configuration), but I got build error in many cases.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Need to flash code in RAM of Nordic nrf52832 from Segger Embedded Studio?</title><link>https://devzone.nordicsemi.com/thread/207976?ContentTypeID=1</link><pubDate>Wed, 04 Sep 2019 13:00:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5e8c586e-b27a-453e-af7a-7da858d4693e</guid><dc:creator>awneil</dc:creator><description>&lt;p&gt;No, &amp;quot;&lt;em&gt;running from RAM&lt;/em&gt;&amp;quot; is not a goal - it is a means to an end.&lt;/p&gt;
&lt;p&gt;RAM is &lt;em&gt;&lt;strong&gt;volatile&lt;/strong&gt; &lt;/em&gt;- so, when you power-off the board, the code will be gone!&lt;/p&gt;
&lt;p&gt;So running from RAM is not going to achieve your stated goal with the LED!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Need to flash code in RAM of Nordic nrf52832 from Segger Embedded Studio?</title><link>https://devzone.nordicsemi.com/thread/207973?ContentTypeID=1</link><pubDate>Wed, 04 Sep 2019 12:56:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3b8d3ec2-a435-4f4c-89da-b4202350db9e</guid><dc:creator>Nivas Bathirappan</dc:creator><description>&lt;p&gt;My goal is very simple. I&amp;#39;m trying to flash blinky SDE example program directly to RAM. Such a way that if I power OFF &amp;amp; ON the board. LED should not blink.(Code will be gone off)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Need to flash code in RAM of Nordic nrf52832 from Segger Embedded Studio?</title><link>https://devzone.nordicsemi.com/thread/207971?ContentTypeID=1</link><pubDate>Wed, 04 Sep 2019 12:52:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1b8a0ade-c1dc-4075-98d9-e9803fc440c5</guid><dc:creator>awneil</dc:creator><description>[quote userid="81882" url="~/f/nordic-q-a/51757/need-to-flash-code-in-ram-of-nordic-nrf52832-from-segger-embedded-studio/207963"]I need &lt;i&gt;(sic?)&lt;/i&gt; to execute the whole program(all function call) from RAM[/quote]
&lt;p&gt;Why?&lt;/p&gt;
&lt;p&gt;If you explain your goal, people may be able to help you get there ...&lt;/p&gt;
&lt;p&gt;&lt;a href="http://www.catb.org/esr/faqs/smart-questions.html#goal"&gt;http://www.catb.org/esr/faqs/smart-questions.html#goal&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Again:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;you won&amp;#39;t be able to get an entire BLE program into RAM;&lt;/li&gt;
&lt;li&gt;you will need to consult the Segger documentation (possibly also GCC docs)&amp;nbsp;&lt;/li&gt;
&lt;/ul&gt;
[quote userid="81882" url="~/f/nordic-q-a/51757/need-to-flash-code-in-ram-of-nordic-nrf52832-from-segger-embedded-studio/207963"] I have tried different methods[/quote]
&lt;p&gt;What, exactly, have you tried?&lt;/p&gt;
&lt;p&gt;What problems, exactly, are you having?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Need to flash code in RAM of Nordic nrf52832 from Segger Embedded Studio?</title><link>https://devzone.nordicsemi.com/thread/207968?ContentTypeID=1</link><pubDate>Wed, 04 Sep 2019 12:49:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:09215c44-7979-4457-98d8-f552873b0d08</guid><dc:creator>Nivas Bathirappan</dc:creator><description>&lt;p&gt;I have not tried in any other Cortex M4 before, So I don&amp;#39;t know whether it is different or Not.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Need to flash code in RAM of Nordic nrf52832 from Segger Embedded Studio?</title><link>https://devzone.nordicsemi.com/thread/207963?ContentTypeID=1</link><pubDate>Wed, 04 Sep 2019 12:47:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:deaaa1cd-6742-4f61-bd36-021a7f960e98</guid><dc:creator>Nivas Bathirappan</dc:creator><description>&lt;p&gt;Yes, I need to execute the whole program(all function call) from RAM. I know we need to change in linker script&amp;nbsp; &amp;#39;Flash_Placement.xml&amp;#39; &amp;amp; Section Placement Macro. I have tried different methods referring website still I have not got a solution.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Need to flash code in RAM of Nordic nrf52832 from Segger Embedded Studio?</title><link>https://devzone.nordicsemi.com/thread/207960?ContentTypeID=1</link><pubDate>Wed, 04 Sep 2019 12:40:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3acbf11f-eb0e-4790-943b-fe889e31af6b</guid><dc:creator>awneil</dc:creator><description>&lt;p&gt;Would it be any different from doing that with any other Cortex M4?&lt;/p&gt;
&lt;p&gt;Note that you&amp;#39;re not going to fit the SoftDevice into RAM!&lt;/p&gt;
&lt;p&gt;&lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f62e.svg" title="Open mouth"&gt;&amp;#x1f62e;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Need to flash code in RAM of Nordic nrf52832 from Segger Embedded Studio?</title><link>https://devzone.nordicsemi.com/thread/207959?ContentTypeID=1</link><pubDate>Wed, 04 Sep 2019 12:40:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:eb10e138-2a3d-45e1-bf39-7cd373dc9363</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Ok, so you want to execute code from RAM. Is it for a particular function call or all function calls in a particular source file?&amp;nbsp;You will need to change the linker script for this.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Need to flash code in RAM of Nordic nrf52832 from Segger Embedded Studio?</title><link>https://devzone.nordicsemi.com/thread/207956?ContentTypeID=1</link><pubDate>Wed, 04 Sep 2019 12:36:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:20a22675-54a8-4897-b828-b75466b13cee</guid><dc:creator>Nivas Bathirappan</dc:creator><description>&lt;p&gt;Yes I need to load code in RAM instead of Flash Memory.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Need to flash code in RAM of Nordic nrf52832 from Segger Embedded Studio?</title><link>https://devzone.nordicsemi.com/thread/207955?ContentTypeID=1</link><pubDate>Wed, 04 Sep 2019 12:35:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e07964c9-f585-4d40-b549-47c6de43ae3a</guid><dc:creator>awneil</dc:creator><description>&lt;p&gt;Not entirely clear what you mean by that?&lt;/p&gt;
&lt;p&gt;You mean &lt;em&gt;load&lt;/em&gt; code into RAM?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>