Selecting CORE_CM4 or CORE_CM7

Development environment specific, Arduino, Eclipse, VS2013, Em::Blocks etc
Post Reply
cgulick
Posts: 2
Joined: Wed Mar 23, 2022 4:11 pm

Selecting CORE_CM4 or CORE_CM7

Post by cgulick »

Hello,
In the arduino IDE how do I define the core for the stm32H747 series. I am getting this error message.
#error Please #define CORE_CM4 or CORE_CM7.

Thank you
User avatar
fpiSTM
Posts: 1723
Joined: Wed Dec 11, 2019 7:11 pm
Answers: 91
Location: Le Mans
Contact:

Re: Selecting CORE_CM4 or CORE_CM7

Post by fpiSTM »

Could you be more precise? Which target you select?
Sketch you build? ....
cgulick
Posts: 2
Joined: Wed Mar 23, 2022 4:11 pm

Re: Selecting CORE_CM4 or CORE_CM7

Post by cgulick »

Tools settings
Board = "Generic STM32H7 Series
Board Part Number = Generic H747IITx

Sketch is
void setup() {
// put your setup code here, to run once:

}

void loop() {
// put your main code here, to run repeatedly:

}

Error is
C:\Users\chrgul\AppData\Local\Arduino15\packages\STMicroelectronics\hardware\stm32\2.1.0\system/Drivers/CMSIS/Device/ST/STM32H7xx/Include/stm32h747xx.h:244:2: error: #error Please #define CORE_CM4 or CORE_CM7
244 | #error Please #define CORE_CM4 or CORE_CM7
| ^~~~~
GonzoG
Posts: 403
Joined: Wed Jan 15, 2020 11:30 am
Answers: 26
Location: Prudnik, Poland

Re: Selecting CORE_CM4 or CORE_CM7

Post by GonzoG »

It's there in the error description:
Please #define CORE_CM4 or CORE_CM7
H747 is a dual core MCU, you need to define which core you want to use.
User avatar
fpiSTM
Posts: 1723
Joined: Wed Dec 11, 2019 7:11 pm
Answers: 91
Location: Le Mans
Contact:

Re: Selecting CORE_CM4 or CORE_CM7

Post by fpiSTM »

OK.
There is an issue. Currently there is no dual core management and we should be able to provide a way to define which Cortex we target.
Could you submit an issue on GitHub to track this.

Thanks.
User avatar
fpiSTM
Posts: 1723
Joined: Wed Dec 11, 2019 7:11 pm
Answers: 91
Location: Le Mans
Contact:

Re: Selecting CORE_CM4 or CORE_CM7

Post by fpiSTM »

I've created an issue on GH to track this.

https://github.com/stm32duino/Arduino_C ... ssues/1756
Post Reply

Return to “IDE's”