Tux
Communication
Mailing lists
Documentation
User Manual
Target board info.
Target chip info.
Support
Linux support
Bugzilla
Downloads
STLinux
Updates
Search
Google


The web
stlinux.com
Using STWorkbench with STLinux
Direct debugging of executables
ST Logo
Previous   Contents   Next

STWorkbench does not directly support the direct debugging of executables built outside the IDE. However, these steps allow you to run or debug an executable built using the command line tools.

  1. To set a preference to ignore build errors when launching a run/debug, select Window > Preferences then select Run/Debug > Launching.

  2. In the last but one section, Continue launch if project contains errors, check that Always is selected.

  3. Preferences

  4. Select File > New > Project then select the C > C Project wizard.

  5. Enter a name for the project in the Project name text box

  6. Select Makefile project from the Project types list

  7. Select ST40 Linux GCC from the Toolchain list.

  8. Uncheck Use default location and browse to the directory containing your executable.

    Note: the wizard will warn that "Directory with specified name already exists!". This is expected and can be ignored.

  9. Click Next.

  10. In the project settings, make sure the binary parser is set to the ST Elf Parser. Later on you can modify this setting using Project > Properties.

  11. Click Finish. If a confirmation appears, click Yes. The project is created.

  12. You can now create a new run/debug configuration for your project in the normal way. Make sure you have selected the STLinux Target Application launch configuration type and that you have chosen a target that is booted and running.

    Direct Debugging

    If no source code is available for the executable it should still be possible to run it and to debug the code in instruction stepping mode, using the disassembly.

  13. Disassembly

For more details on how to set up standard make projects and all other aspects of the tool please see the documentation, the training material and the online help.

Previous   Contents   Next
Valid HTML 4.01! Last updated: 18th December 2007
© Copyright STMicroelectronics Limited, 2005
Printer