<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://community.element14.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>ARM: Multi-Application Programming for ARM from KEIL</title><link>https://community.element14.com/products/devtools/technicallibrary/w/documents/13244/arm-multi-application-programming-for-arm-from-keil</link><description /><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>ARM: Multi-Application Programming for ARM from KEIL</title><link>https://community.element14.com/products/devtools/technicallibrary/w/documents/13244/arm-multi-application-programming-for-arm-from-keil</link><pubDate>Fri, 08 Oct 2021 06:17:40 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:56329e02-230b-4146-bd5d-2f323fcc26a5</guid><dc:creator>atomar</dc:creator><comments>https://community.element14.com/products/devtools/technicallibrary/w/documents/13244/arm-multi-application-programming-for-arm-from-keil#comments</comments><description>Current Revision posted to Documents by atomar on 10/8/2021 6:17:40 AM&lt;br /&gt;
&lt;p style="margin:0;margin-top:16px;margin-right:0px;margin-bottom:16px;margin-left:0px;color:#000000;font-family:verdana, sans-serif;text-align:-webkit-auto;padding:0px;"&gt;The example shows how you can split a project into two parts that can be developed independent from each other.&lt;/p&gt;
&lt;p style="margin:0;margin-top:16px;margin-right:0px;margin-bottom:16px;margin-left:0px;color:#000000;font-family:verdana, sans-serif;text-align:-webkit-auto;padding:0px;"&gt;The application implements a classic Blinky example, but the part that performs the LED blinky is in a separate project that can be translated independent from the &lt;strong&gt;Main Program&lt;/strong&gt;.&lt;/p&gt;
&lt;p style="margin:0;margin-top:16px;margin-right:0px;margin-bottom:16px;margin-left:0px;color:#000000;font-family:verdana, sans-serif;text-align:-webkit-auto;padding:0px;"&gt;The &lt;strong&gt;Main.uv2&lt;/strong&gt; project contains for convenience both parts &lt;strong&gt;Main Part&lt;/strong&gt; and &lt;strong&gt;AddOn&lt;/strong&gt; and is configured in two targets:&lt;/p&gt;
&lt;ul style="list-style-type:square;margin-top:6px;margin-right:0px;margin-bottom:16px;margin-left:28px;color:#000000;font-family:verdana, sans-serif;text-align:-webkit-auto;padding:0px;"&gt;
&lt;li style="padding-top:2px;padding-right:0px;padding-bottom:2px;padding-left:0px;margin-top:0px;margin-bottom:0px;"&gt;&lt;strong&gt;Main Program&lt;/strong&gt; which allows to generate the Main Program and is configured for program debugging.&lt;/li&gt;
&lt;li style="padding-top:2px;padding-right:0px;padding-bottom:2px;padding-left:0px;margin-top:0px;margin-bottom:0px;"&gt;&lt;strong&gt;Addon Function&lt;/strong&gt; which allows to create the program part that contains the add on function.&lt;/li&gt;
&lt;/ul&gt;
&lt;p style="margin:0;margin-top:16px;margin-right:0px;margin-bottom:16px;margin-left:0px;color:#000000;font-family:verdana, sans-serif;text-align:-webkit-auto;padding:0px;"&gt;The &lt;strong&gt;Addon.uv2&lt;/strong&gt; project contains only the &lt;strong&gt;Addon&lt;/strong&gt; and shows how to configure a project that hides the&lt;strong&gt;Main Program&lt;/strong&gt;.&lt;/p&gt;
&lt;h3&gt;Project Generation&lt;/h3&gt;
&lt;p style="margin:0;margin-top:16px;margin-right:0px;margin-bottom:16px;margin-left:0px;color:#000000;font-family:verdana, sans-serif;text-align:-webkit-auto;padding:0px;"&gt;The &lt;strong&gt;Main Part&lt;/strong&gt; exports the symbols to &lt;strong&gt;AddOn&lt;/strong&gt; via the &lt;strong&gt;--symdefs&lt;/strong&gt; directive of the RealView Linker. In this case the file &lt;strong&gt;main.obj&lt;/strong&gt; is created which is a standard text file. It should be noted that &lt;strong&gt;main.obj&lt;/strong&gt; is a two way file - only the symbols that are contained in this file are updated which allows you to hide symbols form the &lt;strong&gt;Main Part&lt;/strong&gt;. If you delete &lt;strong&gt;main.obj&lt;/strong&gt; all symbols of the &lt;strong&gt;Main Part&lt;/strong&gt; are exported to &lt;strong&gt;main.obj&lt;/strong&gt;.&lt;/p&gt;
&lt;p style="margin:0;margin-top:16px;margin-right:0px;margin-bottom:16px;margin-left:0px;color:#000000;font-family:verdana, sans-serif;text-align:-webkit-auto;padding:0px;"&gt;In the &lt;strong&gt;Addon&lt;/strong&gt; project, the linker reads &lt;strong&gt;main.obj&lt;/strong&gt; as object file to get the symbol values of the &lt;strong&gt;Main Program&lt;/strong&gt;. This means that &lt;strong&gt;Addon&lt;/strong&gt; can use all these symbols as if they were part of the application.&lt;/p&gt;
&lt;h3&gt;Memory Setup&lt;/h3&gt;
&lt;p style="margin:0;margin-top:16px;margin-right:0px;margin-bottom:16px;margin-left:0px;color:#000000;font-family:verdana, sans-serif;text-align:-webkit-auto;padding:0px;"&gt;For the &lt;strong&gt;Main Part&lt;/strong&gt; the standard uVision method is used to configure the linker. The memory definitions under &lt;strong&gt;Project - Options - Target&lt;/strong&gt; exclude the memory used by the add-on extension.&lt;/p&gt;
&lt;p style="margin:0;margin-top:16px;margin-right:0px;margin-bottom:16px;margin-left:0px;color:#000000;font-family:verdana, sans-serif;text-align:-webkit-auto;padding:0px;"&gt;For the &lt;strong&gt;AddOn&lt;/strong&gt; the linker scatter file &lt;strong&gt;.\Addon.SCT&lt;/strong&gt; is used that specifies the memory regions available for the add-on extension.&lt;/p&gt;
&lt;h3&gt;Debugging and Flash Programming&lt;/h3&gt;
&lt;p style="margin:0;margin-top:16px;margin-right:0px;margin-bottom:16px;margin-left:0px;color:#000000;font-family:verdana, sans-serif;text-align:-webkit-auto;padding:0px;"&gt;The target &lt;strong&gt;Main Program&lt;/strong&gt; is configured for Debugging and Flash Programming of the complete application. The &lt;strong&gt;Addon&lt;/strong&gt; is loaded in the Initialization File &lt;strong&gt;Sim.ini&lt;/strong&gt; and &lt;strong&gt;Flash.ini&lt;/strong&gt; using the LOAD debugger command with the option INCREMENTAL. This gives access to all symbols of the &lt;strong&gt;Main Part&lt;/strong&gt; and the &lt;strong&gt;Addon&lt;/strong&gt; during debugging and downloads the complete application to Flash ROM.&lt;/p&gt;
&lt;div class="migration-injected-attachments"&gt;&lt;div style="font-weight:bold;margin:15px 0 5px 0;"&gt;Attachments:&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;table style="border:0;"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td colspan="2"&gt;&lt;span class="_se_attachment" id="attid_https://www.element14.com/community/api/core/v3/attachments/70379"&gt;&lt;a href="https://community.element14.com/cfs-file/__key/communityserver-wikis-components-files/00-00-00-01-46/ARM.Application_5F00_Library.zip"&gt;community.element14.com/.../ARM.Application_5F00_Library.zip&lt;/a&gt;&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: Application Library&lt;/div&gt;
</description></item></channel></rss>