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 <nhut.nguyen.kc@renesas.com>
This commit is contained in:
Nhut Nguyen 2025-04-01 16:11:56 +07:00 committed by Benjamin Cabé
commit 6ca84e3c9a

View file

@ -7,9 +7,10 @@
#include <zephyr/devicetree.h>
#include <zephyr/linker/sections.h>
/* Require CONFIG_XIP=n */
#define ROM_START (CONFIG_FLASH_BASE_ADDRESS + DT_REG_ADDR(DT_CHOSEN(zephyr_code_partition)))
#define RAM_START _image_ram_start // Require CONFIG_XIP=n
#define APP_SIZE _image_ram_size
#define RAM_START CONFIG_SRAM_BASE_ADDRESS
#define APP_SIZE _flash_used
_ASM_FILE_PROLOGUE