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


Redirecting printf() does not work

I’ve done everything mentioned here and in many other pages I Googled.... but I still cannot get printf to work.
HAL_UART_Transmit(&huart1, (uint8_t *)&ch, 1, 0xFFFF); works.
I have syscalls.c

I get this warning :
”./Core/Src/main.c:152:31: warning: ‘__io_putchar’ defined but not used -Wunused-function
#define PUTCHAR_PROTOTYPE int __io_putchar(int ch)

../Core/Src/main.c:158:3: note: in expansion of macro ‘PUTCHAR_PROTOTYPE’
PUTCHAR_PROTOTYPE
~~~~~~~~~~~~~~~~
Finished building: ../Core/Src/main.c ”

I guess the fact that __io_putchar not being used is the root of the problem ?

Any ideas what I’m doing wrong here ?