User space static library project

Revision as of 19:07, 27 January 2021 by Registered User

1. Create a "user space" project[edit source]

In context of Cortex-A7 sub-project, MP157C-DK2_CA7 here, right click and select Create a userspace Project..

User space project wizard shortcut

We select here Static Library project type, in C language. Note that our user space project will use by default the SDK version associated to Cortex-A7 sub-project.

User space project creation wizard

2. Build[edit source]

  • Select your project, right-click and then Build Project.
Static Library Build


3. Update myExe project sources & properties, in order to use myStaticLib[edit source]

Hereafter is an updated code in order main() to call myStaticLib function say_hello().
You also have to reference myStaticLib project inside myExe properties: C/C++ General > Paths and Symbols > References; as depicted hereafter.

Executable source & properties update


4. Preparing Debug Configuration[edit source]

Your target must be Linux booted and network connected. Please, start Target Status widget on the bottom right and check for the green light.

Target Status - green


5. Debug Configuration[edit source]

Select your project, right-click Debug as... > Debug Configurations, then select STM32 Cortex-A Remote Application'.

Debug configuration shortcut

5.1. Main tab[edit source]

The default Connection proposed is "MPU SSH", corresponding to the target IP address discovered by Target Status. The default destination directory is /home/root.

User space debug configuration - main tab

6. Debug: stepping into myStaticLib[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,
User space static library debug
Info white.png Information
in case of error; please stop any GDBServer running on the target before launching a new debug session.
No categories assignedEdit