diff --git a/samples/drivers/display/boards/mimxrt1170_evk_mimxrt1176_cm7_A.conf b/samples/drivers/display/boards/mimxrt1170_evk_mimxrt1176_cm7_A.conf index d5fb0e239e3a..af2acc5acf0d 100644 --- a/samples/drivers/display/boards/mimxrt1170_evk_mimxrt1176_cm7_A.conf +++ b/samples/drivers/display/boards/mimxrt1170_evk_mimxrt1176_cm7_A.conf @@ -4,4 +4,7 @@ # SPDX-License-Identifier: Apache-2.0 # -CONFIG_HEAP_MEM_POOL_SIZE=4194304 +# Sample will allocate buffer equal to: (panelwidth / 8) * (panelwidth / 4) * pixel depth. For a +# 1280x720 display in a 32-bpp format (e.g. ARGB8888), this is (720 / 8) * (720 / 4) * 4 = 64800 +# bytes. We include 128 bytes of padding for kernel heap structures +CONFIG_HEAP_MEM_POOL_SIZE=64928 diff --git a/samples/drivers/display/boards/mimxrt1170_evk_mimxrt1176_cm7_B.conf b/samples/drivers/display/boards/mimxrt1170_evk_mimxrt1176_cm7_B.conf index 072545354b96..0fbbef94c32a 100644 --- a/samples/drivers/display/boards/mimxrt1170_evk_mimxrt1176_cm7_B.conf +++ b/samples/drivers/display/boards/mimxrt1170_evk_mimxrt1176_cm7_B.conf @@ -4,4 +4,4 @@ # SPDX-License-Identifier: Apache-2.0 # -CONFIG_HEAP_MEM_POOL_SIZE=4194304 +CONFIG_HEAP_MEM_POOL_SIZE=64928 diff --git a/samples/drivers/display/boards/mimxrt1170_evkb_cm7.conf b/samples/drivers/display/boards/mimxrt1170_evkb_cm7.conf index 072545354b96..c8e665357ca3 100644 --- a/samples/drivers/display/boards/mimxrt1170_evkb_cm7.conf +++ b/samples/drivers/display/boards/mimxrt1170_evkb_cm7.conf @@ -4,4 +4,7 @@ # SPDX-License-Identifier: Apache-2.0 # -CONFIG_HEAP_MEM_POOL_SIZE=4194304 +# Sample will allocate buffer equal to: (panelwidth / 8) * (panelwidth / 4) * pixel depth. For a +# 1280x720 display in a 32-bpp format (e.g. ARGB8888), this is (720 / 8) * (720 / 4) * 4 = 64800 +# bytes. We include 128 bytes of padding for kernel heap structures +CONFIG_HEAP_MEM_POOL_SIZE=64928 diff --git a/samples/drivers/display/boards/mimxrt595_evk_mimxrt595s_cm33.conf b/samples/drivers/display/boards/mimxrt595_evk_mimxrt595s_cm33.conf index 06ab28637ed8..c8e665357ca3 100644 --- a/samples/drivers/display/boards/mimxrt595_evk_mimxrt595s_cm33.conf +++ b/samples/drivers/display/boards/mimxrt595_evk_mimxrt595s_cm33.conf @@ -4,7 +4,7 @@ # SPDX-License-Identifier: Apache-2.0 # -# Sample will allocate buffer equal to: (height / 8) * (height / 4) * pixel depth -# For the 1280x720 16 bit display, this is (720 / 8) * (720 / 4) * 2 = 32400 bytes -# We include 128 bytes of padding for kernel heap structures -CONFIG_HEAP_MEM_POOL_SIZE=32528 +# Sample will allocate buffer equal to: (panelwidth / 8) * (panelwidth / 4) * pixel depth. For a +# 1280x720 display in a 32-bpp format (e.g. ARGB8888), this is (720 / 8) * (720 / 4) * 4 = 64800 +# bytes. We include 128 bytes of padding for kernel heap structures +CONFIG_HEAP_MEM_POOL_SIZE=64928