diff --git a/bsp/stm32/libraries/STM32H7xx_HAL/CMSIS/Device/ST/STM32H7xx/Include/stm32h747xx.h b/bsp/stm32/libraries/STM32H7xx_HAL/CMSIS/Device/ST/STM32H7xx/Include/stm32h747xx.h index 41c44ff065ec4f5be82fbac2588cb9df7fde2d7c..c8d0a9c5f97a846deb9cd073e1f98ad9a2fa4c9b 100644 --- a/bsp/stm32/libraries/STM32H7xx_HAL/CMSIS/Device/ST/STM32H7xx/Include/stm32h747xx.h +++ b/bsp/stm32/libraries/STM32H7xx_HAL/CMSIS/Device/ST/STM32H7xx/Include/stm32h747xx.h @@ -217,9 +217,7 @@ typedef enum #define SMPS /*!< Switched mode power supply feature */ -#if !defined(__CC_ARM) || defined(__CLANG_ARM) || defined(__ICCARM__) -#define CORE_CM7 -#endif + /** * @brief Configuration of the Cortex-M4/ Cortex-M7 Processor and Core Peripherals diff --git a/bsp/stm32/stm32h747-st-discovery/board/SConscript b/bsp/stm32/stm32h747-st-discovery/board/SConscript index da8731eb9037ade83d0a51e32b8b511f7a940dc6..5f34d27d46cfeb326b09eccea13a3262f8f8e7c1 100644 --- a/bsp/stm32/stm32h747-st-discovery/board/SConscript +++ b/bsp/stm32/stm32h747-st-discovery/board/SConscript @@ -23,7 +23,7 @@ elif rtconfig.CROSS_TOOL == 'iar': # STM32H743xx || STM32H750xx || STM32F753xx # You can select chips from the list above -CPPDEFINES = ['STM32H747xx'] +CPPDEFINES = ['STM32H747xx', 'CORE_CM7'] group = DefineGroup('Drivers', src, depend = [''], CPPPATH = path, CPPDEFINES = CPPDEFINES) Return('group') diff --git a/bsp/stm32/stm32h747-st-discovery/project.uvprojx b/bsp/stm32/stm32h747-st-discovery/project.uvprojx index a6d4eb3c75d81fdf7b6dac6414a457c07a859747..e8a7a8d6f6f0d6b54f591bbf22e702e23ad45af5 100644 --- a/bsp/stm32/stm32h747-st-discovery/project.uvprojx +++ b/bsp/stm32/stm32h747-st-discovery/project.uvprojx @@ -336,7 +336,7 @@ 0 - STM32H747xx, USE_HAL_DRIVER + STM32H747xx, CORE_CM7, USE_HAL_DRIVER .;..\..\..\include;board;board\CubeMX_Config\CM7\Inc;..\libraries\HAL_Drivers;..\libraries\HAL_Drivers\config;..\..\..\libcpu\arm\common;..\..\..\libcpu\arm\cortex-m7;..\..\..\components\drivers\include;..\..\..\components\drivers\include;..\..\..\components\drivers\include;..\..\..\components\finsh;..\..\..\components\libc\compilers\common;..\libraries\STM32H7xx_HAL\STM32H7xx_HAL_Driver\Inc;..\libraries\STM32H7xx_HAL\CMSIS\Device\ST\STM32H7xx\Include;..\libraries\STM32H7xx_HAL\CMSIS\Include