summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhathach <[email protected]>2024-04-05 16:28:17 +0700
committerhathach <[email protected]>2024-04-05 16:28:17 +0700
commit2f9700dc2b5dd758b9da7b283a03aa311e2f9883 (patch)
tree422f6ecbc915ca77148ae97838c0afd1c9f94ff6
parent5b2441d8a3cae01de522d28cbac378464d3df678 (diff)
fix ram overflow with ram41
-rw-r--r--hw/bsp/ra/boards/ra4m1_ek/board.cmake4
-rw-r--r--hw/bsp/ra/boards/uno_r4/board.cmake4
2 files changed, 6 insertions, 2 deletions
diff --git a/hw/bsp/ra/boards/ra4m1_ek/board.cmake b/hw/bsp/ra/boards/ra4m1_ek/board.cmake
index 4188d3188..7bb48bf44 100644
--- a/hw/bsp/ra/boards/ra4m1_ek/board.cmake
+++ b/hw/bsp/ra/boards/ra4m1_ek/board.cmake
@@ -4,7 +4,9 @@ set(MCU_VARIANT ra4m1)
set(JLINK_DEVICE R7FA4M1AB)
function(update_board TARGET)
-# target_compile_definitions(${TARGET} PUBLIC)
+ target_compile_definitions(${TARGET} PUBLIC
+ CFG_EXAMPLE_VIDEO_READONLY
+ )
# target_sources(${TARGET} PRIVATE)
# target_include_directories(${BOARD_TARGET} PUBLIC)
endfunction()
diff --git a/hw/bsp/ra/boards/uno_r4/board.cmake b/hw/bsp/ra/boards/uno_r4/board.cmake
index 34780d776..9d59bc4f7 100644
--- a/hw/bsp/ra/boards/uno_r4/board.cmake
+++ b/hw/bsp/ra/boards/uno_r4/board.cmake
@@ -5,7 +5,9 @@ set(JLINK_DEVICE R7FA4M1AB)
set(LD_FILE_GNU ${CMAKE_CURRENT_LIST_DIR}/${BOARD}.ld)
function(update_board TARGET)
-# target_compile_definitions(${TARGET} PUBLIC)
+ target_compile_definitions(${TARGET} PUBLIC
+ CFG_EXAMPLE_VIDEO_READONLY
+ )
# target_sources(${TARGET} PRIVATE)
# target_include_directories(${BOARD_TARGET} PUBLIC)
endfunction()