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:
parent
c2235a727d
commit
6ca84e3c9a
1 changed files with 3 additions and 2 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue