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


The discussion of standard IO dynamic switching among semihost, UARTx, and NULL on STM32

Hello here,
I had done a quick hack based on the syscalls.c from AC6 and liviu Ionescu’s work. As I said, it is a quick hack, but works well. In the application code, invoke
freopen(“/dev/null”,”w”,stdout);
freopen(“/dev/semihosting”,”w”,stdout);
freopen(“/dev/ttyS2”,”w”,stdout);
freopen(“/dev/ttyS3”,”w”,stdout);
to redirect the standard Output to null, semihosting , UART2 , UART3 etc.
Null means to drop all of the data to standard Output.

I have the zip file attached here, in hoping to help someone.
Again, as I said, this is a hack, the code was far away from clean and neat, and only support stdout. Of course, the similar way can apply to stdin. It is welcome for peoples to refine the code and provide a clean neat and enhanced version.

-Andy