Skip to content

Commit 5607a44

Browse files
ngphibangfabiobaltieri
authored andcommitted
samples: drivers: display: Modify heap size configs for RT595 & RT1170
The heap size for i.MX RT1170 is way too much while for i.MX RT595, it is too small to afford for 4-bytes formats, e.g. ARGB8888. Signed-off-by: Phi Bang Nguyen <[email protected]>
1 parent 080f26f commit 5607a44

File tree

4 files changed

+13
-7
lines changed

4 files changed

+13
-7
lines changed

samples/drivers/display/boards/mimxrt1170_evk_mimxrt1176_cm7_A.conf

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,7 @@
44
# SPDX-License-Identifier: Apache-2.0
55
#
66

7-
CONFIG_HEAP_MEM_POOL_SIZE=4194304
7+
# Sample will allocate buffer equal to: (panelwidth / 8) * (panelwidth / 4) * pixel depth. For a
8+
# 1280x720 display in a 32-bpp format (e.g. ARGB8888), this is (720 / 8) * (720 / 4) * 4 = 64800
9+
# bytes. We include 128 bytes of padding for kernel heap structures
10+
CONFIG_HEAP_MEM_POOL_SIZE=64928

samples/drivers/display/boards/mimxrt1170_evk_mimxrt1176_cm7_B.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@
44
# SPDX-License-Identifier: Apache-2.0
55
#
66

7-
CONFIG_HEAP_MEM_POOL_SIZE=4194304
7+
CONFIG_HEAP_MEM_POOL_SIZE=64928

samples/drivers/display/boards/mimxrt1170_evkb_cm7.conf

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,7 @@
44
# SPDX-License-Identifier: Apache-2.0
55
#
66

7-
CONFIG_HEAP_MEM_POOL_SIZE=4194304
7+
# Sample will allocate buffer equal to: (panelwidth / 8) * (panelwidth / 4) * pixel depth. For a
8+
# 1280x720 display in a 32-bpp format (e.g. ARGB8888), this is (720 / 8) * (720 / 4) * 4 = 64800
9+
# bytes. We include 128 bytes of padding for kernel heap structures
10+
CONFIG_HEAP_MEM_POOL_SIZE=64928

samples/drivers/display/boards/mimxrt595_evk_mimxrt595s_cm33.conf

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
# SPDX-License-Identifier: Apache-2.0
55
#
66

7-
# Sample will allocate buffer equal to: (height / 8) * (height / 4) * pixel depth
8-
# For the 1280x720 16 bit display, this is (720 / 8) * (720 / 4) * 2 = 32400 bytes
9-
# We include 128 bytes of padding for kernel heap structures
10-
CONFIG_HEAP_MEM_POOL_SIZE=32528
7+
# Sample will allocate buffer equal to: (panelwidth / 8) * (panelwidth / 4) * pixel depth. For a
8+
# 1280x720 display in a 32-bpp format (e.g. ARGB8888), this is (720 / 8) * (720 / 4) * 4 = 64800
9+
# bytes. We include 128 bytes of padding for kernel heap structures
10+
CONFIG_HEAP_MEM_POOL_SIZE=64928

0 commit comments

Comments
 (0)