cancel
Showing results for 
Search instead for 
Did you mean: 

STM32CubeIDE with CMake - Multiple Applications

DenzilDexter
Associate

Hello ST,

Apologies in advance if I've missed something obvious.  I'm working on a new product that will comprise multiple STM32 processors each running their own firmware.  I envisage there being a number of libraries containing common code that will be linked to by the various processor firmware(s).  I have some experience of using cmake for desktop development (linux/windows) with vscode and am trying to relate that experience to STM32CubeIDE.  I'm not getting far.  I envisage a project structure like this:

|--Project XX
|- CMakeFiles.txt
|-- apps
| |-- board1
 | | |-- Inc
  | | |-- *.h files
 | | |-- Src
  | | |-- *.c files
| | |-- board1.ioc
  | | |-- CMakeFiles.txt
  | | |
 | |-- board2
 | | |-- Inc
  | | |-- *.h files
 | | |-- Src
| | |-- *.c files
| | |-- board21.ioc
  | | |-- CMakeFiles.txt
  | |-- etc
|-- libs
 | |- Lib1
  | |-- Sources/Headers
  | |-- CMakeFiles.txt
   | |- Lib2
  | |-- Sources/Headers
  | |-- CMakeFiles.txt
  | |-- etc
|-- test
|-- docs
|-- etc

I want to then be able to do a cmake configure and cmake build for the entire tree.  

I can create an STM32 cmake project (e.g. for board1) in the STM32CubeIDE but I can't see how to make this work for the structure above.

Any help or advice would be much appreciated.

DD

 

 

 

 

0 REPLIES 0