<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://community.arm.com/utility/feedstylesheets/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/"><channel><title>Simulator Based C project (Non OS)</title><link>https://community.arm.com/developer/tools-software/tools/f/armds-forum/471/simulator-based-c-project-non-os</link><description> Note: This was originally posted on 11th June 2013 at http://forums.arm.com Hello, I am trying to create a couple of trivial C &amp;amp; ARM 7/9 assembly example projects on DS-5 to run using Simulation mode like I used to be able to do in RVDS without having</description><dc:language>en-US</dc:language><generator>Telligent Community 10</generator><item><title>RE: Simulator Based C project (Non OS)</title><link>https://community.arm.com/thread/938?ContentTypeID=1</link><pubDate>Wed, 11 Sep 2013 10:55:20 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:8ef92853-5fcb-4b19-bab1-aa67f6dee644</guid><dc:creator>Scott Douglass</dc:creator><description>&lt;div&gt;&lt;i&gt;Note: This was originally posted on 13th June 2013 at &lt;a href="http://forums.arm.com"&gt;http://forums.arm.com&lt;/a&gt;&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;&lt;span&gt;I&amp;#39;m glad you&amp;#39;ve got it working.&amp;#160; If you could explain more about what was initially confusing that would be helpful.&amp;#160; By &amp;quot;redundancy&amp;quot; do you mean the various ways to get to the Debug Configuration dialog or something else?&amp;#160; (Sorry, I pointed you to App Console instead of Target Console.&amp;#160; The App Console is the stdio place when doing Linux app debug.)&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span&gt;You can build for ARM7TDMI and run the code on the Cortex-A9 model, but there&amp;#39;s no ARM7 model supplied.&amp;#160; (Although big-endian might be a problem; I&amp;#39;m not sure if Cortex-A9 supports BE32.)&lt;/span&gt;&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Simulator Based C project (Non OS)</title><link>https://community.arm.com/thread/937?ContentTypeID=1</link><pubDate>Wed, 11 Sep 2013 10:55:20 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:b372c98e-cc6f-4e9a-9a97-84532b83c6f9</guid><dc:creator>Bhooshan Iyer</dc:creator><description>&lt;div&gt;&lt;i&gt;Note: This was originally posted on 13th June 2013 at &lt;a href="http://forums.arm.com"&gt;http://forums.arm.com&lt;/a&gt;&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;&lt;br /&gt;Unfortunately the &amp;quot;Run as...&amp;quot; and &amp;quot;Debug as...&amp;quot; are Eclipse features for native host apps.&amp;#160; Using the Debug Configurations... dialog is the right thing for DS-5.&amp;#160; There is no running without debug in DS-5 (although you can do much the same by executing a &amp;#39;continue&amp;#39; command automatically.&lt;br /&gt;&lt;br /&gt;[/size]&lt;br /&gt;Semihosting output should appear in the &amp;quot;App Console&amp;quot; view.&amp;#160; Semihosting is usually enabled automatically based on the symbols the image contains (if you&amp;#39;re using armcc) but you can check the status with &amp;#39;info semihosting&amp;#39;&lt;br /&gt;&lt;br /&gt;Note also that there are various bare-metal examples (e.g. fireworks) that are supplied with DS-5 that you can import.&lt;br /&gt;&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span&gt;Ok, got it finally. It was a bit confusing but it was worth the effort trying figure things out. Some of the features are initially not very intuitive. There is a lot of redundancy on how to reach a particular setting, which adds to the confusion as well.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span&gt;AS for the semi-hosting output, I finally got it but although in the target console and not the apps console. Any idea why I am not getting the output in Apps console window Scott?&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span&gt;P.S: So in DS-5 there is no way to write ARM-7TDMI program in Simulation mode? It seems wrong to me as RVDS had the ISS for almost all the ARM cores. Is there a work around for this?&lt;/span&gt;&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Simulator Based C project (Non OS)</title><link>https://community.arm.com/thread/934?ContentTypeID=1</link><pubDate>Wed, 11 Sep 2013 10:55:20 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:4a2cc3f5-91d0-43b9-9b03-fa7d9957ce39</guid><dc:creator>Scott Douglass</dc:creator><description>&lt;div&gt;&lt;i&gt;Note: This was originally posted on 12th June 2013 at &lt;a href="http://forums.arm.com"&gt;http://forums.arm.com&lt;/a&gt;&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;&lt;br /&gt;But when I right click on project name and try to run as stand alone C/C++ application it gives an error saying Binary not found.&lt;br /&gt;&lt;/blockquote&gt;&lt;br /&gt;&lt;span&gt;Unfortunately the &amp;quot;Run as...&amp;quot; and &amp;quot;Debug as...&amp;quot; are Eclipse features for native host apps.&amp;#160; Using the Debug Configurations... dialog is the right thing for DS-5.&amp;#160; There is no running without debug in DS-5 (although you can do much the same by executing a &amp;#39;continue&amp;#39; command automatically.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;&lt;br /&gt;I am able to connect to the target under DS-5 debug perspective and even single step the code after loading it but it still wont show me an STDIO window.&lt;br /&gt;&lt;/blockquote&gt;&lt;br /&gt;&lt;span&gt;Semihosting output should appear in the &amp;quot;App Console&amp;quot; view.&amp;#160; Semihosting is usually enabled automatically based on the symbols the image contains (if you&amp;#39;re using armcc) but you can check the status with &amp;#39;info semihosting&amp;#39;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span&gt;Note also that there are various bare-metal examples (e.g. fireworks) that are supplied with DS-5 that you can import.&lt;/span&gt;&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Simulator Based C project (Non OS)</title><link>https://community.arm.com/thread/935?ContentTypeID=1</link><pubDate>Wed, 11 Sep 2013 10:55:19 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:97418f51-1933-4396-9c46-a248d0e47a13</guid><dc:creator>Bhooshan Iyer</dc:creator><description>&lt;div&gt;&lt;i&gt;Note: This was originally posted on 12th June 2013 at &lt;a href="http://forums.arm.com"&gt;http://forums.arm.com&lt;/a&gt;&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;&lt;br /&gt;There are two models included with DS-5, a Cortex-A8 and a mulit-core Corte-A9.&amp;#160; When you configure the Debug Connection look for &amp;quot;Cortex-A8 RTSM&amp;quot; or &amp;quot;RTSM_VE_Cortex_A9x4&amp;quot;.&amp;#160; Under these select &amp;quot;Bare Metal Debug&amp;quot;.&lt;br /&gt;&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;&lt;span&gt;Thanks, I had an earlier version of DS-5 which did not have these models. Now I have updated to latest DS-5 and I am able to locate this RTSM in my DS-5. I have now selected Cortex A8 RTSM and Bare Metal Debug. I have now selected&amp;#160; the following and still facing some possible simple problems when I try to run the project: &amp;quot;Launching Hello World has encountered a problem. Error starting process&amp;quot; etc. basically I dont get to see a hello world printed in the console where I am expecting it to be showed.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span&gt;1. C Project-&amp;gt; Bare Metal Executable-&amp;gt; Hello World Project&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span&gt;2. Run Configuration under &amp;quot;Main&amp;quot;:I am specifying the project I am debugging( Hello World) from the workspace. &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span&gt;&amp;#160; 2.1 Under C/C++ Application, I try selecting Search Project but it is unable to locate the binary, so I specify the .AXF file to be loaded after browsing for it.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span&gt;&amp;#160; 2.2 Build Configuration: I have selected: &amp;quot;Use workspace settings, Use Active .&lt;/span&gt;&lt;br /&gt;&lt;span&gt;&amp;#160; 2.3 Select Configuration using C/C++ Application remains unchecked.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span&gt;3. Debug Configurations: Under Connections: Select Target- &amp;gt; UNder DS-5 Debugger, I selected New configuration and enabled Cortex A8 RTSM&amp;#160; -&amp;gt; Baremetal Debug -&amp;gt; Debug Cortex A8&lt;/span&gt;&lt;br /&gt;&lt;span&gt;3.1 Under Connections tab-&amp;gt; Under Connections -&amp;gt; Model Parameters-&amp;gt; I have left it blank/&lt;/span&gt;&lt;br /&gt;&lt;span&gt;3.2 Under Files Tab- &amp;gt; Application on Host to download -?&amp;gt; I have selected Hello World.ASF after clicking the workspace button below it.&lt;/span&gt;&lt;br /&gt;&lt;span&gt;3.3 Under Files Tab-&amp;gt;&amp;#160; There is also a File System button- which I have left un utilized.&lt;/span&gt;&lt;br /&gt;&lt;span&gt;3.4 UNder Files Selection -&amp;gt; I have selected Load Symbol from file.&lt;/span&gt;&lt;br /&gt;&lt;span&gt;3.5 Under Debugger Tab -&amp;gt;I have selected Debug from Symbol under Run Control&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span&gt;I am able to build the project successfully in c/c++ project view. It gives zero errors. But when I right click on project name and try to run as stand alone C/C++ application it gives an error saying Binary not found. When I build the, there is a .axf file created in the workspace. I am able to connect to the target under DS-5 debug perspective and even single step the code after loading it but it still wont show me an STDIO window.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span&gt;So on one side I am unable to do a simple run as of the project after building it and another side, after launching DS-5 debug session, I am able to connect to target and single step but not view the output.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span&gt;Any help would be appreciated. Thanks.&lt;/span&gt;&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Simulator Based C project (Non OS)</title><link>https://community.arm.com/thread/933?ContentTypeID=1</link><pubDate>Wed, 11 Sep 2013 10:55:19 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:5c92d880-7de7-45b1-b9a2-437e6db92933</guid><dc:creator>Martin Weidmann</dc:creator><description>&lt;div&gt;&lt;i&gt;Note: This was originally posted on 11th June 2013 at &lt;a href="http://forums.arm.com"&gt;http://forums.arm.com&lt;/a&gt;&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;&lt;span&gt;There are two models included with DS-5, a Cortex-A8 and a mulit-core Corte-A9.&amp;#160; When you configure the Debug Connection look for &amp;quot;Cortex-A8 RTSM&amp;quot; or &amp;quot;RTSM_VE_Cortex_A9x4&amp;quot;.&amp;#160; Under these select &amp;quot;Bare Metal Debug&amp;quot;.&lt;/span&gt;&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>