Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions boards/st/nucleo_l552ze_q/Kconfig.defconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# STM32L552ZE-Q Nucleo board configuration

# Copyright (c) 2024 STMicroelectronics
# SPDX-License-Identifier: Apache-2.0

if BOARD_NUCLEO_L552ZE_Q

if BUILD_WITH_TFM

# Not defining LIBC malloc arena has the effect of declaring all available RAM
# as available for malloc.
# This currently conflicts with TF-M MPU setting, resulting in a hard fault.
# Define a specific size to avoid this situation.

config COMMON_LIBC_MALLOC_ARENA_SIZE
default 2048

endif # BUILD_WITH_TFM

endif # BOARD_NUCLEO_L552ZE_Q
12 changes: 12 additions & 0 deletions boards/st/stm32l562e_dk/Kconfig.defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,16 @@ endchoice

endif # DISPLAY

if BUILD_WITH_TFM

# Not defining LIBC malloc arena has the effect of declaring all available RAM
# as available for malloc.
# This currently conflicts with TF-M MPU setting, resulting in a hard fault.
# Define a specific size to avoid this situation.

config COMMON_LIBC_MALLOC_ARENA_SIZE
default 2048

endif # BUILD_WITH_TFM

endif # BOARD_STM32L562E_DK
Loading