STM32Cube_MCU_Overall_Offer icon indicating copy to clipboard operation
STM32Cube_MCU_Overall_Offer copied to clipboard

Some newer device headers are inconsistently including <core_cm...h> instead of "core_cm...h"

Open gfuehrer opened this issue 10 months ago • 4 comments

Historically, device headers, eg stm32F303.h, have lines like this:

#include "core_cm4.h"            /* Cortex-M4 processor and core peripherals */
#include "system_stm32f3xx.h"    /* STM32F3xx System Header */

But in some newer ones, eg stm32L562.h, it is now like this:

#include <core_cm33.h>                      /*!< ARM Cortex-M33 processor and core peripherals */
#include "system_stm32l5xx.h"               /*!< STM32L5xx System */

Putting just the one CMSIS header but not the other in the -isystem search path instead of the -iquote search path is, obviously, crazed. I think they correctly belong in the -iquote search path, and why change from the past?

Please replace #include <core_cm...h> with #include "core_cm...h" everywhere that it got messed up.

gfuehrer avatar Apr 18 '24 18:04 gfuehrer

Hello @gfuehrer,

In fact, there is no mistake in your statement. The STM32F3 series contains the Cortex-M4 core, while the STM32L5 series includes the Cortex-M33 core.

image therefore image

As long as there is no issue with our firmware, please allow me to close this issue.

Regards, Rania

RJMSTM avatar May 21 '24 14:05 RJMSTM

@RJMSTM Please re-open this issue and re-read the issue description. The problem is the difference between <> and "", NOT the Cortex-M type.

salkinium avatar May 22 '24 11:05 salkinium

Hello @salkinium ,

I apologize for the confusion regarding your issue, I will forward your question on to our development team.

Regards,

RJMSTM avatar May 22 '24 13:05 RJMSTM

ST Internal Reference: 186603

RJMSTM avatar Jul 15 '24 14:07 RJMSTM