<?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>Execute application loaded in RAM</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/77222/execute-application-loaded-in-ram</link><description>Custom nRF52 device uses SPI interface for external flash, so in order to read/write to external flash would need a RAM loaded firmware to keep code in internal flash untouched. Is it possible to create something similar to this: https://github.com/ti</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 09 Jul 2021 14:00:58 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/77222/execute-application-loaded-in-ram" /><item><title>RE: Execute application loaded in RAM</title><link>https://devzone.nordicsemi.com/thread/319407?ContentTypeID=1</link><pubDate>Fri, 09 Jul 2021 14:00:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bfe1375c-a77a-4af1-9486-68da395a19b2</guid><dc:creator>tovine</dc:creator><description>&lt;p&gt;Hi, for executing firmware from RAM the linker config would need to be changed from flash memory ranges to ones in RAM yes, and there would need to be some way of loading the firmware into RAM (for example via a debug probe connection, if there isn&amp;#39;t going to be any involvement in this by firmware in flash).&lt;/p&gt;
&lt;p&gt;I&amp;#39;m guessing that you&amp;#39;re not talking about execute-in-place (XIP) QSPI memory since you&amp;#39;re mentioning SPI and executing from RAM?&lt;/p&gt;
&lt;p&gt;If you&amp;#39;re using an IDE like Segger Embedded Studio or Keil &amp;micro;Vision they should both have functionality for placing functions in RAM and will then generate the required startup code for copying them from their location in flash to their designated area in RAM, but I guess that&amp;#39;s not exactly what you were looking for?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>