Last edited 3 years ago

How to debug a user space application with STM32CubeIDE

This article is a guideline to user space project support, which is fully integrated from release 1.6.0 of STM32CubeIDE.

It covers executable, static or shared libraries support from project creation to debug. It also gives some tracks to easily use the GTK library or start a new project from the standard Eclipse® CDT™ project wizard.

1. Prerequisite[edit source]

Minimum hardware

  • STM32MP15xx-based board
  • Linux® console
  • Ethernet (or Ethernet over USB) for connection to Linux® Cortex®-A

Minimum software

2. STM32CubeIDE ® user space[edit source]

From STM32CubeIDE release 1.6.0 it is possible to enrich an STM32MP15xx hierarchical project with User Space type project.

STM32MP15 project enriched with Linux user space projects


3. Eclipse® CDT™ STM32 Linux® user space[edit source]

From STM32CubeIDE release 1.6.0, it is also possible to easily create an STM32MP15xx user space project from the standard CDT™ Eclipse® wizard.

In that case, the user space project is not part of any STM32MP15xx hierarchical project and appears as a standalone project in Eclipse® project explorer view: myCdtProject below:

CDT™ Linux® user space project