Skip to content

Commit

Permalink
arch/arm/stm32: convert error to warning when CCM is not enabled
Browse files Browse the repository at this point in the history
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
  • Loading branch information
raiden00pl authored and xiaoxiang781216 committed Oct 26, 2024
1 parent 052ea5b commit da1ff4c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/arm/src/stm32/stm32_allocateheap.c
Original file line number Diff line number Diff line change
Expand Up @@ -466,7 +466,7 @@

# if CONFIG_MM_REGIONS < 2
# ifdef CONFIG_STM32_HAVE_CCM
# error "CCM SRAM excluded from the heap because CONFIG_MM_REGIONS < 2"
# warning "CCM SRAM excluded from the heap because CONFIG_MM_REGIONS < 2"
# endif
# undef CONFIG_STM32_CCMEXCLUDE
# define CONFIG_STM32_CCMEXCLUDE 1
Expand Down

0 comments on commit da1ff4c

Please sign in to comment.