Skip to content

Commit 6ca84e3

Browse files
nhutnguyenkckartben
authored andcommitted
soc: renesas: rz: Fix loader program
Due to a change in linker script cortex_a_r/scripts/linker.ld , the _image_ram_start has been changed so the Zephyr image cannot be copied from flash to ram as expected and cannot run properly. It is replaced by CONFIG_SRAM_BASE_ADDRESS, the _image_ram_size is also replaced by _flash_used as a preventive measure. Signed-off-by: Nhut Nguyen <[email protected]>
1 parent c2235a7 commit 6ca84e3

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

soc/renesas/rz/common/loader_program.S

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,10 @@
77
#include <zephyr/devicetree.h>
88
#include <zephyr/linker/sections.h>
99

10+
/* Require CONFIG_XIP=n */
1011
#define ROM_START (CONFIG_FLASH_BASE_ADDRESS + DT_REG_ADDR(DT_CHOSEN(zephyr_code_partition)))
11-
#define RAM_START _image_ram_start // Require CONFIG_XIP=n
12-
#define APP_SIZE _image_ram_size
12+
#define RAM_START CONFIG_SRAM_BASE_ADDRESS
13+
#define APP_SIZE _flash_used
1314

1415
_ASM_FILE_PROLOGUE
1516

0 commit comments

Comments
 (0)