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


Writing a custom firmware for SP1ML

Hello,

I’m trying to build a proof of concept base on spirit1.

First, I used a pair of nucleo L053R8 + IDS01A, and used mbed. I compiled the HelloWorld_IDS01A4 in one click and seconds.... Then I modified this program to read an I2C sensor, and send its value from one board to the other. Very simple....

Next step, I wanted to build a custom board, with a STM32L0, and SP1ML. And I understood that SP1ML itself embed a STM32L1... Basically, I want to compile and flash my modified HelloWorld_IDS01A4 on the SP1ML (and abandon this additional stm32l0, the least I have on my board, the happier I am)

First, online mbed is not suitable for custom boards. No real luck with mbed-cli. So I moved to sw4stm32.

I installed sw4stm32 2.7, and stm32cubemx 5.0.
From there, I have been able to make a simple blink program, and flash it successfully on the SP1ML : works.

And here start difficulties.

I tried to import mbed project into sw4stm32. Doesn’t work. A ton a compilation error.

Then I downloaded x-cube-subg1 from st.com website.
I unzipped the file... and then?

Tried to open a project from directory : I’ve been able to open and compile. But I have no idea where to go to change the target, don’t undertsand the structure of the directory, and what is displayed in eclipse, where is the main? etc...

Tried to install x-core-subg1 in stm32cube from emebedded soft package manager : not available in packages. If I select “From Local” I get the error “this package version is not managed on this version of stm32cubemx”.

Tried to start a new project from stm32cubemx with the good target (stm32l151 (rb?)), and then include the spirit1 library (out of stm32cubemx). But I don’t understand what I do. I tried to copy and paste from ....\STM32CubeExpansion_SUBG1_V3.0.0\Drivers\BSP\Components\spirit1 to my new project. Still a lot of “.h” not found.


In short, I’m lost. What’s the good way to build a program for a custom target and include spirit1 library?
I’ll post more details on error encountere when it’ll more clear what path to follow.


I come from arduino world. IDE is basic, but mostly working. Including library has been made easy for dummies.
I was stunned how mbed is easy : plug the nucleo, click compile from a website, working.... surrealist.
But the step to move to an ide that allows to work on custom board is more than steep.


Any help appreciated, Pierre