Skip to content

Commit

Permalink
samples: drivers: display: Modify heap size configs for RT595 & RT1170
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
ngphibang authored and fabiobaltieri committed Mar 7, 2024
1 parent 080f26f commit 5607a44
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@
# SPDX-License-Identifier: Apache-2.0
#

CONFIG_HEAP_MEM_POOL_SIZE=4194304
CONFIG_HEAP_MEM_POOL_SIZE=64928
5 changes: 4 additions & 1 deletion samples/drivers/display/boards/mimxrt1170_evkb_cm7.conf
Original file line number Diff line number Diff line change
Expand Up @@ -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
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 5607a44

Please sign in to comment.