User space CDT project

Revision as of 16:17, 28 January 2021 by Registered User

Create a "user space" project[edit source]

  • Open new C Project wizard: File -> New -> Project... C Project.
New C Project wizard
  • In first window, choose OpenSTLinux SDK
New C Project wizard
  • then Next
New C Project wizard
  • and Next
New C Project wizard
  • To populate this project with "main.c" file, select project, right click: New -> File -> main.c and fill it with some C code.

1. Build[edit source]

  • Select your project, right-click and then Build Project.
C Project build


2. Preparing Debug Configuration[edit source]

Your target must be Linux booted and network connected. In order to check it, please, start Target Status widget on the bottom right.

Target Status - green


3. Debug Configuration[edit source]

  • Select your project, right-click Debug as... > Debug Configurations.
  • Then create a STM32 Cortex-A Remote Application debug configuration, double clicking on it.
C Project debug


4. Debug[edit source]

Click Debug :

  1. Executable is downloaded to the target,
  2. GDBServer is launched on the target,
  3. GDBClient is launched on the workstation and can exchange via network with GDBServer,
C Project debug
Info white.png Information
in case of error; please check if GDBServer is still running on the target.
No categories assignedEdit