How to configure RA2L1 Flash Start address and length.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people's questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people's questions & connect with other people.
Volt.Tech
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
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 lessThanks, It worked for me.
Thanks, It worked for me.
See less