-
Notifications
You must be signed in to change notification settings - Fork 7.9k
soc: stm32: move stack size definitions to the correct place #92825
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM functionally.
Move CONFIG_MAIN_STACK_SIZE to be the default in the Kconfig.defconfig files and avoid code duplication in each related soc. SOC_STM32F031X6 has its own configuration so keep it in its soc file. Signed-off-by: Fabrice DJIATSA <fabrice.djiatsa-ext@st.com>
Move CONFIG_MAIN_STACK_SIZE to be the default in the Kconfig.defconfig stm32g031xx file. Signed-off-by: Fabrice DJIATSA <fabrice.djiatsa-ext@st.com>
Move CONFIG_MAIN_STACK_SIZE to be the default in the Kconfig.defconfig files and avoid code duplication in each related soc. SOC_STM32L011XX has its own configuration so keep it in its soc file. Signed-off-by: Fabrice DJIATSA <fabrice.djiatsa-ext@st.com>
|
# Reduce kernel stack sizes to fit in 8 KiB RAM | ||
config MAIN_STACK_SIZE | ||
default 640 if SOC_STM32F030X4 || SOC_STM32F030X8 || SOC_STM32F051X8 | ||
|
||
config IDLE_STACK_SIZE | ||
default 200 if SOC_STM32F030X4 || SOC_STM32F030X8 || SOC_STM32F051X8 | ||
|
||
config ISR_STACK_SIZE | ||
default 512 if SOC_STM32F030X4 || SOC_STM32F030X8 || SOC_STM32F051X8 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's work on a common Kconfig piece that would define profiles based on DT_CHOSEN(zephyr_ram) and apply it on the whole STM32 family.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
e.g. at family Kconfig level
config MAIN_STACK_SIZE
default 640 if SRAM_SIZE <= 8192
default ... if SRAM_SIZE <= ....
etc
Following discussions in #85368
This PR moves the definitions of
MAIN_STACK_SIZE
,IDLE_STACK_SIZE
, andISR_STACK_SIZE
to a dedicated defconfig file.These changes specifically concern the STM32 families:
F0
,G0
, andL0
, boards with low memory.