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


How to use SW4STM32 with CUBEMX, on Eclipse as IDE in Linux OS?

In Windows along with IDE like Keil it was direct; use CubeMX, select necessay pins, clock etc. and generate the code. The code gets transferred in Keil and we can add the necessary coding.

However, in Ubuntu, i think it’s not that straight, atleast for me. Keil is not supported too in Linux.

So, in my system there is
CubeMX
Eclipse Neon
gcc-arm linked with Eclipse
stlink-master linked with Eclipse.

In Eclipse forum, I got the guidance that I can use SW4STM32 on Eclipse.

How to proceed, please explain.

A reply is required.


Thank you for reply Mr Dautrevaux, I am proceeding to the link now.

I have downloaded the 333MB file named “install_sw4stm32_linux_32bits-latest.run” from the link mentioned for 32 bit system.

What to do next, how to link it with my Eclipse, I don’t know how to do this.

Kindly guide.




I have downloaded the 333MB file named “install_sw4stm32_linux_32bits-latest.run” from the link mentioned for 32 bit system.

What to do next, how to link it with my Eclipse, I don’t know how to do this.

Kindly guide.


Unfortunately the instructions on the “Installing ...” page are incorrect and do not give the link for Version 2 which is what we all should be running now.
Linux 32bit is not supported anymore since release 2.0, this is described in top of Linux section.
So could the correct link be put in the instructions so that they work? Just knowing things won’t work isn’t really that helpful!

I just started on a NUCLEO-F401RE project loading from SW4STM32 (AC6) and CubeMX with a project that includes FreeRTOS. Most of it works OK out of the box, and I have 2 threads working. But the links to standard libraries STDIO and STDLIB seem to have problems, probably because of the need for a HEAP. I have experimented by providing (in main.c) shims that expose pvPortMalloc() and vPortFree() as public malloc and free to the rest of the project. But that does not seem to be sufficient. Local heap4.c from FreeRTOS would appear to be required for things like strtok and printf to work (I have coded them locally to get things working).
While I realise printf-stdarg.c is often suggested, IS THERE A SIMPLE WAY to link the standard C libraries (?newlib-nano? is that what eclipse uses?) to the FreeRTOS malloc and free so the heap can be used ‘normally’ by those libraries?
OR is it just that FreeRTOS heap implementation is not compatible with the Standard C library?
Any help much appreciated. Graham Davies.