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


You are viewing a reply to printf through uart  

printf through uart

I got the _read(), _write() method by MSchultz to work, mostly.

STM32F437, using HAL from STM32 Cube.

This prints fine:

printf(" Hello World \n");

The problem is when I print with a leading newline ‘\n’ character in the print string. This

printf("\n Hello World ");

arrives at _write as a length = 1 string containing only the newline character. The rest of the string appears to be lost, it never gets printed.

I’ve tried all three options of setbuf(), no buffering and line buffering work the same, as I described, losing the rest of the string after ‘\n’. Full buffering never prints anything.

Any ideas how I can fix this?

thanks, Michael