Loading...
 

SW4STM32 and SW4Linux fully supports the STM32MP1 asymmetric multicore Cortex/A7+M4 MPUs

   With System Workbench for Linux, Embedded Linux on the STM32MP1 family of MPUs from ST was never as simple to build and maintain, even for newcomers in the Linux world.
And, if you install System Workbench for Linux in System Workbench for STM32 you can seamlessly develop and debug asymmetric applications running partly on Linux, partly on the Cortex-M4.
You can get more information from the ac6-tools website and download two short videos (registration required) highlighting:

System Workbench for STM32


Semihosting causes crash when not running in the debugger...

Tunisia

Hi Charles,

It is quite normal that your program that uses semihostion cannot run without attached debugger.

ARM wrote:

What is semihosting?
Semihosting is a mechanism that enables code running on an ARM target to communicate and use the Input/Output facilities on a host computer that is running a debugger.


In fact, the _write routine of rdimon library generate software BKPT instructions handled by the debug agent (here openocd) .

Generally when we need to use semihosting for debugging and we need to have a release version for standalone running purpose we manage to create two different configrations :

  1. Release Configuration : in which we link against nosys.specs or you add syscalls.c
  2. Debug Configuration : in which we link against rdimon.specs, and we add a symbole (define) named DEBUG


In your source code initialise_monitor_handles() should appear within #ifdef DEBUG .... #endif


Regards,
Tarek