Skip to content

Commit da1ff4c

Browse files
raiden00plxiaoxiang781216
authored andcommitted
arch/arm/stm32: convert error to warning when CCM is not enabled
User may set CONFIG_MM_REGIONS=1 on purpose to disable CCM. This is a completely normal system config and should not be treated as error. I found this problem trying to run Renode with stm32f4discovery/nsh but Renode doesn't support CCM so we have to disable it
1 parent 052ea5b commit da1ff4c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/arm/src/stm32/stm32_allocateheap.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -466,7 +466,7 @@
466466

467467
# if CONFIG_MM_REGIONS < 2
468468
# ifdef CONFIG_STM32_HAVE_CCM
469-
# error "CCM SRAM excluded from the heap because CONFIG_MM_REGIONS < 2"
469+
# warning "CCM SRAM excluded from the heap because CONFIG_MM_REGIONS < 2"
470470
# endif
471471
# undef CONFIG_STM32_CCMEXCLUDE
472472
# define CONFIG_STM32_CCMEXCLUDE 1

0 commit comments

Comments
 (0)