<?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>Creating partial code for external execution</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/47394/creating-partial-code-for-external-execution</link><description>Hello, 
 Would it be possible to create a partial code that can be placed on external memory, and loaded into ram for execution when needed? 
 As I believe it is possible, the real question is: Could that code execute function already present in the flash</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 17 May 2019 12:14:51 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/47394/creating-partial-code-for-external-execution" /><item><title>RE: Creating partial code for external execution</title><link>https://devzone.nordicsemi.com/thread/187678?ContentTypeID=1</link><pubDate>Fri, 17 May 2019 12:14:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:603c9cfe-44bf-42fc-9841-816cbd0f39da</guid><dc:creator>awneil</dc:creator><description>[quote userid="71494" url="~/f/nordic-q-a/47394/creating-partial-code-for-external-execution/187676"]How can I achieve this? [/quote]
&lt;p&gt;I don&amp;#39;t know - I&amp;#39;ve never tried it myself.&lt;/p&gt;
&lt;p&gt;But it should be the same as for any Cortex-M4 ...&lt;/p&gt;
[quote userid="71494" url="~/f/nordic-q-a/47394/creating-partial-code-for-external-execution/187676"]256kB seems not that limited[/quote]
&lt;p&gt;You didn&amp;#39;t say which chip you had in mind - but It&amp;#39;s still only a quarter of the Flash size&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Creating partial code for external execution</title><link>https://devzone.nordicsemi.com/thread/187676?ContentTypeID=1</link><pubDate>Fri, 17 May 2019 12:08:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f65cf517-c6b5-47b8-987b-fd522505aeb9</guid><dc:creator>Falaroce</dc:creator><description>&lt;p&gt;Thanks you for your answer&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;How can I achieve this? Do I have to declare my functions in the main program a certain way? &lt;br /&gt;&lt;br /&gt;Does what I want to do have a name?&amp;nbsp; I don&amp;#39;t know how to ask a&amp;nbsp;search engine about that&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;On the nrf52840, 256kB seems not that limited. Anyway, executing external code&amp;nbsp;from ram/flash is not my main concern, the real question is how to&amp;nbsp;create that code&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Creating partial code for external execution</title><link>https://devzone.nordicsemi.com/thread/187579?ContentTypeID=1</link><pubDate>Thu, 16 May 2019 16:15:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:947972eb-dbb6-4b42-bfe3-d9a5c785d053</guid><dc:creator>awneil</dc:creator><description>&lt;p&gt;Yes, it should be &lt;em&gt;possible&lt;/em&gt;.&lt;/p&gt;
&lt;p&gt;But remember that the amount of RAM is really quite limited...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>