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

running a C program on ECLIPSE

Note: This was originally posted on 9th December 2011 at http://forums.arm.com

hi all,
i stuck up with running a C program(project) on eclipse IDE,with out debugging.
i can able to debug with ARM cortexA8 RTSM,but unable to run it.
can anyone give detailed procedure for running the same.
by searching in the internet,all i get is for running cpp projects..using make file.
that procedure is not working for c projects.
it will be also helpful,if u explain make file and target building stuff related to c projects.
  • Note: This was originally posted on 10th December 2011 at http://forums.arm.com

    i am using DS-5,
    thanks for the information provided..
    could you expain about building target and all that stuff

    ARM provides a number of Eclipse-based toolchains, including RealView Development Suite (RVDS) and Development Studio 5 (DS-5). Which one are you using?

    In DS-5, there is no specific menu entry to run without debugging. Instead the procedure is to use a debug launch configuration and disable the debug features. In the Debug Configurations dialog, the important settings relating to debug are on the Debugger tab. One way is to configure the connection as "Connect only"; this connects without enabling any debug features (such as breakpoints) and also doesn't load any images; you'll then need to write a script or add commands to stop the processor (if necessary), load your image and set it running. Another way is to use "Debug from entry point"; this stops the processor (if necessary) and loads your image ready to run; however, breakpoints will be enabled, so if you don't want these, either delete them all in the debugger first, or write a script or add commands to disable all the breakpoints. In both cases, you can also add a command to run your image once connection is complete. To determine the commands to load images, disable breakpoints or start running, the easiest way is to start a debug session, perform these actions in the GUI and see the commands that are echoed to the Commands view.
  • Note: This was originally posted on 16th December 2011 at http://forums.arm.com

    Thanks a lot for the information. now ,as per your instructions ,able to generate make file automatically and able to debug in Linux RTSM mode.
    but while trying to run the program directly , i am facing with error. the screen shots for the same are attached.
    and it will be helpful if you provide information on memory profiling i.e finding number of cycles(MCPS) for the program

    I see the issue. Right-click on your project in the Project Explorer view and click on Properties in the menu. In the Properties dialog, select the C/C++ Build tab, and then ensure the "Generate Makefiles automatically" is enabled. Then click OK to close the dialog. Now when you build, the makefile is generated and the build should complete. I don't know if this is intended or not, but it doesn't seem very obvious to me; I'll raise the issue internally within ARM.
  • Note: This was originally posted on 16th December 2011 at http://forums.arm.com


    Thanks a lot for the information. now ,as per your instructions ,able to generate make file automatically and able to debug in Linux RTSM mode.
    but while trying to run the program directly , i am facing with error. the screen shots for the same are attached.
    and it will be helpful if you provide information on memory profiling i.e finding number of cycles(MCPS) for the program



    To Run/Debug application on the target using DS-5 debugger, you have to use DS-5 debug configuration. Please open the "Debug configurations" instead of "Run configurations" and create a new DS-5 Debugger configuration.

    Please follow the "Start a Debug Session Using DS-5 Debugger" Cheat Sheet for detailed information.

    To open Cheat Sheets, from the DS-5 Eclipse menu bar click on Help>>Cheat Sheets...>>ARM DS-5 Debugger>>Start a Debug Session Using DS-5 Debugger.