This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Simulator Based C project (Non OS)

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 & 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 to connect the host pc to a hardware. Nor do I want to involve linux for these trivial examples. To that extent these are bare-metal examples but only that I wont be connecting to any hardware. I think in Real View it used to be called a connection to RVISS  or something like that. I used to be able to teh  choose the ARM processor I was targeting inside that. I assume such programming is with  DS-5 too. When I look into debug configuration, I dont see an explicit ISS or simulator sounding name as target.

Can someone point me along the right direction for creating a clean, simple, simulator based C and Assembly projects in DS-5 professional edition?

Thanks.
Parents
  • Note: This was originally posted on 13th June 2013 at http://forums.arm.com


    Unfortunately the "Run as..." and "Debug as..." are Eclipse features for native host apps.  Using the Debug Configurations... dialog is the right thing for DS-5.  There is no running without debug in DS-5 (although you can do much the same by executing a 'continue' command automatically.

    [/size]
    Semihosting output should appear in the "App Console" view.  Semihosting is usually enabled automatically based on the symbols the image contains (if you're using armcc) but you can check the status with 'info semihosting'

    Note also that there are various bare-metal examples (e.g. fireworks) that are supplied with DS-5 that you can import.



    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.

    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?

    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?
Reply
  • Note: This was originally posted on 13th June 2013 at http://forums.arm.com


    Unfortunately the "Run as..." and "Debug as..." are Eclipse features for native host apps.  Using the Debug Configurations... dialog is the right thing for DS-5.  There is no running without debug in DS-5 (although you can do much the same by executing a 'continue' command automatically.

    [/size]
    Semihosting output should appear in the "App Console" view.  Semihosting is usually enabled automatically based on the symbols the image contains (if you're using armcc) but you can check the status with 'info semihosting'

    Note also that there are various bare-metal examples (e.g. fireworks) that are supplied with DS-5 that you can import.



    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.

    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?

    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?
Children
No data