Skip to content

Commit 076fd79

Browse files
committed
Adjust RAM configuration for nrf54h20 to optimize memory usage in video examples
1 parent 77258a3 commit 076fd79

3 files changed

Lines changed: 9 additions & 4 deletions

File tree

hw/bsp/nrf/boards/nrf54h20dk/board.cmake

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
set(MCU_VARIANT nrf54h20)
22

33
function(update_board TARGET)
4-
# temporarily, 54h20 has multiple sram sections
4+
# 32 KB primary RAM is too tight for memory-heavy examples (e.g. video YUY2
5+
# framebuf). TODO: route static .bss to RAM00 (512 KB) and drop this.
56
target_compile_definitions(${TARGET} PUBLIC
67
CFG_EXAMPLE_VIDEO_READONLY
78
)

hw/bsp/nrf/boards/nrf54h20dk/board.mk

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
MCU_VARIANT = nrf54h20
22
CFLAGS += -DNRF54H20_XXAA
33

4+
# 32 KB primary RAM is too tight for memory-heavy examples (e.g. video YUY2
5+
# framebuf). Match the CMake build (board.cmake) — TODO: route static .bss to
6+
# RAM00 (512 KB) and drop this.
7+
CFLAGS += -DCFG_EXAMPLE_VIDEO_READONLY
8+
49
# enable max3421 host driver for this board
510
MAX3421_HOST = 1
611

hw/bsp/nrf/boards/nrf54lm20dk/board.cmake

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ set(MCU_VARIANT nrf54lm20a_enga)
22
set(JLINK_DEVICE NRF54LM20A_M33)
33

44
function(update_board TARGET)
5-
target_compile_definitions(${TARGET} PUBLIC
6-
CFG_EXAMPLE_VIDEO_READONLY
7-
)
5+
# No board-specific overrides needed — primary 256 KB RAM is plenty for
6+
# memory-heavy examples (video YUY2 framebuf etc.).
87
endfunction()

0 commit comments

Comments
 (0)