How to configure RA2L1 Flash Start address and length.
In CS+Ā IDE for RL78/G11 In Peripheral Function click on Common/Clock GeneratorĀ Ā then click on Data Flash Options Settings , Enable Data Flash SettingsĀ . Please Find Below theĀ link for sample code https://drive.google.com/file/d/1Y8tWXF4uUOAOWPRroPsqsezqIHRX1pXF/view?usp=sharing
In CS+Ā IDE for RL78/G11 In Peripheral Function click on Common/Clock GeneratorĀ Ā then click on Data Flash Options Settings , Enable Data Flash SettingsĀ .
Please Find Below theĀ link for sample code
https://drive.google.com/file/d/1Y8tWXF4uUOAOWPRroPsqsezqIHRX1pXF/view?usp=sharing
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