cancel
Showing results for 
Search instead for 
Did you mean: 

How to propagate a compiler preprocessor define from a STM32CubeIDE project to its referenced projec

Muscle Man
Associate III

Hi,

I have a STM32CubeIDE project for a STM32H7H dual core board.
Now I want import in the workspace a project already present in another
folder (via Import -> General -> Existing Projects into Workspace).
The imported project was at the time developed as a generic library.
If I open Project -> Properties -> C/C++ Build -> Settings -> Tool Settings
I see in the right side of the dialog box the field MCU grayed, because of
when the project was imported no specific MCU setting was present (in fact
the project is thought as a generic library project).

Then I changed the project properties of both main project for CM7 core and
for CM4 code to reference the generic imported library project (via Project ->
Properties -> Project References).

My question is: how can I "propagate" the MCU settings (such as, for example,
the -mcu=cortex-m7) and also other settings from the main projects (both the one
for CM7 core and the one for CM4 core) into the referenced generic library
project so that the library is compiled for one core?

This avoid me to have a library project in two versions (one for core CM4, the
other one for CM7).

Thanks in advance to everyone could point me in the right solving direction.

 

0 REPLIES 0