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 (registration required) various documents highlighting:

System Workbench for STM32


Where do I find diag/Trace.h?

Hello

I am trying to build my first program for a Nucleo-F446RE using Cube HAL. It is also my first time using System Workbench. And my first time with STM32!

I created the project using

My app is a simple app that creates a couple FreeRTOS tasks and prints which task is running. The print is done with trace_printf. But it won’t compile because the compiler can’t find diag/Trace.h

What do I have to do to get this working? Is there an easier method to print to the console from tasks?

Well I have somewhat solved this for myself. The app I was trying to build is built using the GNU ARM Eclipse plugin. That plugin installs Trace.c and Trace.h in a diag folder inside the project. Those trace files create commands like trace_printf which are used to print to the eclipse console while debugging. I have not been able to add those to my project...although I didn’t try very hard.

What I did do is add semihosting as is documented on this forum. This allows the standard printf command to print to the eclipse console while debugging. This appears to accomplish what the trace files did in the GNU ARM plugin.

Thanks to those who documented semihosting and thanks to ac6 who developed System Workbench. It is saving me a bunch of time. It’s nice to have a professional package that is priced so affordably!!