How to configure RA2L1 Flash Start address and length.
In CS+ CC IDE for RH850,when debug tool is connected click on Debug tool settings then click on Flash Options Settings ,OPBT0 as DA20FDCF and OPBT1 as FFFFFDFF for LPD-1 and OPBT0 as BA20FDCF and OPBT1 as FFFFFDFF for LPD-4 and issue is solved program executes continuously .
In CS+ CC IDE for RH850,when debug tool is connected click on Debug tool settings then click on Flash Options Settings ,OPBT0 as DA20FDCF and OPBT1 as FFFFFDFF for LPD-1 and OPBT0 as BA20FDCF and OPBT1 as FFFFFDFF for LPD-4 and issue is solved program executes continuously .
See less
Hi, I have attached an example project on RA2L1 for your reference done on FSP2.3.0. Please update it to latest version if incase you use this example. You would have to edit the linker script, to change the start address in Code flash of the application, however the file memory_regions.ld is an autRead more
Hi,
I have attached an example project on RA2L1 for your reference done on FSP2.3.0. Please update it to latest version if incase you use this example.
You would have to edit the linker script, to change the start address in Code flash of the application, however the file memory_regions.ld is an auto-generated file so any edits are overwritten. Make a copy of memory_regions.ld and give it a different name, e.g. memory_regions_application.ld.
and change the reference from “memory_regions.ld” to the name of the copy of the file you made, at the top of fsp.ld :-
/*
Linker File for Renesas FSP
*/
INCLUDE memory_regions_application.ld
in the file memory_regions_application.ld change the start address and size of the code flash :-
FLASH_START = 0x00008000;
FLASH_LENGTH = 0x38000;
and then in the debug configuration for the application, in the “Run Commands” at the bottom of the Startup tab set the Program counter, Initial Stack pointer and VTOR register to the moved location :-
set $pc = *0x00008004
set $sp = *0x00008000
set {int}0xE000ED08 = 0x00008000
See less