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

Serial Printing on STM32F1 using CubeMX

I am trying to build a project in which the stm32 reads serial data from a electronic scale and sends to a thermal printer on button press. Initially, I used arduino IDE to create and execute code, but it was too difficult for me. I managed to receive and print weight on serial monitor, but printing only current weight data on button press is headache. I failed it, as more than 1 weight data is printing. So I’m trying to achieve it on cubemx.

I have stm32 connected to pc via ftdi, Weighing scale is connected to a Max232 and then connected to PA9 and PA10 of stm32.

I hope Someone may help me to solve this program. loads of thanks in advance. Pardon my bad English.