summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkurisaw <[email protected]>2024-11-28 18:28:07 +0800
committerRbb666 <[email protected]>2024-12-04 10:11:04 +0800
commit2c3ee65d7f9fc81af824e86f9e41cf868390be59 (patch)
tree185a24f453dd6b591920022ae19dd0ae7b8a1b3d
parent3f1a62cfe341ffe3f242438b52e2686379a95081 (diff)
rzn2l-rsk support studio
-rw-r--r--bsp/renesas/rzn2l_rsk/.cproject221
-rw-r--r--bsp/renesas/rzn2l_rsk/.project28
-rw-r--r--bsp/renesas/rzn2l_rsk/.settings/hh.JLink.Debug.rttlaunch94
-rw-r--r--bsp/renesas/rzn2l_rsk/.settings/ilg.gnumcueclipse.managedbuild.cross.arm.prefs2
-rw-r--r--bsp/renesas/rzn2l_rsk/.settings/language.settings.xml14
-rw-r--r--bsp/renesas/rzn2l_rsk/.settings/local_temp_storage.prefs2
-rw-r--r--bsp/renesas/rzn2l_rsk/.settings/org.eclipse.core.runtime.prefs3
-rw-r--r--bsp/renesas/rzn2l_rsk/.settings/projcfg.ini19
-rw-r--r--bsp/renesas/rzn2l_rsk/.settings/project.JLink.Debug.rttlaunch92
-rw-r--r--bsp/renesas/rzn2l_rsk/.settings/standalone.prefs16
-rw-r--r--bsp/renesas/rzn2l_rsk/SConscript3
-rw-r--r--bsp/renesas/rzn2l_rsk/board/board.h7
-rw-r--r--bsp/renesas/rzn2l_rsk/rzn/SConscript13
-rw-r--r--bsp/renesas/rzn2l_rsk/script/fsp_xspi0_boot.icf1368
-rw-r--r--bsp/renesas/rzn2l_rsk/script/fsp_xspi0_boot.ld96
-rw-r--r--bsp/renesas/rzn2l_rsk/script/fsp_xspi0_boot_systemRAM.icf699
-rw-r--r--bsp/renesas/rzn2l_rsk/script/memory_regions.ld38
-rw-r--r--libcpu/arm/cortex-r52/context_gcc.S1
18 files changed, 1252 insertions, 1464 deletions
diff --git a/bsp/renesas/rzn2l_rsk/.cproject b/bsp/renesas/rzn2l_rsk/.cproject
new file mode 100644
index 0000000000..e5c18fc2dd
--- /dev/null
+++ b/bsp/renesas/rzn2l_rsk/.cproject
@@ -0,0 +1,221 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<?fileVersion 4.0.0?><cproject storage_type_id="org.eclipse.cdt.core.XmlProjectDescriptionStorage">
+ <storageModule moduleId="org.eclipse.cdt.core.settings">
+ <cconfiguration id="ilg.gnuarmeclipse.managedbuild.cross.config.elf.debug.553091094">
+ <storageModule buildSystemId="org.eclipse.cdt.managedbuilder.core.configurationDataProvider" id="ilg.gnuarmeclipse.managedbuild.cross.config.elf.debug.553091094" moduleId="org.eclipse.cdt.core.settings" name="Debug">
+ <externalSettings />
+ <extensions>
+ <extension id="org.eclipse.cdt.core.ELF" point="org.eclipse.cdt.core.BinaryParser" />
+ <extension id="org.eclipse.cdt.core.GASErrorParser" point="org.eclipse.cdt.core.ErrorParser" />
+ <extension id="org.eclipse.cdt.core.GmakeErrorParser" point="org.eclipse.cdt.core.ErrorParser" />
+ <extension id="org.eclipse.cdt.core.GLDErrorParser" point="org.eclipse.cdt.core.ErrorParser" />
+ <extension id="org.eclipse.cdt.core.CWDLocator" point="org.eclipse.cdt.core.ErrorParser" />
+ <extension id="org.eclipse.cdt.core.GCCErrorParser" point="org.eclipse.cdt.core.ErrorParser" />
+ </extensions>
+ </storageModule>
+ <storageModule moduleId="cdtBuildSystem" version="4.0.0">
+ <configuration artifactName="rtthread" buildArtefactType="org.eclipse.cdt.build.core.buildArtefactType.exe" buildProperties="org.eclipse.cdt.build.core.buildArtefactType=org.eclipse.cdt.build.core.buildArtefactType.exe,org.eclipse.cdt.build.core.buildType=org.eclipse.cdt.build.core.buildType.debug" cleanCommand="${cross_rm} -rf" description="" id="ilg.gnuarmeclipse.managedbuild.cross.config.elf.debug.553091094" name="Debug" parent="ilg.gnuarmeclipse.managedbuild.cross.config.elf.debug">
+ <folderInfo id="ilg.gnuarmeclipse.managedbuild.cross.config.elf.debug.553091094." name="/" resourcePath="">
+ <toolChain id="ilg.gnuarmeclipse.managedbuild.cross.toolchain.elf.debug.1201710416" name="ARM Cross GCC" superClass="ilg.gnuarmeclipse.managedbuild.cross.toolchain.elf.debug">
+ <option id="ilg.gnuarmeclipse.managedbuild.cross.option.addtools.createflash.251260409" name="Create flash image" superClass="ilg.gnuarmeclipse.managedbuild.cross.option.addtools.createflash" useByScannerDiscovery="false" value="true" valueType="boolean" />
+ <option id="ilg.gnuarmeclipse.managedbuild.cross.option.addtools.createlisting.1365878149" name="Create extended listing" superClass="ilg.gnuarmeclipse.managedbuild.cross.option.addtools.createlisting" useByScannerDiscovery="false" />
+ <option id="ilg.gnuarmeclipse.managedbuild.cross.option.addtools.printsize.709136944" name="Print size" superClass="ilg.gnuarmeclipse.managedbuild.cross.option.addtools.printsize" useByScannerDiscovery="false" value="true" valueType="boolean" />
+ <option id="ilg.gnuarmeclipse.managedbuild.cross.option.optimization.level.1986446770" name="Optimization Level" superClass="ilg.gnuarmeclipse.managedbuild.cross.option.optimization.level" useByScannerDiscovery="true" value="ilg.gnuarmeclipse.managedbuild.cross.option.optimization.level.none" valueType="enumerated" />
+ <option id="ilg.gnuarmeclipse.managedbuild.cross.option.optimization.messagelength.1312975261" name="Message length (-fmessage-length=0)" superClass="ilg.gnuarmeclipse.managedbuild.cross.option.optimization.messagelength" useByScannerDiscovery="true" value="false" valueType="boolean" />
+ <option id="ilg.gnuarmeclipse.managedbuild.cross.option.optimization.signedchar.1538128212" name="'char' is signed (-fsigned-char)" superClass="ilg.gnuarmeclipse.managedbuild.cross.option.optimization.signedchar" useByScannerDiscovery="true" value="false" valueType="boolean" />
+ <option id="ilg.gnuarmeclipse.managedbuild.cross.option.optimization.functionsections.2136804218" name="Function sections (-ffunction-sections)" superClass="ilg.gnuarmeclipse.managedbuild.cross.option.optimization.functionsections" useByScannerDiscovery="true" value="true" valueType="boolean" />
+ <option id="ilg.gnuarmeclipse.managedbuild.cross.option.optimization.datasections.244767666" name="Data sections (-fdata-sections)" superClass="ilg.gnuarmeclipse.managedbuild.cross.option.optimization.datasections" useByScannerDiscovery="true" value="true" valueType="boolean" />
+ <option id="ilg.gnuarmeclipse.managedbuild.cross.option.debugging.level.1055848773" name="Debug level" superClass="ilg.gnuarmeclipse.managedbuild.cross.option.debugging.level" useByScannerDiscovery="true" value="ilg.gnuarmeclipse.managedbuild.cross.option.debugging.level.default" valueType="enumerated" />
+ <option id="ilg.gnuarmeclipse.managedbuild.cross.option.debugging.format.501941135" name="Debug format" superClass="ilg.gnuarmeclipse.managedbuild.cross.option.debugging.format" useByScannerDiscovery="true" value="ilg.gnuarmeclipse.managedbuild.cross.option.debugging.format.dwarf2" valueType="enumerated" />
+ <option id="ilg.gnuarmeclipse.managedbuild.cross.option.toolchain.name.1696308067" superClass="ilg.gnuarmeclipse.managedbuild.cross.option.toolchain.name" useByScannerDiscovery="false" value="GNU Tools for ARM Embedded Processors" valueType="string" />
+ <option id="ilg.gnuarmeclipse.managedbuild.cross.option.architecture.1558403188" name="Architecture" superClass="ilg.gnuarmeclipse.managedbuild.cross.option.architecture" useByScannerDiscovery="false" value="ilg.gnuarmeclipse.managedbuild.cross.option.architecture.arm" valueType="enumerated" />
+ <option id="ilg.gnuarmeclipse.managedbuild.cross.option.arm.target.family.749415257" name="ARM family" superClass="ilg.gnuarmeclipse.managedbuild.cross.option.arm.target.family" useByScannerDiscovery="false" value="ilg.gnuarmeclipse.managedbuild.cross.option.arm.target.mcpu.cortex-m4" valueType="enumerated" />
+ <option id="ilg.gnuarmeclipse.managedbuild.cross.option.arm.target.instructionset.2114153533" name="Instruction set" superClass="ilg.gnuarmeclipse.managedbuild.cross.option.arm.target.instructionset" useByScannerDiscovery="false" value="ilg.gnuarmeclipse.managedbuild.cross.option.arm.target.instructionset.thumb" valueType="enumerated" />
+ <option id="ilg.gnuarmeclipse.managedbuild.cross.option.command.prefix.1600865811" name="Prefix" superClass="ilg.gnuarmeclipse.managedbuild.cross.option.command.prefix" useByScannerDiscovery="false" value="arm-none-eabi-" valueType="string" />
+ <option id="ilg.gnuarmeclipse.managedbuild.cross.option.command.c.1109963929" name="C compiler" superClass="ilg.gnuarmeclipse.managedbuild.cross.option.command.c" useByScannerDiscovery="false" value="gcc" valueType="string" />
+ <option id="ilg.gnuarmeclipse.managedbuild.cross.option.command.cpp.1040883831" name="C++ compiler" superClass="ilg.gnuarmeclipse.managedbuild.cross.option.command.cpp" useByScannerDiscovery="false" value="g++" valueType="string" />
+ <option id="ilg.gnuarmeclipse.managedbuild.cross.option.command.ar.1678200391" name="Archiver" superClass="ilg.gnuarmeclipse.managedbuild.cross.option.command.ar" useByScannerDiscovery="false" value="ar" valueType="string" />
+ <option id="ilg.gnuarmeclipse.managedbuild.cross.option.command.objcopy.1171840296" name="Hex/Bin converter" superClass="ilg.gnuarmeclipse.managedbuild.cross.option.command.objcopy" useByScannerDiscovery="false" value="objcopy" valueType="string" />
+ <option id="ilg.gnuarmeclipse.managedbuild.cross.option.command.objdump.342604837" name="Listing generator" superClass="ilg.gnuarmeclipse.managedbuild.cross.option.command.objdump" useByScannerDiscovery="false" value="objdump" valueType="string" />
+ <option id="ilg.gnuarmeclipse.managedbuild.cross.option.command.size.898269225" name="Size command" superClass="ilg.gnuarmeclipse.managedbuild.cross.option.command.size" useByScannerDiscovery="false" value="size" valueType="string" />
+ <option id="ilg.gnuarmeclipse.managedbuild.cross.option.command.make.2016398076" name="Build command" superClass="ilg.gnuarmeclipse.managedbuild.cross.option.command.make" useByScannerDiscovery="false" value="make" valueType="string" />
+ <option id="ilg.gnuarmeclipse.managedbuild.cross.option.command.rm.1606171496" name="Remove command" superClass="ilg.gnuarmeclipse.managedbuild.cross.option.command.rm" useByScannerDiscovery="false" value="rm" valueType="string" />
+ <option id="ilg.gnuarmeclipse.managedbuild.cross.option.toolchain.id.540792084" superClass="ilg.gnuarmeclipse.managedbuild.cross.option.toolchain.id" useByScannerDiscovery="false" value="1287942917" valueType="string" />
+ <option id="ilg.gnuarmeclipse.managedbuild.cross.option.arm.target.architecture.430121817" name="Architecture" superClass="ilg.gnuarmeclipse.managedbuild.cross.option.arm.target.architecture" useByScannerDiscovery="false" value="ilg.gnuarmeclipse.managedbuild.cross.option.arm.target.arch.none" valueType="enumerated" />
+ <option id="ilg.gnuarmeclipse.managedbuild.cross.option.arm.target.fpu.abi.966735324" name="Float ABI" superClass="ilg.gnuarmeclipse.managedbuild.cross.option.arm.target.fpu.abi" useByScannerDiscovery="true" value="ilg.gnuarmeclipse.managedbuild.cross.option.arm.target.fpu.abi.hard" valueType="enumerated" />
+ <option id="ilg.gnuarmeclipse.managedbuild.cross.option.warnings.allwarn.1381561249" name="Enable all common warnings (-Wall)" superClass="ilg.gnuarmeclipse.managedbuild.cross.option.warnings.allwarn" useByScannerDiscovery="true" value="true" valueType="boolean" />
+ <option id="ilg.gnuarmeclipse.managedbuild.cross.option.target.other.2041717463" name="Other target flags" superClass="ilg.gnuarmeclipse.managedbuild.cross.option.target.other" useByScannerDiscovery="true" value="" valueType="string" />
+ <option id="ilg.gnuarmeclipse.managedbuild.cross.option.arm.target.fpu.unit.1463655269" name="FPU Type" superClass="ilg.gnuarmeclipse.managedbuild.cross.option.arm.target.fpu.unit" useByScannerDiscovery="true" value="ilg.gnuarmeclipse.managedbuild.cross.option.arm.target.fpu.unit.fpv4spd16" valueType="enumerated" />
+ <targetPlatform archList="all" binaryParser="org.eclipse.cdt.core.ELF" id="ilg.gnuarmeclipse.managedbuild.cross.targetPlatform.1798638225" isAbstract="false" osList="all" superClass="ilg.gnuarmeclipse.managedbuild.cross.targetPlatform" />
+ <builder buildPath="${workspace_loc:/${ProjName}/Debug" cleanBuildTarget="clean2" id="ilg.gnuarmeclipse.managedbuild.cross.builder.1736709688" keepEnvironmentInBuildfile="false" managedBuildOn="true" name="Gnu Make Builder" parallelBuildOn="true" parallelizationNumber="optimal" superClass="ilg.gnuarmeclipse.managedbuild.cross.builder" />
+ <tool commandLinePattern="${COMMAND} ${cross_toolchain_flags} ${FLAGS} -c ${OUTPUT_FLAG} ${OUTPUT_PREFIX}${OUTPUT} ${INPUTS}" id="ilg.gnuarmeclipse.managedbuild.cross.tool.assembler.1810966071" name="GNU ARM Cross Assembler" superClass="ilg.gnuarmeclipse.managedbuild.cross.tool.assembler">
+ <option id="ilg.gnuarmeclipse.managedbuild.cross.option.assembler.usepreprocessor.1072524326" name="Use preprocessor" superClass="ilg.gnuarmeclipse.managedbuild.cross.option.assembler.usepreprocessor" useByScannerDiscovery="false" value="true" valueType="boolean" />
+ <option id="ilg.gnuarmeclipse.managedbuild.cross.option.assembler.include.paths.161242639" name="Include paths (-I)" superClass="ilg.gnuarmeclipse.managedbuild.cross.option.assembler.include.paths" useByScannerDiscovery="true" />
+ <option id="ilg.gnuarmeclipse.managedbuild.cross.option.assembler.defs.1521934876" name="Defined symbols (-D)" superClass="ilg.gnuarmeclipse.managedbuild.cross.option.assembler.defs" useByScannerDiscovery="true" />
+ <option IS_BUILTIN_EMPTY="false" IS_VALUE_EMPTY="false" id="ilg.gnuarmeclipse.managedbuild.cross.option.assembler.flags.1325367962" name="Assembler flags" superClass="ilg.gnuarmeclipse.managedbuild.cross.option.assembler.flags" useByScannerDiscovery="false" valueType="stringList">
+ <listOptionValue builtIn="false" value="-mimplicit-it=thumb" />
+ </option>
+ <option id="ilg.gnuarmeclipse.managedbuild.cross.option.assembler.other.647856572" name="Other assembler flags" superClass="ilg.gnuarmeclipse.managedbuild.cross.option.assembler.other" useByScannerDiscovery="false" value=" -c -mcpu=cortex-r52 -marm -mfloat-abi=hard -mfpu=neon-fp-armv8 -munaligned-access -fdiagnostics-parseable-fixits -Og -fmessage-length=0 -fsigned-char -ffunction-sections -fdata-sections -funwind-tables -x assembler-with-cpp -Wa,-mimplicit-it=arm -gdwarf-2" valueType="string" />
+ <inputType id="ilg.gnuarmeclipse.managedbuild.cross.tool.assembler.input.1843333483" superClass="ilg.gnuarmeclipse.managedbuild.cross.tool.assembler.input" />
+ </tool>
+ <tool commandLinePattern="${COMMAND} ${cross_toolchain_flags} ${FLAGS} -c ${OUTPUT_FLAG} ${OUTPUT_PREFIX}${OUTPUT} ${INPUTS}" id="ilg.gnuarmeclipse.managedbuild.cross.tool.c.compiler.1570350559" name="GNU ARM Cross C Compiler" superClass="ilg.gnuarmeclipse.managedbuild.cross.tool.c.compiler">
+ <option id="ilg.gnuarmeclipse.managedbuild.cross.option.c.compiler.include.paths.634882052" name="Include paths (-I)" superClass="ilg.gnuarmeclipse.managedbuild.cross.option.c.compiler.include.paths" useByScannerDiscovery="true">
+ <listOptionValue builtIn="false" value="&quot;${workspace_loc://${ProjName}//.}&quot;" />
+ <listOptionValue builtIn="false" value="&quot;${workspace_loc://${ProjName}//board/ports}&quot;" />
+ <listOptionValue builtIn="false" value="&quot;${workspace_loc://${ProjName}//board}&quot;" />
+ <listOptionValue builtIn="false" value="&quot;${workspace_loc://${ProjName}//libraries/HAL_Drivers/config}&quot;" />
+ <listOptionValue builtIn="false" value="&quot;${workspace_loc://${ProjName}//libraries/HAL_Drivers}&quot;" />
+ <listOptionValue builtIn="false" value="&quot;${workspace_loc://${ProjName}//rt-thread/components/drivers/include}&quot;" />
+ <listOptionValue builtIn="false" value="&quot;${workspace_loc://${ProjName}//rt-thread/components/drivers/phy}&quot;" />
+ <listOptionValue builtIn="false" value="&quot;${workspace_loc://${ProjName}//rt-thread/components/drivers/smp_call}&quot;" />
+ <listOptionValue builtIn="false" value="&quot;${workspace_loc://${ProjName}//rt-thread/components/finsh}&quot;" />
+ <listOptionValue builtIn="false" value="&quot;${workspace_loc://${ProjName}//rt-thread/components/libc/compilers/common/include}&quot;" />
+ <listOptionValue builtIn="false" value="&quot;${workspace_loc://${ProjName}//rt-thread/components/libc/compilers/newlib}&quot;" />
+ <listOptionValue builtIn="false" value="&quot;${workspace_loc://${ProjName}//rt-thread/components/libc/posix/io/epoll}&quot;" />
+ <listOptionValue builtIn="false" value="&quot;${workspace_loc://${ProjName}//rt-thread/components/libc/posix/io/eventfd}&quot;" />
+ <listOptionValue builtIn="false" value="&quot;${workspace_loc://${ProjName}//rt-thread/components/libc/posix/io/poll}&quot;" />
+ <listOptionValue builtIn="false" value="&quot;${workspace_loc://${ProjName}//rt-thread/components/libc/posix/ipc}&quot;" />
+ <listOptionValue builtIn="false" value="&quot;${workspace_loc://${ProjName}//rt-thread/include}&quot;" />
+ <listOptionValue builtIn="false" value="&quot;${workspace_loc://${ProjName}//rt-thread/libcpu/arm/common}&quot;" />
+ <listOptionValue builtIn="false" value="&quot;${workspace_loc://${ProjName}//rt-thread/libcpu/arm/cortex-r52}&quot;" />
+ <listOptionValue builtIn="false" value="&quot;${workspace_loc://${ProjName}//rzn/arm/CMSIS_5/CMSIS/Core_R/Include}&quot;" />
+ <listOptionValue builtIn="false" value="&quot;${workspace_loc://${ProjName}//rzn/fsp/inc/api}&quot;" />
+ <listOptionValue builtIn="false" value="&quot;${workspace_loc://${ProjName}//rzn/fsp/inc/instances}&quot;" />
+ <listOptionValue builtIn="false" value="&quot;${workspace_loc://${ProjName}//rzn/fsp/inc}&quot;" />
+ <listOptionValue builtIn="false" value="&quot;${workspace_loc://${ProjName}//rzn_cfg/fsp_cfg/bsp}&quot;" />
+ <listOptionValue builtIn="false" value="&quot;${workspace_loc://${ProjName}//rzn_cfg/fsp_cfg}&quot;" />
+ <listOptionValue builtIn="false" value="&quot;${workspace_loc://${ProjName}//rzn_gen}&quot;" />
+ </option>
+ <option id="ilg.gnuarmeclipse.managedbuild.cross.option.c.compiler.defs.100549972" name="Defined symbols (-D)" superClass="ilg.gnuarmeclipse.managedbuild.cross.option.c.compiler.defs" useByScannerDiscovery="true" />
+ <option id="ilg.gnuarmeclipse.managedbuild.cross.option.c.compiler.other.2133065240" name="Other compiler flags" superClass="ilg.gnuarmeclipse.managedbuild.cross.option.c.compiler.other" useByScannerDiscovery="true" value=" -mcpu=cortex-r52 -marm -mfloat-abi=hard -mfpu=neon-fp-armv8 -munaligned-access -fdiagnostics-parseable-fixits -Og -fmessage-length=0 -fsigned-char -ffunction-sections -fdata-sections -funwind-tables -Dgcc -O0 -gdwarf-2 -g -Wall" valueType="string" />
+ <option id="ilg.gnuarmeclipse.managedbuild.cross.option.c.compiler.include.files.714348818" name="Include files (-include)" superClass="ilg.gnuarmeclipse.managedbuild.cross.option.c.compiler.include.files" useByScannerDiscovery="true">
+ <listOptionValue builtIn="false" value="&quot;${workspace_loc:/${ProjName}/rtconfig_preinc.h}&quot;" />
+ </option>
+ <inputType id="ilg.gnuarmeclipse.managedbuild.cross.tool.c.compiler.input.992053063" superClass="ilg.gnuarmeclipse.managedbuild.cross.tool.c.compiler.input" />
+ </tool>
+ <tool commandLinePattern="${COMMAND} ${cross_toolchain_flags} ${FLAGS} ${OUTPUT_FLAG} ${OUTPUT_PREFIX}${OUTPUT} ${INPUTS}" id="ilg.gnuarmeclipse.managedbuild.cross.tool.c.linker.869072473" name="Cross ARM C Linker" superClass="ilg.gnuarmeclipse.managedbuild.cross.tool.c.linker">
+ <option id="ilg.gnuarmeclipse.managedbuild.cross.option.c.linker.gcsections.1167322178" name="Remove unused sections (-Xlinker --gc-sections)" superClass="ilg.gnuarmeclipse.managedbuild.cross.option.c.linker.gcsections" useByScannerDiscovery="false" value="true" valueType="boolean" />
+ <option id="ilg.gnuarmeclipse.managedbuild.cross.option.c.linker.nostart.351692886" name="Do not use standard start files (-nostartfiles)" superClass="ilg.gnuarmeclipse.managedbuild.cross.option.c.linker.nostart" useByScannerDiscovery="false" value="false" valueType="boolean" />
+ <option id="ilg.gnuarmeclipse.managedbuild.cross.option.c.linker.nostdlibs.1009243715" name="No startup or default libs (-nostdlib)" superClass="ilg.gnuarmeclipse.managedbuild.cross.option.c.linker.nostdlibs" useByScannerDiscovery="false" value="false" valueType="boolean" />
+ <option id="ilg.gnuarmeclipse.managedbuild.cross.option.c.linker.nodeflibs.2016026082" name="Do not use default libraries (-nodefaultlibs)" superClass="ilg.gnuarmeclipse.managedbuild.cross.option.c.linker.nodeflibs" useByScannerDiscovery="false" value="false" valueType="boolean" />
+ <option id="ilg.gnuarmeclipse.managedbuild.cross.option.c.linker.usenewlibnano.923990336" name="Use newlib-nano (--specs=nano.specs)" superClass="ilg.gnuarmeclipse.managedbuild.cross.option.c.linker.usenewlibnano" useByScannerDiscovery="false" value="false" valueType="boolean" />
+ <option defaultValue="true" id="ilg.gnuarmeclipse.managedbuild.cross.option.c.linker.shared.548869459" name="Shared (-shared)" superClass="ilg.gnuarmeclipse.managedbuild.cross.option.c.linker.shared" useByScannerDiscovery="false" valueType="boolean" />
+ <option id="ilg.gnuarmeclipse.managedbuild.cross.option.c.linker.scriptfile.1818777301" name="Script files (-T)" superClass="ilg.gnuarmeclipse.managedbuild.cross.option.c.linker.scriptfile" useByScannerDiscovery="false">
+ <listOptionValue builtIn="false" value="&quot;${workspace_loc://${ProjName}//script/fsp_xspi0_boot.ld}&quot;" />
+ </option>
+ <option id="ilg.gnuarmeclipse.managedbuild.cross.option.c.linker.libs.1135656995" name="Libraries (-l)" superClass="ilg.gnuarmeclipse.managedbuild.cross.option.c.linker.libs" useByScannerDiscovery="false">
+ <listOptionValue builtIn="false" value="c " />
+ <listOptionValue builtIn="false" value="m " />
+ </option>
+ <option id="ilg.gnuarmeclipse.managedbuild.cross.option.c.linker.paths.36884122" name="Library search path (-L)" superClass="ilg.gnuarmeclipse.managedbuild.cross.option.c.linker.paths" useByScannerDiscovery="false" />
+ <option id="ilg.gnuarmeclipse.managedbuild.cross.option.c.linker.other.396049466" name="Other linker flags" superClass="ilg.gnuarmeclipse.managedbuild.cross.option.c.linker.other" useByScannerDiscovery="false" value="-mcpu=cortex-r52 -marm -mfloat-abi=hard -mfpu=neon-fp-armv8 -munaligned-access -fdiagnostics-parseable-fixits -Og -fmessage-length=0 -fsigned-char -ffunction-sections -fdata-sections -funwind-tables -Wl,--gc-sections,-Map=rtthread.map,-cref,-u,Reset_Handler -L script/" valueType="string" />
+ <option id="ilg.gnuarmeclipse.managedbuild.cross.option.c.linker.cref.1645737861" name="Cross reference (-Xlinker --cref)" superClass="ilg.gnuarmeclipse.managedbuild.cross.option.c.linker.cref" useByScannerDiscovery="false" value="true" valueType="boolean" />
+ <inputType id="ilg.gnuarmeclipse.managedbuild.cross.tool.c.linker.input.334732222" superClass="ilg.gnuarmeclipse.managedbuild.cross.tool.c.linker.input">
+ <additionalInput kind="additionalinputdependency" paths="$(USER_OBJS)" />
+ <additionalInput kind="additionalinput" paths="$(LIBS)" />
+ </inputType>
+ </tool>
+ <tool commandLinePattern="${COMMAND} ${cross_toolchain_flags} ${FLAGS} ${OUTPUT_FLAG} ${OUTPUT_PREFIX}${OUTPUT} ${INPUTS}" id="ilg.gnuarmeclipse.managedbuild.cross.tool.cpp.linker.1601059928" name="GNU ARM Cross C++ Linker" superClass="ilg.gnuarmeclipse.managedbuild.cross.tool.cpp.linker">
+ <option id="ilg.gnuarmeclipse.managedbuild.cross.option.cpp.linker.gcsections.437759352" name="Remove unused sections (-Xlinker --gc-sections)" superClass="ilg.gnuarmeclipse.managedbuild.cross.option.cpp.linker.gcsections" useByScannerDiscovery="false" value="true" valueType="boolean" />
+ <option id="ilg.gnuarmeclipse.managedbuild.cross.option.cpp.linker.scriptfile.1101974459" name="Script files (-T)" superClass="ilg.gnuarmeclipse.managedbuild.cross.option.cpp.linker.scriptfile" useByScannerDiscovery="false" />
+ <option id="ilg.gnuarmeclipse.managedbuild.cross.option.cpp.linker.cref.2007675975" name="Cross reference (-Xlinker --cref)" superClass="ilg.gnuarmeclipse.managedbuild.cross.option.cpp.linker.cref" useByScannerDiscovery="false" value="true" valueType="boolean" />
+ <option id="ilg.gnuarmeclipse.managedbuild.cross.option.cpp.linker.usenewlibnano.2105838438" name="Use newlib-nano (--specs=nano.specs)" superClass="ilg.gnuarmeclipse.managedbuild.cross.option.cpp.linker.usenewlibnano" useByScannerDiscovery="false" value="true" valueType="boolean" />
+ <option id="ilg.gnuarmeclipse.managedbuild.cross.option.cpp.linker.libs.934137837" name="Libraries (-l)" superClass="ilg.gnuarmeclipse.managedbuild.cross.option.cpp.linker.libs" useByScannerDiscovery="false" />
+ <option id="ilg.gnuarmeclipse.managedbuild.cross.option.cpp.linker.nostart.2118356996" name="Do not use standard start files (-nostartfiles)" superClass="ilg.gnuarmeclipse.managedbuild.cross.option.cpp.linker.nostart" useByScannerDiscovery="false" value="false" valueType="boolean" />
+ <option id="ilg.gnuarmeclipse.managedbuild.cross.option.cpp.linker.nodeflibs.1427884346" name="Do not use default libraries (-nodefaultlibs)" superClass="ilg.gnuarmeclipse.managedbuild.cross.option.cpp.linker.nodeflibs" useByScannerDiscovery="false" value="false" valueType="boolean" />
+ <option id="ilg.gnuarmeclipse.managedbuild.cross.option.cpp.linker.nostdlibs.1433863653" name="No startup or default libs (-nostdlib)" superClass="ilg.gnuarmeclipse.managedbuild.cross.option.cpp.linker.nostdlibs" useByScannerDiscovery="false" value="false" valueType="boolean" />
+ <option id="ilg.gnuarmeclipse.managedbuild.cross.option.cpp.linker.printgcsections.1387745410" name="Print removed sections (-Xlinker --print-gc-sections)" superClass="ilg.gnuarmeclipse.managedbuild.cross.option.cpp.linker.printgcsections" useByScannerDiscovery="false" value="false" valueType="boolean" />
+ <option id="ilg.gnuarmeclipse.managedbuild.cross.option.cpp.linker.strip.1230158061" name="Omit all symbol information (-s)" superClass="ilg.gnuarmeclipse.managedbuild.cross.option.cpp.linker.strip" useByScannerDiscovery="false" value="false" valueType="boolean" />
+ <option id="ilg.gnuarmeclipse.managedbuild.cross.option.cpp.linker.printmap.1307581821" name="Print link map (-Xlinker --print-map)" superClass="ilg.gnuarmeclipse.managedbuild.cross.option.cpp.linker.printmap" useByScannerDiscovery="false" value="false" valueType="boolean" />
+ <option id="ilg.gnuarmeclipse.managedbuild.cross.option.cpp.linker.useprintffloat.960778920" name="Use float with nano printf (-u _printf_float)" superClass="ilg.gnuarmeclipse.managedbuild.cross.option.cpp.linker.useprintffloat" useByScannerDiscovery="false" value="false" valueType="boolean" />
+ <option id="ilg.gnuarmeclipse.managedbuild.cross.option.cpp.linker.usescanffloat.637205035" name="Use float with nano scanf (-u _scanf_float)" superClass="ilg.gnuarmeclipse.managedbuild.cross.option.cpp.linker.usescanffloat" useByScannerDiscovery="false" value="false" valueType="boolean" />
+ <option id="ilg.gnuarmeclipse.managedbuild.cross.option.cpp.linker.usenewlibnosys.1948314201" name="Do not use syscalls (--specs=nosys.specs)" superClass="ilg.gnuarmeclipse.managedbuild.cross.option.cpp.linker.usenewlibnosys" useByScannerDiscovery="false" value="false" valueType="boolean" />
+ <option id="ilg.gnuarmeclipse.managedbuild.cross.option.cpp.linker.verbose.273162112" name="Verbose (-v)" superClass="ilg.gnuarmeclipse.managedbuild.cross.option.cpp.linker.verbose" useByScannerDiscovery="false" value="false" valueType="boolean" />
+ <option id="ilg.gnuarmeclipse.managedbuild.cross.option.cpp.linker.paths.1399535143" name="Library search path (-L)" superClass="ilg.gnuarmeclipse.managedbuild.cross.option.cpp.linker.paths" useByScannerDiscovery="false" />
+ <option id="ilg.gnuarmeclipse.managedbuild.cross.option.cpp.linker.other.882307902" name="Other linker flags" superClass="ilg.gnuarmeclipse.managedbuild.cross.option.cpp.linker.other" useByScannerDiscovery="false" value="-mcpu=cortex-r52 -marm -mfloat-abi=hard -mfpu=neon-fp-armv8 -munaligned-access -fdiagnostics-parseable-fixits -Og -fmessage-length=0 -fsigned-char -ffunction-sections -fdata-sections -funwind-tables -Wl,--gc-sections,-Map=rtthread.map,-cref,-u,Reset_Handler -L script/" valueType="string" />
+ <inputType id="ilg.gnuarmeclipse.managedbuild.cross.tool.cpp.linker.input.262373798" superClass="ilg.gnuarmeclipse.managedbuild.cross.tool.cpp.linker.input">
+ <additionalInput kind="additionalinputdependency" paths="$(USER_OBJS)" />
+ <additionalInput kind="additionalinput" paths="$(LIBS)" />
+ </inputType>
+ </tool>
+ <tool id="ilg.gnuarmeclipse.managedbuild.cross.tool.archiver.506412204" name="GNU ARM Cross Archiver" superClass="ilg.gnuarmeclipse.managedbuild.cross.tool.archiver" />
+ <tool id="ilg.gnuarmeclipse.managedbuild.cross.tool.createflash.1461589245" name="GNU ARM Cross Create Flash Image" superClass="ilg.gnuarmeclipse.managedbuild.cross.tool.createflash">
+ <option id="ilg.gnuarmeclipse.managedbuild.cross.option.createflash.choice.1937707052" name="Output file format (-O)" superClass="ilg.gnuarmeclipse.managedbuild.cross.option.createflash.choice" useByScannerDiscovery="false" value="ilg.gnuarmeclipse.managedbuild.cross.option.createflash.choice.binary" valueType="enumerated" />
+ </tool>
+ <tool id="ilg.gnuarmeclipse.managedbuild.cross.tool.createlisting.82359725" name="GNU ARM Cross Create Listing" superClass="ilg.gnuarmeclipse.managedbuild.cross.tool.createlisting">
+ <option id="ilg.gnuarmeclipse.managedbuild.cross.option.createlisting.source.601724476" name="Display source (--source|-S)" superClass="ilg.gnuarmeclipse.managedbuild.cross.option.createlisting.source" value="true" valueType="boolean" />
+ <option id="ilg.gnuarmeclipse.managedbuild.cross.option.createlisting.allheaders.692505279" name="Display all headers (--all-headers|-x)" superClass="ilg.gnuarmeclipse.managedbuild.cross.option.createlisting.allheaders" value="true" valueType="boolean" />
+ <option id="ilg.gnuarmeclipse.managedbuild.cross.option.createlisting.demangle.97345172" name="Demangle names (--demangle|-C)" superClass="ilg.gnuarmeclipse.managedbuild.cross.option.createlisting.demangle" value="true" valueType="boolean" />
+ <option id="ilg.gnuarmeclipse.managedbuild.cross.option.createlisting.linenumbers.1342893377" name="Display line numbers (--line-numbers|-l)" superClass="ilg.gnuarmeclipse.managedbuild.cross.option.createlisting.linenumbers" value="true" valueType="boolean" />
+ <option id="ilg.gnuarmeclipse.managedbuild.cross.option.createlisting.wide.1533725981" name="Wide lines (--wide|-w)" superClass="ilg.gnuarmeclipse.managedbuild.cross.option.createlisting.wide" value="true" valueType="boolean" />
+ </tool>
+ <tool id="ilg.gnuarmeclipse.managedbuild.cross.tool.printsize.1073550295" name="GNU ARM Cross Print Size" superClass="ilg.gnuarmeclipse.managedbuild.cross.tool.printsize">
+ <option id="ilg.gnuarmeclipse.managedbuild.cross.option.printsize.format.946451386" name="Size format" superClass="ilg.gnuarmeclipse.managedbuild.cross.option.printsize.format" useByScannerDiscovery="false" />
+ </tool>
+ <tool commandLinePattern="${COMMAND} ${cross_toolchain_flags} ${FLAGS} -c ${OUTPUT_FLAG} ${OUTPUT_PREFIX}${OUTPUT} ${INPUTS}" id="ilg.gnuarmeclipse.managedbuild.cross.tool.cpp.compiler.1302177015" name="GNU ARM Cross C++ Compiler" superClass="ilg.gnuarmeclipse.managedbuild.cross.tool.cpp.compiler">
+ <option id="ilg.gnuarmeclipse.managedbuild.cross.option.cpp.compiler.defs.704468062" name="Defined symbols (-D)" superClass="ilg.gnuarmeclipse.managedbuild.cross.option.cpp.compiler.defs" useByScannerDiscovery="true" />
+ <option id="ilg.gnuarmeclipse.managedbuild.cross.option.cpp.compiler.include.paths.302877723" name="Include paths (-I)" superClass="ilg.gnuarmeclipse.managedbuild.cross.option.cpp.compiler.include.paths" useByScannerDiscovery="true">
+ <listOptionValue builtIn="false" value="&quot;${workspace_loc://${ProjName}//.}&quot;" />
+ <listOptionValue builtIn="false" value="&quot;${workspace_loc://${ProjName}//board/ports}&quot;" />
+ <listOptionValue builtIn="false" value="&quot;${workspace_loc://${ProjName}//board}&quot;" />
+ <listOptionValue builtIn="false" value="&quot;${workspace_loc://${ProjName}//libraries/HAL_Drivers/config}&quot;" />
+ <listOptionValue builtIn="false" value="&quot;${workspace_loc://${ProjName}//libraries/HAL_Drivers}&quot;" />
+ <listOptionValue builtIn="false" value="&quot;${workspace_loc://${ProjName}//rt-thread/components/drivers/include}&quot;" />
+ <listOptionValue builtIn="false" value="&quot;${workspace_loc://${ProjName}//rt-thread/components/drivers/phy}&quot;" />
+ <listOptionValue builtIn="false" value="&quot;${workspace_loc://${ProjName}//rt-thread/components/drivers/smp_call}&quot;" />
+ <listOptionValue builtIn="false" value="&quot;${workspace_loc://${ProjName}//rt-thread/components/finsh}&quot;" />
+ <listOptionValue builtIn="false" value="&quot;${workspace_loc://${ProjName}//rt-thread/components/libc/compilers/common/include}&quot;" />
+ <listOptionValue builtIn="false" value="&quot;${workspace_loc://${ProjName}//rt-thread/components/libc/compilers/newlib}&quot;" />
+ <listOptionValue builtIn="false" value="&quot;${workspace_loc://${ProjName}//rt-thread/components/libc/posix/io/epoll}&quot;" />
+ <listOptionValue builtIn="false" value="&quot;${workspace_loc://${ProjName}//rt-thread/components/libc/posix/io/eventfd}&quot;" />
+ <listOptionValue builtIn="false" value="&quot;${workspace_loc://${ProjName}//rt-thread/components/libc/posix/io/poll}&quot;" />
+ <listOptionValue builtIn="false" value="&quot;${workspace_loc://${ProjName}//rt-thread/components/libc/posix/ipc}&quot;" />
+ <listOptionValue builtIn="false" value="&quot;${workspace_loc://${ProjName}//rt-thread/include}&quot;" />
+ <listOptionValue builtIn="false" value="&quot;${workspace_loc://${ProjName}//rt-thread/libcpu/arm/common}&quot;" />
+ <listOptionValue builtIn="false" value="&quot;${workspace_loc://${ProjName}//rt-thread/libcpu/arm/cortex-r52}&quot;" />
+ <listOptionValue builtIn="false" value="&quot;${workspace_loc://${ProjName}//rzn/arm/CMSIS_5/CMSIS/Core_R/Include}&quot;" />
+ <listOptionValue builtIn="false" value="&quot;${workspace_loc://${ProjName}//rzn/fsp/inc/api}&quot;" />
+ <listOptionValue builtIn="false" value="&quot;${workspace_loc://${ProjName}//rzn/fsp/inc/instances}&quot;" />
+ <listOptionValue builtIn="false" value="&quot;${workspace_loc://${ProjName}//rzn/fsp/inc}&quot;" />
+ <listOptionValue builtIn="false" value="&quot;${workspace_loc://${ProjName}//rzn_cfg/fsp_cfg/bsp}&quot;" />
+ <listOptionValue builtIn="false" value="&quot;${workspace_loc://${ProjName}//rzn_cfg/fsp_cfg}&quot;" />
+ <listOptionValue builtIn="false" value="&quot;${workspace_loc://${ProjName}//rzn_gen}&quot;" />
+ </option>
+ <option IS_BUILTIN_EMPTY="false" IS_VALUE_EMPTY="false" id="ilg.gnuarmeclipse.managedbuild.cross.option.cpp.compiler.include.files.343249373" name="Include files (-include)" superClass="ilg.gnuarmeclipse.managedbuild.cross.option.cpp.compiler.include.files" useByScannerDiscovery="true" valueType="includeFiles">
+ <listOptionValue builtIn="false" value="&quot;${workspace_loc:/${ProjName}/rtconfig_preinc.h}&quot;" />
+ </option>
+ <option id="ilg.gnuarmeclipse.managedbuild.cross.option.cpp.compiler.other.465079095" name="Other compiler flags" superClass="ilg.gnuarmeclipse.managedbuild.cross.option.cpp.compiler.other" useByScannerDiscovery="true" value=" -mcpu=cortex-r52 -marm -mfloat-abi=hard -mfpu=neon-fp-armv8 -munaligned-access -fdiagnostics-parseable-fixits -Og -fmessage-length=0 -fsigned-char -ffunction-sections -fdata-sections -funwind-tables -Dgcc -O0 -gdwarf-2 -g -Wall" valueType="string" />
+ <inputType id="ilg.gnuarmeclipse.managedbuild.cross.tool.cpp.compiler.input.45918001" superClass="ilg.gnuarmeclipse.managedbuild.cross.tool.cpp.compiler.input" />
+ </tool>
+ </toolChain>
+ </folderInfo>
+ <sourceEntries>
+ <entry excluding="//libraries/HAL_Drivers/drv_adc.c|//libraries/HAL_Drivers/drv_can.c|//libraries/HAL_Drivers/drv_dac.c|//libraries/HAL_Drivers/drv_eth.c|//libraries/HAL_Drivers/drv_flash.c|//libraries/HAL_Drivers/drv_hwtimer.c|//libraries/HAL_Drivers/drv_i2c.c|//libraries/HAL_Drivers/drv_lcd.c|//libraries/HAL_Drivers/drv_pwm.c|//libraries/HAL_Drivers/drv_rtc.c|//libraries/HAL_Drivers/drv_sci.c|//libraries/HAL_Drivers/drv_sdhi.c|//libraries/HAL_Drivers/drv_soft_i2c.c|//libraries/HAL_Drivers/drv_soft_spi.c|//libraries/HAL_Drivers/drv_spi.c|//libraries/HAL_Drivers/drv_wdt.c|//rt-thread/components/dfs|//rt-thread/components/drivers/ata|//rt-thread/components/drivers/audio|//rt-thread/components/drivers/block|//rt-thread/components/drivers/can|//rt-thread/components/drivers/clk|//rt-thread/components/drivers/core/bus.c|//rt-thread/components/drivers/core/dm.c|//rt-thread/components/drivers/core/driver.c|//rt-thread/components/drivers/core/mnt.c|//rt-thread/components/drivers/core/numa.c|//rt-thread/components/drivers/core/platform.c|//rt-thread/components/drivers/core/platform_ofw.c|//rt-thread/components/drivers/core/power_domain.c|//rt-thread/components/drivers/cputime|//rt-thread/components/drivers/dma|//rt-thread/components/drivers/hwcrypto|//rt-thread/components/drivers/hwtimer|//rt-thread/components/drivers/i2c|//rt-thread/components/drivers/iio|//rt-thread/components/drivers/ipc/completion_mp.c|//rt-thread/components/drivers/ktime|//rt-thread/components/drivers/led|//rt-thread/components/drivers/mailbox|//rt-thread/components/drivers/mfd|//rt-thread/components/drivers/misc|//rt-thread/components/drivers/mtd|//rt-thread/components/drivers/nvme|//rt-thread/components/drivers/ofw|//rt-thread/components/drivers/pci|//rt-thread/components/drivers/phy|//rt-thread/components/drivers/phye|//rt-thread/components/drivers/pic|//rt-thread/components/drivers/pin/dev_pin_dm.c|//rt-thread/components/drivers/pin/dev_pin_ofw.c|//rt-thread/components/drivers/pinctrl|//rt-thread/components/drivers/pm|//rt-thread/components/drivers/regulator|//rt-thread/components/drivers/reset|//rt-thread/components/drivers/rtc|//rt-thread/components/drivers/scsi|//rt-thread/components/drivers/sdio|//rt-thread/components/drivers/sensor|//rt-thread/components/drivers/serial/dev_serial.c|//rt-thread/components/drivers/serial/serial_dm.c|//rt-thread/components/drivers/serial/serial_tty.c|//rt-thread/components/drivers/smp_call|//rt-thread/components/drivers/spi|//rt-thread/components/drivers/touch|//rt-thread/components/drivers/usb|//rt-thread/components/drivers/virtio|//rt-thread/components/drivers/watchdog|//rt-thread/components/drivers/wlan|//rt-thread/components/fal|//rt-thread/components/finsh/msh_file.c|//rt-thread/components/legacy|//rt-thread/components/libc/compilers/armlibc|//rt-thread/components/libc/compilers/dlib|//rt-thread/components/libc/compilers/musl|//rt-thread/components/libc/compilers/picolibc|//rt-thread/components/libc/cplusplus|//rt-thread/components/libc/posix|//rt-thread/components/lwp|//rt-thread/components/mm|//rt-thread/components/mprotect|//rt-thread/components/net|//rt-thread/components/utilities|//rt-thread/components/vbus|//rt-thread/libcpu/arm/AT91SAM7S|//rt-thread/libcpu/arm/AT91SAM7X|//rt-thread/libcpu/arm/am335x|//rt-thread/libcpu/arm/arm926|//rt-thread/libcpu/arm/armv6|//rt-thread/libcpu/arm/common/divsi3.S|//rt-thread/libcpu/arm/cortex-a|//rt-thread/libcpu/arm/cortex-m0|//rt-thread/libcpu/arm/cortex-m23|//rt-thread/libcpu/arm/cortex-m3|//rt-thread/libcpu/arm/cortex-m33|//rt-thread/libcpu/arm/cortex-m4|//rt-thread/libcpu/arm/cortex-m7|//rt-thread/libcpu/arm/cortex-m85|//rt-thread/libcpu/arm/cortex-r4|//rt-thread/libcpu/arm/cortex-r52/context_iar.S|//rt-thread/libcpu/arm/cortex-r52/start_iar.S|//rt-thread/libcpu/arm/cortex-r52/vector_iar.S|//rt-thread/libcpu/arm/dm36x|//rt-thread/libcpu/arm/lpc214x|//rt-thread/libcpu/arm/lpc24xx|//rt-thread/libcpu/arm/realview-a8-vmm|//rt-thread/libcpu/arm/s3c24x0|//rt-thread/libcpu/arm/s3c44b0|//rt-thread/libcpu/arm/sep4020|//rt-thread/libcpu/arm/zynqmp-r5|//rt-thread/src/cpu_mp.c|//rt-thread/src/klibc/rt_vsnprintf_std.c|//rt-thread/src/memheap.c|//rt-thread/src/scheduler_mp.c|//rt-thread/src/signal.c|//rt-thread/src/slab.c|//rzn/board" flags="VALUE_WORKSPACE_PATH|RESOLVED" kind="sourcePath" name="" />
+ </sourceEntries>
+ </configuration>
+ </storageModule>
+ <storageModule moduleId="org.eclipse.cdt.core.externalSettings" />
+ </cconfiguration>
+ </storageModule>
+ <storageModule moduleId="cdtBuildSystem" version="4.0.0">
+ <project id="qemu-vexpress-a9.ilg.gnuarmeclipse.managedbuild.cross.target.elf.860020518" name="Executable" projectType="ilg.gnuarmeclipse.managedbuild.cross.target.elf" />
+ </storageModule>
+ <storageModule moduleId="scannerConfiguration">
+ <autodiscovery enabled="true" problemReportingEnabled="true" selectedProfileId="" />
+ <scannerConfigBuildInfo instanceId="ilg.gnuarmeclipse.managedbuild.cross.config.elf.debug.553091094;ilg.gnuarmeclipse.managedbuild.cross.config.elf.debug.553091094.;ilg.gnuarmeclipse.managedbuild.cross.tool.c.compiler.1570350559;ilg.gnuarmeclipse.managedbuild.cross.tool.c.compiler.input.992053063">
+ <autodiscovery enabled="true" problemReportingEnabled="true" selectedProfileId="" />
+ </scannerConfigBuildInfo>
+ </storageModule>
+ <storageModule moduleId="org.eclipse.cdt.core.LanguageSettingsProviders" />
+ <storageModule moduleId="refreshScope" versionNumber="2">
+ <configuration configurationName="Debug">
+ <resource resourceType="PROJECT" workspacePath="/hh" />
+ </configuration>
+ </storageModule>
+ <storageModule moduleId="org.eclipse.cdt.make.core.buildtargets" />
+ <storageModule moduleId="org.eclipse.cdt.internal.ui.text.commentOwnerProjectMappings">
+ <doc-comment-owner id="org.eclipse.cdt.ui.doxygen">
+ <path value="" />
+ </doc-comment-owner>
+ </storageModule>
+</cproject>
diff --git a/bsp/renesas/rzn2l_rsk/.project b/bsp/renesas/rzn2l_rsk/.project
new file mode 100644
index 0000000000..a96db4e220
--- /dev/null
+++ b/bsp/renesas/rzn2l_rsk/.project
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>hh</name>
+ <comment />
+ <projects>
+ </projects>
+ <buildSpec>
+ <buildCommand>
+ <name>org.eclipse.cdt.managedbuilder.core.genmakebuilder</name>
+ <triggers>clean,full,incremental,</triggers>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.cdt.managedbuilder.core.ScannerConfigBuilder</name>
+ <triggers>full,incremental,</triggers>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ </buildSpec>
+ <natures>
+ <nature>org.eclipse.cdt.core.cnature</nature>
+ <nature>org.rt-thread.studio.rttnature</nature>
+ <nature>org.eclipse.cdt.managedbuilder.core.managedBuildNature</nature>
+ <nature>org.eclipse.cdt.managedbuilder.core.ScannerConfigNature</nature>
+ </natures>
+ <linkedResources />
+</projectDescription>
diff --git a/bsp/renesas/rzn2l_rsk/.settings/hh.JLink.Debug.rttlaunch b/bsp/renesas/rzn2l_rsk/.settings/hh.JLink.Debug.rttlaunch
new file mode 100644
index 0000000000..618eadd9b7
--- /dev/null
+++ b/bsp/renesas/rzn2l_rsk/.settings/hh.JLink.Debug.rttlaunch
@@ -0,0 +1,94 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<launchConfiguration type="ilg.gnumcueclipse.debug.gdbjtag.jlink.launchConfigurationType">
+<stringAttribute key="ilg.gnumcueclipse.debug.gdbjtag.jlink.adapterName" value="J-Link"/>
+<stringAttribute key="ilg.gnumcueclipse.debug.gdbjtag.jlink.binFileStartAddress" value="0x60000000"/>
+<booleanAttribute key="ilg.gnumcueclipse.debug.gdbjtag.jlink.doConnectToRunning" value="false"/>
+<booleanAttribute key="ilg.gnumcueclipse.debug.gdbjtag.jlink.doContinue" value="true"/>
+<booleanAttribute key="ilg.gnumcueclipse.debug.gdbjtag.jlink.doDebugInRam" value="false"/>
+<booleanAttribute key="ilg.gnumcueclipse.debug.gdbjtag.jlink.doFirstReset" value="true"/>
+<booleanAttribute key="ilg.gnumcueclipse.debug.gdbjtag.jlink.doGdbServerAllocateConsole" value="true"/>
+<booleanAttribute key="ilg.gnumcueclipse.debug.gdbjtag.jlink.doGdbServerAllocateSemihostingConsole" value="true"/>
+<booleanAttribute key="ilg.gnumcueclipse.debug.gdbjtag.jlink.doGdbServerInitRegs" value="true"/>
+<booleanAttribute key="ilg.gnumcueclipse.debug.gdbjtag.jlink.doGdbServerLocalOnly" value="true"/>
+<booleanAttribute key="ilg.gnumcueclipse.debug.gdbjtag.jlink.doGdbServerSilent" value="false"/>
+<booleanAttribute key="ilg.gnumcueclipse.debug.gdbjtag.jlink.doGdbServerVerifyDownload" value="true"/>
+<booleanAttribute key="ilg.gnumcueclipse.debug.gdbjtag.jlink.doSecondReset" value="true"/>
+<booleanAttribute key="ilg.gnumcueclipse.debug.gdbjtag.jlink.doStartGdbServer" value="true"/>
+<booleanAttribute key="ilg.gnumcueclipse.debug.gdbjtag.jlink.enableFlashBreakpoints" value="true"/>
+<booleanAttribute key="ilg.gnumcueclipse.debug.gdbjtag.jlink.enableSemihosting" value="true"/>
+<booleanAttribute key="ilg.gnumcueclipse.debug.gdbjtag.jlink.enableSemihostingIoclientGdbClient" value="false"/>
+<booleanAttribute key="ilg.gnumcueclipse.debug.gdbjtag.jlink.enableSemihostingIoclientTelnet" value="true"/>
+<booleanAttribute key="ilg.gnumcueclipse.debug.gdbjtag.jlink.enableSwo" value="true"/>
+<stringAttribute key="ilg.gnumcueclipse.debug.gdbjtag.jlink.eraseEndAddress" value="0x63FFFFFF"/>
+<intAttribute key="ilg.gnumcueclipse.debug.gdbjtag.jlink.eraseMode" value="2"/>
+<stringAttribute key="ilg.gnumcueclipse.debug.gdbjtag.jlink.eraseStartAddress" value="0x60000000"/>
+<intAttribute key="ilg.gnumcueclipse.debug.gdbjtag.jlink.firstResetSpeed" value="1000"/>
+<stringAttribute key="ilg.gnumcueclipse.debug.gdbjtag.jlink.firstResetType" value=""/>
+<stringAttribute key="ilg.gnumcueclipse.debug.gdbjtag.jlink.flashDeviceName" value="R9A07G084"/>
+<stringAttribute key="ilg.gnumcueclipse.debug.gdbjtag.jlink.flashDownloadHex" value="false"/>
+<booleanAttribute key="ilg.gnumcueclipse.debug.gdbjtag.jlink.forceQuitGdbServer" value="false"/>
+<stringAttribute key="ilg.gnumcueclipse.debug.gdbjtag.jlink.gdbClientOtherCommands" value="set mem inaccessible-by-default off"/>
+<stringAttribute key="ilg.gnumcueclipse.debug.gdbjtag.jlink.gdbClientOtherOptions" value=""/>
+<stringAttribute key="ilg.gnumcueclipse.debug.gdbjtag.jlink.gdbServerConnection" value="usb"/>
+<stringAttribute key="ilg.gnumcueclipse.debug.gdbjtag.jlink.gdbServerConnectionAddress" value=""/>
+<stringAttribute key="ilg.gnumcueclipse.debug.gdbjtag.jlink.gdbServerDebugInterface" value="swd"/>
+<stringAttribute key="ilg.gnumcueclipse.debug.gdbjtag.jlink.gdbServerDeviceEndianness" value="little"/>
+<stringAttribute key="ilg.gnumcueclipse.debug.gdbjtag.jlink.gdbServerDeviceName" value="R9A07G084M04"/>
+<stringAttribute key="ilg.gnumcueclipse.debug.gdbjtag.jlink.gdbServerDeviceSpeed" value="auto"/>
+<stringAttribute key="ilg.gnumcueclipse.debug.gdbjtag.jlink.gdbServerExecutable" value="${debugger_install_path}/${jlink_debugger_relative_path}\JLinkGDBServerCL.exe"/>
+<intAttribute key="ilg.gnumcueclipse.debug.gdbjtag.jlink.gdbServerGdbPortNumber" value="2331"/>
+<stringAttribute key="ilg.gnumcueclipse.debug.gdbjtag.jlink.gdbServerLog" value=""/>
+<stringAttribute key="ilg.gnumcueclipse.debug.gdbjtag.jlink.gdbServerOther" value="-singlerun"/>
+<booleanAttribute key="ilg.gnumcueclipse.debug.gdbjtag.jlink.gdbServerRunAfterStopDebug" value="true"/>
+<intAttribute key="ilg.gnumcueclipse.debug.gdbjtag.jlink.gdbServerSwoPortNumber" value="2332"/>
+<intAttribute key="ilg.gnumcueclipse.debug.gdbjtag.jlink.gdbServerTelnetPortNumber" value="2333"/>
+<stringAttribute key="ilg.gnumcueclipse.debug.gdbjtag.jlink.interfaceSpeed" value="auto"/>
+<stringAttribute key="ilg.gnumcueclipse.debug.gdbjtag.jlink.jlinkExecutable" value="${debugger_install_path}/${jlink_debugger_relative_path}\JLink.exe"/>
+<stringAttribute key="ilg.gnumcueclipse.debug.gdbjtag.jlink.otherInitCommands" value=""/>
+<stringAttribute key="ilg.gnumcueclipse.debug.gdbjtag.jlink.otherRunCommands" value=""/>
+<booleanAttribute key="ilg.gnumcueclipse.debug.gdbjtag.jlink.runAfterDownload" value="true"/>
+<stringAttribute key="ilg.gnumcueclipse.debug.gdbjtag.jlink.secondResetType" value=""/>
+<stringAttribute key="ilg.gnumcueclipse.debug.gdbjtag.jlink.serailBaudRate" value="115200"/>
+<stringAttribute key="ilg.gnumcueclipse.debug.gdbjtag.jlink.serailPort" value=""/>
+<intAttribute key="ilg.gnumcueclipse.debug.gdbjtag.jlink.swoEnableTargetCpuFreq" value="0"/>
+<stringAttribute key="ilg.gnumcueclipse.debug.gdbjtag.jlink.swoEnableTargetPortMask" value="0x1"/>
+<intAttribute key="ilg.gnumcueclipse.debug.gdbjtag.jlink.swoEnableTargetSwoFreq" value="0"/>
+<stringAttribute key="ilg.gnumcueclipse.debug.gdbjtag.svdPath" value=""/>
+<stringAttribute key="org.eclipse.cdt.debug.gdbjtag.core.imageFileName" value=""/>
+<stringAttribute key="org.eclipse.cdt.debug.gdbjtag.core.imageOffset" value=""/>
+<stringAttribute key="org.eclipse.cdt.debug.gdbjtag.core.ipAddress" value="localhost"/>
+<stringAttribute key="org.eclipse.cdt.debug.gdbjtag.core.jtagDevice" value="GNU MCU J-Link"/>
+<booleanAttribute key="org.eclipse.cdt.debug.gdbjtag.core.loadImage" value="true"/>
+<booleanAttribute key="org.eclipse.cdt.debug.gdbjtag.core.loadSymbols" value="true"/>
+<stringAttribute key="org.eclipse.cdt.debug.gdbjtag.core.pcRegister" value=""/>
+<intAttribute key="org.eclipse.cdt.debug.gdbjtag.core.portNumber" value="2331"/>
+<booleanAttribute key="org.eclipse.cdt.debug.gdbjtag.core.setPcRegister" value="false"/>
+<booleanAttribute key="org.eclipse.cdt.debug.gdbjtag.core.setResume" value="false"/>
+<booleanAttribute key="org.eclipse.cdt.debug.gdbjtag.core.setStopAt" value="true"/>
+<stringAttribute key="org.eclipse.cdt.debug.gdbjtag.core.stopAt" value="main"/>
+<stringAttribute key="org.eclipse.cdt.debug.gdbjtag.core.symbolsFileName" value=""/>
+<stringAttribute key="org.eclipse.cdt.debug.gdbjtag.core.symbolsOffset" value=""/>
+<booleanAttribute key="org.eclipse.cdt.debug.gdbjtag.core.useFileForImage" value="false"/>
+<booleanAttribute key="org.eclipse.cdt.debug.gdbjtag.core.useFileForSymbols" value="false"/>
+<booleanAttribute key="org.eclipse.cdt.debug.gdbjtag.core.useProjBinaryForImage" value="true"/>
+<booleanAttribute key="org.eclipse.cdt.debug.gdbjtag.core.useProjBinaryForSymbols" value="true"/>
+<booleanAttribute key="org.eclipse.cdt.debug.gdbjtag.core.useRemoteTarget" value="true"/>
+<stringAttribute key="org.eclipse.cdt.dsf.gdb.DEBUG_NAME" value="${rtt_gnu_gcc}/arm-none-eabi-gdb.exe"/>
+<booleanAttribute key="org.eclipse.cdt.dsf.gdb.UPDATE_THREADLIST_ON_SUSPEND" value="false"/>
+<intAttribute key="org.eclipse.cdt.launch.ATTR_BUILD_BEFORE_LAUNCH_ATTR" value="0"/>
+<stringAttribute key="org.eclipse.cdt.launch.PROGRAM_NAME" value="Debug/rtthread.elf"/>
+<stringAttribute key="org.eclipse.cdt.launch.PROJECT_ATTR" value="hh"/>
+<booleanAttribute key="org.eclipse.cdt.launch.PROJECT_BUILD_CONFIG_AUTO_ATTR" value="false"/>
+<stringAttribute key="org.eclipse.cdt.launch.PROJECT_BUILD_CONFIG_ID_ATTR" value=""/>
+<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_PATHS">
+<listEntry value="/hh"/>
+</listAttribute>
+<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_TYPES">
+<listEntry value="4"/>
+</listAttribute>
+<stringAttribute key="org.eclipse.debug.core.source_locator_id" value="org.eclipse.cdt.debug.core.sourceLocator"/>
+<stringAttribute key="org.eclipse.debug.core.source_locator_memento" value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;sourceLookupDirector&gt;&#13;&#10;&lt;sourceContainers duplicates=&quot;false&quot;&gt;&#13;&#10;&lt;container memento=&quot;&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot; standalone=&amp;quot;no&amp;quot;?&amp;gt;&amp;#13;&amp;#10;&amp;lt;default/&amp;gt;&amp;#13;&amp;#10;&quot; typeId=&quot;org.eclipse.debug.core.containerType.default&quot;/&gt;&#13;&#10;&lt;/sourceContainers&gt;&#13;&#10;&lt;/sourceLookupDirector&gt;&#13;&#10;"/>
+<stringAttribute key="org.eclipse.debug.ui.ATTR_CONSOLE_ENCODING" value="UTF-8"/>
+<stringAttribute key="org.eclipse.dsf.launch.MEMORY_BLOCKS" value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;memoryBlockExpressionList context=&quot;Context string&quot;/&gt;&#13;&#10;"/>
+<stringAttribute key="process_factory_id" value="org.eclipse.cdt.dsf.gdb.GdbProcessFactory"/>
+</launchConfiguration>
diff --git a/bsp/renesas/rzn2l_rsk/.settings/ilg.gnumcueclipse.managedbuild.cross.arm.prefs b/bsp/renesas/rzn2l_rsk/.settings/ilg.gnumcueclipse.managedbuild.cross.arm.prefs
new file mode 100644
index 0000000000..7dbfc8a7d9
--- /dev/null
+++ b/bsp/renesas/rzn2l_rsk/.settings/ilg.gnumcueclipse.managedbuild.cross.arm.prefs
@@ -0,0 +1,2 @@
+eclipse.preferences.version=1
+toolchain.path.1287942917=${toolchain_install_path}/ARM/GNU_Tools_for_ARM_Embedded_Processors/10.2.1/bin
diff --git a/bsp/renesas/rzn2l_rsk/.settings/language.settings.xml b/bsp/renesas/rzn2l_rsk/.settings/language.settings.xml
new file mode 100644
index 0000000000..67360abb07
--- /dev/null
+++ b/bsp/renesas/rzn2l_rsk/.settings/language.settings.xml
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<project>
+ <configuration id="ilg.gnuarmeclipse.managedbuild.cross.config.elf.debug.553091094" name="Debug">
+ <extension point="org.eclipse.cdt.core.LanguageSettingsProvider">
+ <provider copy-of="extension" id="org.eclipse.cdt.ui.UserLanguageSettingsProvider"/>
+ <provider-reference id="org.eclipse.cdt.core.ReferencedProjectsLanguageSettingsProvider" ref="shared-provider"/>
+ <provider-reference id="org.eclipse.cdt.managedbuilder.core.MBSLanguageSettingsProvider" ref="shared-provider"/>
+ <provider class="org.eclipse.cdt.managedbuilder.language.settings.providers.GCCBuiltinSpecsDetector" console="false" env-hash="1210867069612526277" id="ilg.gnuarmeclipse.managedbuild.cross.GCCBuiltinSpecsDetector" keep-relative-paths="false" name="CDT ARM Cross GCC Built-in Compiler Settings " parameter="${COMMAND} ${FLAGS} ${cross_toolchain_flags} -E -P -v -dD &quot;${INPUTS}&quot;" prefer-non-shared="true">
+ <language-scope id="org.eclipse.cdt.core.gcc"/>
+ <language-scope id="org.eclipse.cdt.core.g++"/>
+ </provider>
+ </extension>
+ </configuration>
+</project>
diff --git a/bsp/renesas/rzn2l_rsk/.settings/local_temp_storage.prefs b/bsp/renesas/rzn2l_rsk/.settings/local_temp_storage.prefs
new file mode 100644
index 0000000000..6c3ab86d84
--- /dev/null
+++ b/bsp/renesas/rzn2l_rsk/.settings/local_temp_storage.prefs
@@ -0,0 +1,2 @@
+eclipse.preferences.version=1
+temp.toolchain.exec.path=D\:\\manufacture_apps\\RT-ThreadStudio\\repo\\Extract\\ToolChain_Support_Packages\\ARM\\GNU_Tools_for_ARM_Embedded_Processors\\10.2.1/bin
diff --git a/bsp/renesas/rzn2l_rsk/.settings/org.eclipse.core.runtime.prefs b/bsp/renesas/rzn2l_rsk/.settings/org.eclipse.core.runtime.prefs
new file mode 100644
index 0000000000..9f1acfcfba
--- /dev/null
+++ b/bsp/renesas/rzn2l_rsk/.settings/org.eclipse.core.runtime.prefs
@@ -0,0 +1,3 @@
+content-types/enabled=true
+content-types/org.eclipse.cdt.core.asmSource/file-extensions=s
+eclipse.preferences.version=1 \ No newline at end of file
diff --git a/bsp/renesas/rzn2l_rsk/.settings/projcfg.ini b/bsp/renesas/rzn2l_rsk/.settings/projcfg.ini
new file mode 100644
index 0000000000..f8e9f80e4a
--- /dev/null
+++ b/bsp/renesas/rzn2l_rsk/.settings/projcfg.ini
@@ -0,0 +1,19 @@
+#RT-Thread Studio Project Configuration
+#Thu Nov 28 18:09:09 CST 2024
+cfg_version=v3.0
+board_name=rzn2l_rsk
+example_name=
+hardware_adapter=J-Link
+board_base_nano_proj=false
+project_type=rt-thread
+chip_name=R9A07G084
+selected_rtt_version=latest
+bsp_version=1.0.0
+os_branch=master
+project_base_rtt_bsp=true
+output_project_path=D\:\\manufacture_apps\\RT-ThreadStudio\\repo\\Local\\Board_Support_Packages\\Renesas\\EtherKit\\1.0.0\\projects
+is_base_example_project=false
+is_use_scons_build=true
+project_name=etherkit_blink_led
+os_version=latest
+bsp_path=
diff --git a/bsp/renesas/rzn2l_rsk/.settings/project.JLink.Debug.rttlaunch b/bsp/renesas/rzn2l_rsk/.settings/project.JLink.Debug.rttlaunch
new file mode 100644
index 0000000000..db20f2562b
--- /dev/null
+++ b/bsp/renesas/rzn2l_rsk/.settings/project.JLink.Debug.rttlaunch
@@ -0,0 +1,92 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<launchConfiguration type="ilg.gnumcueclipse.debug.gdbjtag.jlink.launchConfigurationType">
+<stringAttribute key="ilg.gnumcueclipse.debug.gdbjtag.jlink.adapterName" value="J-Link"/>
+<stringAttribute key="ilg.gnumcueclipse.debug.gdbjtag.jlink.binFileStartAddress" value="0x60000000"/>
+<booleanAttribute key="ilg.gnumcueclipse.debug.gdbjtag.jlink.doConnectToRunning" value="false"/>
+<booleanAttribute key="ilg.gnumcueclipse.debug.gdbjtag.jlink.doContinue" value="true"/>
+<booleanAttribute key="ilg.gnumcueclipse.debug.gdbjtag.jlink.doDebugInRam" value="false"/>
+<booleanAttribute key="ilg.gnumcueclipse.debug.gdbjtag.jlink.doFirstReset" value="true"/>
+<booleanAttribute key="ilg.gnumcueclipse.debug.gdbjtag.jlink.doGdbServerAllocateConsole" value="true"/>
+<booleanAttribute key="ilg.gnumcueclipse.debug.gdbjtag.jlink.doGdbServerAllocateSemihostingConsole" value="true"/>
+<booleanAttribute key="ilg.gnumcueclipse.debug.gdbjtag.jlink.doGdbServerInitRegs" value="true"/>
+<booleanAttribute key="ilg.gnumcueclipse.debug.gdbjtag.jlink.doGdbServerLocalOnly" value="true"/>
+<booleanAttribute key="ilg.gnumcueclipse.debug.gdbjtag.jlink.doGdbServerSilent" value="false"/>
+<booleanAttribute key="ilg.gnumcueclipse.debug.gdbjtag.jlink.doGdbServerVerifyDownload" value="true"/>
+<booleanAttribute key="ilg.gnumcueclipse.debug.gdbjtag.jlink.doSecondReset" value="true"/>
+<booleanAttribute key="ilg.gnumcueclipse.debug.gdbjtag.jlink.doStartGdbServer" value="true"/>
+<booleanAttribute key="ilg.gnumcueclipse.debug.gdbjtag.jlink.enableFlashBreakpoints" value="true"/>
+<booleanAttribute key="ilg.gnumcueclipse.debug.gdbjtag.jlink.enableSemihosting" value="true"/>
+<booleanAttribute key="ilg.gnumcueclipse.debug.gdbjtag.jlink.enableSemihostingIoclientGdbClient" value="false"/>
+<booleanAttribute key="ilg.gnumcueclipse.debug.gdbjtag.jlink.enableSemihostingIoclientTelnet" value="true"/>
+<booleanAttribute key="ilg.gnumcueclipse.debug.gdbjtag.jlink.enableSwo" value="true"/>
+<stringAttribute key="ilg.gnumcueclipse.debug.gdbjtag.jlink.eraseEndAddress" value=""/>
+<intAttribute key="ilg.gnumcueclipse.debug.gdbjtag.jlink.eraseMode" value="0"/>
+<stringAttribute key="ilg.gnumcueclipse.debug.gdbjtag.jlink.eraseStartAddress" value=""/>
+<intAttribute key="ilg.gnumcueclipse.debug.gdbjtag.jlink.firstResetSpeed" value="1000"/>
+<stringAttribute key="ilg.gnumcueclipse.debug.gdbjtag.jlink.firstResetType" value=""/>
+<stringAttribute key="ilg.gnumcueclipse.debug.gdbjtag.jlink.flashDeviceName" value="STM32F103VETx"/>
+<stringAttribute key="ilg.gnumcueclipse.debug.gdbjtag.jlink.flashDownloadHex" value="false"/>
+<booleanAttribute key="ilg.gnumcueclipse.debug.gdbjtag.jlink.forceQuitGdbServer" value="false"/>
+<stringAttribute key="ilg.gnumcueclipse.debug.gdbjtag.jlink.gdbClientOtherCommands" value="set mem inaccessible-by-default off"/>
+<stringAttribute key="ilg.gnumcueclipse.debug.gdbjtag.jlink.gdbClientOtherOptions" value=""/>
+<stringAttribute key="ilg.gnumcueclipse.debug.gdbjtag.jlink.gdbServerConnection" value="usb"/>
+<stringAttribute key="ilg.gnumcueclipse.debug.gdbjtag.jlink.gdbServerConnectionAddress" value=""/>
+<stringAttribute key="ilg.gnumcueclipse.debug.gdbjtag.jlink.gdbServerDebugInterface" value="swd"/>
+<stringAttribute key="ilg.gnumcueclipse.debug.gdbjtag.jlink.gdbServerDeviceEndianness" value="little"/>
+<stringAttribute key="ilg.gnumcueclipse.debug.gdbjtag.jlink.gdbServerDeviceName" value="R9A07G084M04"/>
+<stringAttribute key="ilg.gnumcueclipse.debug.gdbjtag.jlink.gdbServerDeviceSpeed" value="1000"/>
+<stringAttribute key="ilg.gnumcueclipse.debug.gdbjtag.jlink.gdbServerExecutable" value="${debugger_install_path}/${jlink_debugger_relative_path}\JLinkGDBServerCL.exe"/>
+<intAttribute key="ilg.gnumcueclipse.debug.gdbjtag.jlink.gdbServerGdbPortNumber" value="2331"/>
+<stringAttribute key="ilg.gnumcueclipse.debug.gdbjtag.jlink.gdbServerLog" value=""/>
+<stringAttribute key="ilg.gnumcueclipse.debug.gdbjtag.jlink.gdbServerOther" value="-singlerun"/>
+<booleanAttribute key="ilg.gnumcueclipse.debug.gdbjtag.jlink.gdbServerRunAfterStopDebug" value="true"/>
+<intAttribute key="ilg.gnumcueclipse.debug.gdbjtag.jlink.gdbServerSwoPortNumber" value="2332"/>
+<intAttribute key="ilg.gnumcueclipse.debug.gdbjtag.jlink.gdbServerTelnetPortNumber" value="2333"/>
+<stringAttribute key="ilg.gnumcueclipse.debug.gdbjtag.jlink.interfaceSpeed" value="auto"/>
+<stringAttribute key="ilg.gnumcueclipse.debug.gdbjtag.jlink.jlinkExecutable" value="${debugger_install_path}/${jlink_debugger_relative_path}\JLink.exe"/>
+<stringAttribute key="ilg.gnumcueclipse.debug.gdbjtag.jlink.otherInitCommands" value=""/>
+<stringAttribute key="ilg.gnumcueclipse.debug.gdbjtag.jlink.otherRunCommands" value=""/>
+<booleanAttribute key="ilg.gnumcueclipse.debug.gdbjtag.jlink.runAfterDownload" value="true"/>
+<stringAttribute key="ilg.gnumcueclipse.debug.gdbjtag.jlink.secondResetType" value=""/>
+<stringAttribute key="ilg.gnumcueclipse.debug.gdbjtag.jlink.serailBaudRate" value="115200"/>
+<stringAttribute key="ilg.gnumcueclipse.debug.gdbjtag.jlink.serailPort" value=""/>
+<intAttribute key="ilg.gnumcueclipse.debug.gdbjtag.jlink.swoEnableTargetCpuFreq" value="0"/>
+<stringAttribute key="ilg.gnumcueclipse.debug.gdbjtag.jlink.swoEnableTargetPortMask" value="0x1"/>
+<intAttribute key="ilg.gnumcueclipse.debug.gdbjtag.jlink.swoEnableTargetSwoFreq" value="0"/>
+<stringAttribute key="ilg.gnumcueclipse.debug.gdbjtag.svdPath" value=""/>
+<stringAttribute key="org.eclipse.cdt.debug.gdbjtag.core.imageFileName" value=""/>
+<stringAttribute key="org.eclipse.cdt.debug.gdbjtag.core.imageOffset" value=""/>
+<stringAttribute key="org.eclipse.cdt.debug.gdbjtag.core.ipAddress" value="localhost"/>
+<stringAttribute key="org.eclipse.cdt.debug.gdbjtag.core.jtagDevice" value="GNU MCU J-Link"/>
+<booleanAttribute key="org.eclipse.cdt.debug.gdbjtag.core.loadImage" value="true"/>
+<booleanAttribute key="org.eclipse.cdt.debug.gdbjtag.core.loadSymbols" value="true"/>
+<stringAttribute key="org.eclipse.cdt.debug.gdbjtag.core.pcRegister" value=""/>
+<intAttribute key="org.eclipse.cdt.debug.gdbjtag.core.portNumber" value="2331"/>
+<booleanAttribute key="org.eclipse.cdt.debug.gdbjtag.core.setPcRegister" value="false"/>
+<booleanAttribute key="org.eclipse.cdt.debug.gdbjtag.core.setResume" value="false"/>
+<booleanAttribute key="org.eclipse.cdt.debug.gdbjtag.core.setStopAt" value="true"/>
+<stringAttribute key="org.eclipse.cdt.debug.gdbjtag.core.stopAt" value="main"/>
+<stringAttribute key="org.eclipse.cdt.debug.gdbjtag.core.symbolsFileName" value=""/>
+<stringAttribute key="org.eclipse.cdt.debug.gdbjtag.core.symbolsOffset" value=""/>
+<booleanAttribute key="org.eclipse.cdt.debug.gdbjtag.core.useFileForImage" value="false"/>
+<booleanAttribute key="org.eclipse.cdt.debug.gdbjtag.core.useFileForSymbols" value="false"/>
+<booleanAttribute key="org.eclipse.cdt.debug.gdbjtag.core.useProjBinaryForImage" value="true"/>
+<booleanAttribute key="org.eclipse.cdt.debug.gdbjtag.core.useProjBinaryForSymbols" value="true"/>
+<booleanAttribute key="org.eclipse.cdt.debug.gdbjtag.core.useRemoteTarget" value="true"/>
+<stringAttribute key="org.eclipse.cdt.dsf.gdb.DEBUG_NAME" value="${rtt_gnu_gcc}/arm-none-eabi-gdb.exe"/>
+<booleanAttribute key="org.eclipse.cdt.dsf.gdb.UPDATE_THREADLIST_ON_SUSPEND" value="false"/>
+<intAttribute key="org.eclipse.cdt.launch.ATTR_BUILD_BEFORE_LAUNCH_ATTR" value="0"/>
+<stringAttribute key="org.eclipse.cdt.launch.PROGRAM_NAME" value="Debug/rtthread.elf"/>
+<stringAttribute key="org.eclipse.cdt.launch.PROJECT_ATTR" value="project"/>
+<booleanAttribute key="org.eclipse.cdt.launch.PROJECT_BUILD_CONFIG_AUTO_ATTR" value="false"/>
+<stringAttribute key="org.eclipse.cdt.launch.PROJECT_BUILD_CONFIG_ID_ATTR" value=""/>
+<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_PATHS">
+<listEntry value="/project"/>
+</listAttribute>
+<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_TYPES">
+<listEntry value="4"/>
+</listAttribute>
+<stringAttribute key="org.eclipse.debug.core.source_locator_id" value="org.eclipse.cdt.debug.core.sourceLocator"/>
+<stringAttribute key="org.eclipse.debug.core.source_locator_memento" value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;sourceLookupDirector&gt;&#13;&#10;&lt;sourceContainers duplicates=&quot;false&quot;&gt;&#13;&#10;&lt;container memento=&quot;&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot; standalone=&amp;quot;no&amp;quot;?&amp;gt;&amp;#13;&amp;#10;&amp;lt;default/&amp;gt;&amp;#13;&amp;#10;&quot; typeId=&quot;org.eclipse.debug.core.containerType.default&quot;/&gt;&#13;&#10;&lt;/sourceContainers&gt;&#13;&#10;&lt;/sourceLookupDirector&gt;&#13;&#10;"/>
+<stringAttribute key="org.eclipse.debug.ui.ATTR_CONSOLE_ENCODING" value="UTF-8"/>
+</launchConfiguration>
diff --git a/bsp/renesas/rzn2l_rsk/.settings/standalone.prefs b/bsp/renesas/rzn2l_rsk/.settings/standalone.prefs
index 5e6ead989e..1f9ccf199a 100644
--- a/bsp/renesas/rzn2l_rsk/.settings/standalone.prefs
+++ b/bsp/renesas/rzn2l_rsk/.settings/standalone.prefs
@@ -1,24 +1,26 @@
-#Sat Sep 14 16:03:03 CST 2024
-com.renesas.cdt.ddsc.content/com.renesas.cdt.ddsc.content.defaultlinkerscript=script/fsp_xspi0_boot.icf
+#Wed Nov 27 16:37:16 CST 2024
com.renesas.cdt.ddsc.packs.componentfiles/Renesas\#\#BSP\#\#Board\#\#rzn2l_rsk\#\#xspi0_x1_boot\#\#2.0.0/libraries=
-com.renesas.cdt.ddsc.packs.componentfiles/Arm\#\#CMSIS\#\#CMSIS5\#\#Core\#\#\#\#5.7.0+renesas.1.fsp.2.0.0/all=1441545198,rzn/arm/CMSIS_5/LICENSE.txt|4247764709,rzn/arm/CMSIS_5/CMSIS/Core_R/Include/cmsis_gcc.h|1135074086,rzn/arm/CMSIS_5/CMSIS/Core_R/Include/core_cr52.h|510668081,rzn/arm/CMSIS_5/CMSIS/Core_R/Include/cmsis_iccarm.h|4245531541,rzn/arm/CMSIS_5/CMSIS/Core_R/Include/cmsis_compiler.h|1887099957,rzn/arm/CMSIS_5/CMSIS/Core_R/Include/cmsis_cp15.h|3334069041,rzn/arm/CMSIS_5/CMSIS/Core_R/Include/cmsis_version.h
-com.renesas.cdt.ddsc.packs.componentfiles/Renesas\#\#BSP\#\#rzn2l\#\#device\#\#R9A07G084M04GBG\#\#2.0.0/all=
com.renesas.cdt.ddsc.packs.componentfiles/Renesas\#\#BSP\#\#Board\#\#rzn2l_rsk\#\#xspi0_x1_boot\#\#2.0.0/all=907937621,script/fsp_xspi0_boot.icf|3822962514,rzn/board/rzn2l_rsk/board_leds.c|358444977,rzn/board/rzn2l_rsk/board_init.c|2067006575,rzn/board/rzn2l_rsk/board.h|736691883,rzn/board/rzn2l_rsk/board_ethernet_phy.h|1631979823,rzn/board/rzn2l_rsk/board_leds.h|1430483072,rzn/board/rzn2l_rsk/board_init.h
com.renesas.cdt.ddsc.contentgen.options/options/suppresswarningspaths=
com.renesas.cdt.ddsc.packs.componentfiles/Renesas\#\#HAL\ Drivers\#\#all\#\#r_ioport\#\#\#\#2.0.0/libraries=
com.renesas.cdt.ddsc.threads.configurator/collapse/module.driver.uart_on_sci_uart.86814920=false
-com.renesas.cdt.ddsc.settingseditor/com.renesas.cdt.ddsc.settingseditor.active_page=SWPConfigurator
com.renesas.cdt.ddsc.packs.componentfiles/Renesas\#\#Common\#\#all\#\#fsp_common\#\#\#\#2.0.0/all=908052335,rzn/fsp/src/bsp/cmsis/Device/RENESAS/Source/system.c|3563504244,rzn/fsp/src/bsp/cmsis/Device/RENESAS/Source/startup.c|870156648,rzn/fsp/src/bsp/cmsis/Device/RENESAS/Source/cr/system_core.c|368480523,rzn/fsp/src/bsp/cmsis/Device/RENESAS/Source/cr/startup_core.c|3243637314,rzn/fsp/src/bsp/cmsis/Device/RENESAS/Include/system.h|1280798555,rzn/fsp/src/bsp/cmsis/Device/RENESAS/Include/renesas.h|3352808441,rzn/fsp/src/bsp/cmsis/Device/RENESAS/Include/R9A07G084.h|1310386533,rzn/fsp/src/bsp/mcu/all/bsp_io.h|3643995939,rzn/fsp/src/bsp/mcu/all/bsp_cache.h|1033616941,rzn/fsp/src/bsp/mcu/all/bsp_register_protection.h|1572168446,rzn/fsp/src/bsp/mcu/all/bsp_io.c|3001342594,rzn/fsp/src/bsp/mcu/all/bsp_common.h|263477342,rzn/fsp/src/bsp/mcu/all/bsp_reset.h|2534029381,rzn/fsp/src/bsp/mcu/all/bsp_module_stop.h|4193244082,rzn/fsp/src/bsp/mcu/all/bsp_irq.h|2136575248,rzn/fsp/src/bsp/mcu/all/bsp_tfu.h|2170977041,rzn/fsp/src/bsp/mcu/all/bsp_delay.c|526389185,rzn/fsp/src/bsp/mcu/all/bsp_compiler_support.h|8162287,rzn/fsp/src/bsp/mcu/all/bsp_clocks.h|3045644015,rzn/fsp/src/bsp/mcu/all/bsp_common.c|1908923075,rzn/fsp/src/bsp/mcu/all/bsp_clocks.c|1289851302,rzn/fsp/src/bsp/mcu/all/bsp_irq.c|358242822,rzn/fsp/src/bsp/mcu/all/bsp_sbrk.c|2321472163,rzn/fsp/src/bsp/mcu/all/bsp_cache.c|225356254,rzn/fsp/src/bsp/mcu/all/bsp_exceptions.h|2518644892,rzn/fsp/src/bsp/mcu/all/bsp_register_protection.c|392613868,rzn/fsp/src/bsp/mcu/all/bsp_reset.c|2238656401,rzn/fsp/src/bsp/mcu/all/bsp_mcu_api.h|1611830052,rzn/fsp/src/bsp/mcu/all/bsp_delay.h|2060190483,rzn/fsp/src/bsp/mcu/all/cr/bsp_cache_core.h|1543064539,rzn/fsp/src/bsp/mcu/all/cr/bsp_delay_core.h|3717942516,rzn/fsp/src/bsp/mcu/all/cr/bsp_cache_core.c|3396795463,rzn/fsp/src/bsp/mcu/all/cr/bsp_irq_core.c|2195931215,rzn/fsp/src/bsp/mcu/all/cr/bsp_delay_core.c|1126344352,rzn/fsp/src/bsp/mcu/all/cr/bsp_irq_core.h|1926319940,rzn/fsp/inc/fsp_features.h|2508067197,rzn/fsp/inc/fsp_version.h|3571247719,rzn/fsp/inc/fsp_common_api.h|3347087544,rzn/fsp/inc/instances/r_ioport.h|1765016794,rzn/fsp/inc/api/bsp_api.h|250199021,rzn/fsp/inc/api/r_ioport_api.h
-com.renesas.cdt.ddsc.packs.componentfiles/Renesas\#\#BSP\#\#rzn2l\#\#device\#\#R9A07G084M04GBG\#\#2.0.0/libraries=
com.renesas.cdt.ddsc.packs.componentfiles/Renesas\#\#BSP\#\#rzn2l\#\#fsp\#\#\#\#2.0.0/libraries=
com.renesas.cdt.ddsc.project.standalone.projectgenerationoptions/isCpp=false
com.renesas.cdt.ddsc.packs.componentfiles/Renesas\#\#BSP\#\#all\#\#Memory\#\#\#\#2.0.0/libraries=
com.renesas.cdt.ddsc.packs.componentfiles/Renesas\#\#BSP\#\#all\#\#Memory\#\#\#\#2.0.0/all=
com.renesas.cdt.ddsc.packs.componentfiles/Arm\#\#CMSIS\#\#CMSIS5\#\#Core\#\#\#\#5.7.0+renesas.1.fsp.2.0.0/libraries=
+com.renesas.cdt.ddsc.packs.componentfiles/Renesas\#\#Common\#\#all\#\#fsp_common\#\#\#\#2.0.0/libraries=
+com.renesas.cdt.ddsc.packs.componentfiles/Renesas\#\#HAL\ Drivers\#\#all\#\#r_rtc\#\#\#\#2.0.0/all=3551601681,rzn/fsp/src/r_rtc/r_rtc.c|3948337697,rzn/fsp/inc/instances/r_rtc.h|3795688877,rzn/fsp/inc/api/r_rtc_api.h
+com.renesas.cdt.ddsc.content/com.renesas.cdt.ddsc.content.defaultlinkerscript=script/fsp_xspi0_boot.icf
+com.renesas.cdt.ddsc.packs.componentfiles/Arm\#\#CMSIS\#\#CMSIS5\#\#Core\#\#\#\#5.7.0+renesas.1.fsp.2.0.0/all=1441545198,rzn/arm/CMSIS_5/LICENSE.txt|4247764709,rzn/arm/CMSIS_5/CMSIS/Core_R/Include/cmsis_gcc.h|1135074086,rzn/arm/CMSIS_5/CMSIS/Core_R/Include/core_cr52.h|510668081,rzn/arm/CMSIS_5/CMSIS/Core_R/Include/cmsis_iccarm.h|4245531541,rzn/arm/CMSIS_5/CMSIS/Core_R/Include/cmsis_compiler.h|1887099957,rzn/arm/CMSIS_5/CMSIS/Core_R/Include/cmsis_cp15.h|3334069041,rzn/arm/CMSIS_5/CMSIS/Core_R/Include/cmsis_version.h
+com.renesas.cdt.ddsc.packs.componentfiles/Renesas\#\#BSP\#\#rzn2l\#\#device\#\#R9A07G084M04GBG\#\#2.0.0/all=
+com.renesas.cdt.ddsc.settingseditor/com.renesas.cdt.ddsc.settingseditor.active_page=SWPConfigurator
+com.renesas.cdt.ddsc.packs.componentfiles/Renesas\#\#BSP\#\#rzn2l\#\#device\#\#R9A07G084M04GBG\#\#2.0.0/libraries=
com.renesas.cdt.ddsc.packs.componentfiles/Renesas\#\#HAL\ Drivers\#\#all\#\#r_sci_uart\#\#\#\#2.0.0/all=2921827146,rzn/fsp/src/r_sci_uart/r_sci_uart.c|4093801030,rzn/fsp/inc/instances/r_sci_uart.h|1119704027,rzn/fsp/inc/api/r_uart_api.h|3586794436,rzn/fsp/inc/api/r_transfer_api.h
com.renesas.cdt.ddsc.packs.componentfiles/Renesas\#\#BSP\#\#rzn2l\#\#device\#\#\#\#2.0.0/all=3243637314,rzn/fsp/src/bsp/cmsis/Device/RENESAS/Include/system.h
+com.renesas.cdt.ddsc.packs.componentfiles/Renesas\#\#HAL\ Drivers\#\#all\#\#r_rtc\#\#\#\#2.0.0/libraries=
com.renesas.cdt.ddsc.packs.componentfiles/Renesas\#\#BSP\#\#rzn2l\#\#device\#\#\#\#2.0.0/libraries=
com.renesas.cdt.ddsc.packs.componentfiles/Renesas\#\#BSP\#\#rzn2l\#\#fsp\#\#\#\#2.0.0/all=2989202485,rzn/fsp/src/bsp/mcu/rzn2l/bsp_loader_param.c|1967641730,rzn/fsp/src/bsp/mcu/rzn2l/bsp_feature.h|1508541487,rzn/fsp/src/bsp/mcu/rzn2l/bsp_elc.h|1088535767,rzn/fsp/src/bsp/mcu/rzn2l/bsp_irq_sense.c|1458388275,rzn/fsp/src/bsp/mcu/rzn2l/bsp_override.h|617637586,rzn/fsp/src/bsp/mcu/rzn2l/bsp_mcu_info.h
com.renesas.cdt.ddsc.packs.componentfiles/Renesas\#\#HAL\ Drivers\#\#all\#\#r_sci_uart\#\#\#\#2.0.0/libraries=
-com.renesas.cdt.ddsc.packs.componentfiles/Renesas\#\#Common\#\#all\#\#fsp_common\#\#\#\#2.0.0/libraries=
com.renesas.cdt.ddsc.packs.componentfiles/Renesas\#\#HAL\ Drivers\#\#all\#\#r_ioport\#\#\#\#2.0.0/all=615913359,rzn/fsp/src/r_ioport/r_ioport.c|3347087544,rzn/fsp/inc/instances/r_ioport.h|250199021,rzn/fsp/inc/api/r_ioport_api.h
diff --git a/bsp/renesas/rzn2l_rsk/SConscript b/bsp/renesas/rzn2l_rsk/SConscript
index 889ba12c85..db0ef9c0cb 100644
--- a/bsp/renesas/rzn2l_rsk/SConscript
+++ b/bsp/renesas/rzn2l_rsk/SConscript
@@ -17,8 +17,7 @@ elif rtconfig.PLATFORM in GetGCCLikePLATFORM():
if GetOption('target') != 'mdk5':
CPPPATH = [cwd]
src = Glob('./src/*.c')
-
-group = DefineGroup('Applications', src, depend = [''], CPPPATH = CPPPATH)
+ group = DefineGroup('Applications', src, depend = [''], CPPPATH = CPPPATH)
for d in list:
path = os.path.join(cwd, d)
diff --git a/bsp/renesas/rzn2l_rsk/board/board.h b/bsp/renesas/rzn2l_rsk/board/board.h
index cf53068064..baa0abb1c4 100644
--- a/bsp/renesas/rzn2l_rsk/board/board.h
+++ b/bsp/renesas/rzn2l_rsk/board/board.h
@@ -19,7 +19,7 @@ extern "C" {
#include <cp15.h>
#include <hal_data.h>
-#define RZ_SRAM_SIZE 512 /* The SRAM size of the chip needs to be modified */
+#define RZ_SRAM_SIZE 1536 /* The SRAM size of the chip needs to be modified */
#define RZ_SRAM_END (0x10000000 + RZ_SRAM_SIZE * 1024 - 1)
#ifdef __ARMCC_VERSION
@@ -29,7 +29,8 @@ extern int Image$$RAM_END$$ZI$$Base;
#pragma section="CSTACK"
#define HEAP_BEGIN (__segment_end("CSTACK"))
#else
-#define HEAP_BEGIN (0x10000000)
+extern int __bss_end__;
+#define HEAP_BEGIN ((void *)&__bss_end__)
#endif
#define HEAP_END RZ_SRAM_END
@@ -37,7 +38,7 @@ extern int Image$$RAM_END$$ZI$$Base;
/***********************************************************************************************************************
* Macro definitions
**********************************************************************************************************************/
-#define MAX_HANDLERS (512)
+#define MAX_HANDLERS BSP_VECTOR_TABLE_MAX_ENTRIES
#define GIC_IRQ_START 0
#define GIC_ACK_INTID_MASK (0x000003FFU)
/* number of interrupts on board */
diff --git a/bsp/renesas/rzn2l_rsk/rzn/SConscript b/bsp/renesas/rzn2l_rsk/rzn/SConscript
index 41038bee62..4ff6ec8599 100644
--- a/bsp/renesas/rzn2l_rsk/rzn/SConscript
+++ b/bsp/renesas/rzn2l_rsk/rzn/SConscript
@@ -12,13 +12,12 @@ if rtconfig.PLATFORM in ['iccarm']:
Return('group')
elif rtconfig.PLATFORM in GetGCCLikePLATFORM():
if GetOption('target') != 'mdk5':
- src += Glob(cwd + '/fsp/src/bsp/mcu/all/*.c')
- src += Glob(cwd + '/fsp/src/bsp/mcu/all/cr/*.c')
- src += Glob(cwd + '/fsp/src/bsp/mcu/r*/*.c')
- src += Glob(cwd + '/fsp/src/r_*/*.c')
- src += Glob(cwd + '/fsp/src/bsp/cmsis/Device/RENESAS/Source/cr/*.c')
- src += [cwd + '/fsp/src/bsp/cmsis/Device/RENESAS/Source/system.c']
- src += [cwd + '/fsp/src/bsp/cmsis/Device/RENESAS/Source/startup.c']
+ src += Glob('./fsp/src/bsp/mcu/all/*.c')
+ src += Glob('./fsp/src/bsp/mcu/all/cr/*.c')
+ src += Glob('./fsp/src/bsp/mcu/r*/*.c')
+ src += Glob('./fsp/src/bsp/cmsis/Device/RENESAS/Source/*.c')
+ src += Glob('./fsp/src/bsp/cmsis/Device/RENESAS/Source/cr/*.c')
+ src += Glob('./fsp/src/r_*/*.c')
CPPPATH = [ cwd + '/arm/CMSIS_5/CMSIS/Core_R/Include',
cwd + '/fsp/inc',
cwd + '/fsp/inc/api',
diff --git a/bsp/renesas/rzn2l_rsk/script/fsp_xspi0_boot.icf b/bsp/renesas/rzn2l_rsk/script/fsp_xspi0_boot.icf
index 2f14001fa0..03db352850 100644
--- a/bsp/renesas/rzn2l_rsk/script/fsp_xspi0_boot.icf
+++ b/bsp/renesas/rzn2l_rsk/script/fsp_xspi0_boot.icf
@@ -1,684 +1,684 @@
-include "memory_regions.icf";
-
-/* The memory information for each device is done in memory regions file.
- * The starting address and length of memory not defined in memory regions file are defined as 0. */
-
-if (isdefinedsymbol(ATCM_START))
-{
- define symbol ATCM_PRV_START = ATCM_START;
-}
-else
-{
- define symbol ATCM_PRV_START = 0;
-}
-
-if (isdefinedsymbol(ATCM_LENGTH))
-{
- define symbol ATCM_PRV_LENGTH = ATCM_LENGTH;
-}
-else
-{
- define symbol ATCM_PRV_LENGTH = 0;
-}
-
-if (isdefinedsymbol(BTCM_START))
-{
- define symbol BTCM_PRV_START = BTCM_START;
-}
-else
-{
- define symbol BTCM_PRV_START = 0;
-}
-
-if (isdefinedsymbol(BTCM_LENGTH))
-{
- define symbol BTCM_PRV_LENGTH = BTCM_LENGTH;
-}
-else
-{
- define symbol BTCM_PRV_LENGTH = 0;
-}
-
-if (isdefinedsymbol(SYSTEM_RAM_START))
-{
- define symbol SYSTEM_RAM_PRV_START = SYSTEM_RAM_START;
-}
-else
-{
- define symbol SYSTEM_RAM_PRV_START = 0;
-}
-
-if (isdefinedsymbol(SYSTEM_RAM_LENGTH))
-{
- define symbol SYSTEM_RAM_PRV_LENGTH = SYSTEM_RAM_LENGTH;
-}
-else
-{
- define symbol SYSTEM_RAM_PRV_LENGTH = 0;
-}
-
-if (isdefinedsymbol(SYSTEM_RAM_MIRROR_START))
-{
- define symbol SYSTEM_RAM_MIRROR_PRV_START = SYSTEM_RAM_MIRROR_START;
-}
-else
-{
- define symbol SYSTEM_RAM_MIRROR_PRV_START = 0;
-}
-
-if (isdefinedsymbol(SYSTEM_RAM_MIRROR_LENGTH))
-{
- define symbol SYSTEM_RAM_MIRROR_PRV_LENGTH = SYSTEM_RAM_MIRROR_LENGTH;
-}
-else
-{
- define symbol SYSTEM_RAM_MIRROR_PRV_LENGTH = 0;
-}
-
-if (isdefinedsymbol(xSPI0_CS0_SPACE_MIRROR_START))
-{
- define symbol xSPI0_CS0_SPACE_MIRROR_PRV_START = xSPI0_CS0_SPACE_MIRROR_START;
-}
-else
-{
- define symbol xSPI0_CS0_SPACE_MIRROR_PRV_START = 0;
-}
-
-if (isdefinedsymbol(xSPI0_CS0_SPACE_MIRROR_LENGTH))
-{
- define symbol xSPI0_CS0_SPACE_MIRROR_PRV_LENGTH = xSPI0_CS0_SPACE_MIRROR_LENGTH;
-}
-else
-{
- define symbol xSPI0_CS0_SPACE_MIRROR_PRV_LENGTH = 0;
-}
-
-if (isdefinedsymbol(xSPI0_CS1_SPACE_MIRROR_START))
-{
- define symbol xSPI0_CS1_SPACE_MIRROR_PRV_START = xSPI0_CS1_SPACE_MIRROR_START;
-}
-else
-{
- define symbol xSPI0_CS1_SPACE_MIRROR_PRV_START = 0;
-}
-
-if (isdefinedsymbol(xSPI0_CS1_SPACE_MIRROR_LENGTH))
-{
- define symbol xSPI0_CS1_SPACE_MIRROR_PRV_LENGTH = xSPI0_CS1_SPACE_MIRROR_LENGTH;
-}
-else
-{
- define symbol xSPI0_CS1_SPACE_MIRROR_PRV_LENGTH = 0;
-}
-
-if (isdefinedsymbol(xSPI1_CS0_SPACE_MIRROR_START))
-{
- define symbol xSPI1_CS0_SPACE_MIRROR_PRV_START = xSPI1_CS0_SPACE_MIRROR_START;
-}
-else
-{
- define symbol xSPI1_CS0_SPACE_MIRROR_PRV_START = 0;
-}
-
-if (isdefinedsymbol(xSPI1_CS0_SPACE_MIRROR_LENGTH))
-{
- define symbol xSPI1_CS0_SPACE_MIRROR_PRV_LENGTH = xSPI1_CS0_SPACE_MIRROR_LENGTH;
-}
-else
-{
- define symbol xSPI1_CS0_SPACE_MIRROR_PRV_LENGTH = 0;
-}
-
-if (isdefinedsymbol(xSPI1_CS1_SPACE_MIRROR_START))
-{
- define symbol xSPI1_CS1_SPACE_MIRROR_PRV_START = xSPI1_CS1_SPACE_MIRROR_START;
-}
-else
-{
- define symbol xSPI1_CS1_SPACE_MIRROR_PRV_START = 0;
-}
-
-if (isdefinedsymbol(xSPI1_CS1_SPACE_MIRROR_LENGTH))
-{
- define symbol xSPI1_CS1_SPACE_MIRROR_PRV_LENGTH = xSPI1_CS1_SPACE_MIRROR_LENGTH;
-}
-else
-{
- define symbol xSPI1_CS1_SPACE_MIRROR_PRV_LENGTH = 0;
-}
-
-if (isdefinedsymbol(CS0_SPACE_MIRROR_START))
-{
- define symbol CS0_SPACE_MIRROR_PRV_START = CS0_SPACE_MIRROR_START;
-}
-else
-{
- define symbol CS0_SPACE_MIRROR_PRV_START = 0;
-}
-
-if (isdefinedsymbol(CS0_SPACE_MIRROR_LENGTH))
-{
- define symbol CS0_SPACE_MIRROR_PRV_LENGTH = CS0_SPACE_MIRROR_LENGTH;
-}
-else
-{
- define symbol CS0_SPACE_MIRROR_PRV_LENGTH = 0;
-}
-
-if (isdefinedsymbol(CS2_SPACE_MIRROR_START))
-{
- define symbol CS2_SPACE_MIRROR_PRV_START = CS2_SPACE_MIRROR_START;
-}
-else
-{
- define symbol CS2_SPACE_MIRROR_PRV_START = 0;
-}
-
-if (isdefinedsymbol(CS2_SPACE_MIRROR_LENGTH))
-{
- define symbol CS2_SPACE_MIRROR_PRV_LENGTH = CS2_SPACE_MIRROR_LENGTH;
-}
-else
-{
- define symbol CS2_SPACE_MIRROR_PRV_LENGTH = 0;
-}
-
-
-if (isdefinedsymbol(CS3_SPACE_MIRROR_START))
-{
- define symbol CS3_SPACE_MIRROR_PRV_START = CS3_SPACE_MIRROR_START;
-}
-else
-{
- define symbol CS3_SPACE_MIRROR_PRV_START = 0;
-}
-
-if (isdefinedsymbol(CS3_SPACE_MIRROR_LENGTH))
-{
- define symbol CS3_SPACE_MIRROR_PRV_LENGTH = CS3_SPACE_MIRROR_LENGTH;
-}
-else
-{
- define symbol CS3_SPACE_MIRROR_PRV_LENGTH = 0;
-}
-
-if (isdefinedsymbol(CS5_SPACE_MIRROR_START))
-{
- define symbol CS5_SPACE_MIRROR_PRV_START = CS5_SPACE_MIRROR_START;
-}
-else
-{
- define symbol CS5_SPACE_MIRROR_PRV_START = 0;
-}
-
-if (isdefinedsymbol(CS5_SPACE_MIRROR_LENGTH))
-{
- define symbol CS5_SPACE_MIRROR_PRV_LENGTH = CS5_SPACE_MIRROR_LENGTH;
-}
-else
-{
- define symbol CS5_SPACE_MIRROR_PRV_LENGTH = 0;
-}
-
-
-if (isdefinedsymbol(xSPI0_CS0_SPACE_START))
-{
- define symbol xSPI0_CS0_SPACE_PRV_START = xSPI0_CS0_SPACE_START;
-}
-else
-{
- define symbol xSPI0_CS0_SPACE_PRV_START = 0;
-}
-
-if (isdefinedsymbol(xSPI0_CS0_SPACE_LENGTH))
-{
- define symbol xSPI0_CS0_SPACE_PRV_LENGTH = xSPI0_CS0_SPACE_LENGTH;
-}
-else
-{
- define symbol xSPI0_CS0_SPACE_PRV_LENGTH = 0;
-}
-
-if (isdefinedsymbol(xSPI0_CS1_SPACE_START))
-{
- define symbol xSPI0_CS1_SPACE_PRV_START = xSPI0_CS1_SPACE_START;
-}
-else
-{
- define symbol xSPI0_CS1_SPACE_PRV_START = 0;
-}
-
-if (isdefinedsymbol(xSPI0_CS1_SPACE_LENGTH))
-{
- define symbol xSPI0_CS1_SPACE_PRV_LENGTH = xSPI0_CS1_SPACE_LENGTH;
-}
-else
-{
- define symbol xSPI0_CS1_SPACE_PRV_LENGTH = 0;
-}
-
-if (isdefinedsymbol(xSPI1_CS0_SPACE_START))
-{
- define symbol xSPI1_CS0_SPACE_PRV_START = xSPI1_CS0_SPACE_START;
-}
-else
-{
- define symbol xSPI1_CS0_SPACE_PRV_START = 0;
-}
-
-if (isdefinedsymbol(xSPI1_CS0_SPACE_LENGTH))
-{
- define symbol xSPI1_CS0_SPACE_PRV_LENGTH = xSPI1_CS0_SPACE_LENGTH;
-}
-else
-{
- define symbol xSPI1_CS0_SPACE_PRV_LENGTH = 0;
-}
-
-if (isdefinedsymbol(xSPI1_CS1_SPACE_START))
-{
- define symbol xSPI1_CS1_SPACE_PRV_START = xSPI1_CS1_SPACE_START;
-}
-else
-{
- define symbol xSPI1_CS1_SPACE_PRV_START = 0;
-}
-
-if (isdefinedsymbol(xSPI1_CS1_SPACE_LENGTH))
-{
- define symbol xSPI1_CS1_SPACE_PRV_LENGTH = xSPI1_CS1_SPACE_LENGTH;
-}
-else
-{
- define symbol xSPI1_CS1_SPACE_PRV_LENGTH = 0;
-}
-
-if (isdefinedsymbol(CS0_SPACE_START))
-{
- define symbol CS0_SPACE_PRV_START = CS0_SPACE_START;
-}
-else
-{
- define symbol CS0_SPACE_PRV_START = 0;
-}
-
-if (isdefinedsymbol(CS0_SPACE_LENGTH))
-{
- define symbol CS0_SPACE_PRV_LENGTH = CS0_SPACE_LENGTH;
-}
-else
-{
- define symbol CS0_SPACE_PRV_LENGTH = 0;
-}
-
-if (isdefinedsymbol(CS2_SPACE_START))
-{
- define symbol CS2_SPACE_PRV_START = CS2_SPACE_START;
-}
-else
-{
- define symbol CS2_SPACE_PRV_START = 0;
-}
-
-if (isdefinedsymbol(CS2_SPACE_LENGTH))
-{
- define symbol CS2_SPACE_PRV_LENGTH = CS2_SPACE_LENGTH;
-}
-else
-{
- define symbol CS2_SPACE_PRV_LENGTH = 0;
-}
-
-if (isdefinedsymbol(CS3_SPACE_START))
-{
- define symbol CS3_SPACE_PRV_START = CS3_SPACE_START;
-}
-else
-{
- define symbol CS3_SPACE_PRV_START = 0;
-}
-
-if (isdefinedsymbol(CS3_SPACE_LENGTH))
-{
- define symbol CS3_SPACE_PRV_LENGTH = CS3_SPACE_LENGTH;
-}
-else
-{
- define symbol CS3_SPACE_PRV_LENGTH = 0;
-}
-
-if (isdefinedsymbol(CS5_SPACE_START))
-{
- define symbol CS5_SPACE_PRV_START = CS5_SPACE_START;
-}
-else
-{
- define symbol CS5_SPACE_PRV_START = 0;
-}
-
-if (isdefinedsymbol(CS5_SPACE_LENGTH))
-{
- define symbol CS5_SPACE_PRV_LENGTH = CS5_SPACE_LENGTH;
-}
-else
-{
- define symbol CS5_SPACE_PRV_LENGTH = 0;
-}
-
-define symbol SYSTEM_RAM_END_OFFSET = 0x00048000;
-define symbol FLASH_ADDRESS = xSPI0_CS0_SPACE_PRV_START;
-
-define symbol INTVEC_ADDRESS = ATCM_PRV_START;
-define symbol RAM_ADDRESS = (ATCM_PRV_START + 0x100);
-define symbol RAM_END_ADDRESS = (ATCM_PRV_START + ATCM_PRV_LENGTH - 1);
-define symbol LOADER_STACK_ADDRESS = (BTCM_PRV_START + 0x2000);
-define symbol LOADER_STACK_END_ADDRESS = (BTCM_PRV_START + BTCM_PRV_LENGTH - 1);
-define symbol DATA_NONCACHE_OFFSET = 0x00048000;
-define symbol DATA_NONCACHE_END_OFFSET = 0x00044000;
-define symbol DMAC_LINK_MODE_OFFSET = 0x00044000;
-define symbol DMAC_LINK_MODE_END_OFFSET = 0x00040000;
-define symbol NONCACHE_BUFFER_OFFSET = 0x00020000;
-define symbol NONCACHE_BUFFER_END_OFFSET = 0;
-
-/*###ICF### Section handled by ICF editor, don't touch! ****/
-/*-Editor annotation file-*/
-/* IcfEditorFile="$TOOLKIT_DIR$\config\ide\IcfEditor\a_v1_0.xml" */
-/*-Specials-*/
-define symbol __ICFEDIT_intvec_start__ = INTVEC_ADDRESS;
-/*-Memory Regions-*/
-define symbol __ICFEDIT_region_ROM_start__ = FLASH_ADDRESS + 0x20100;
-define symbol __ICFEDIT_region_ROM_end__ = FLASH_ADDRESS + 0x6FFFF;
-define symbol __ICFEDIT_region_RAM_start__ = RAM_ADDRESS;
-define symbol __ICFEDIT_region_RAM_end__ = RAM_END_ADDRESS;
-/**** End of ICF editor section. ###ICF###*/
-
-/*-Sizes-*/
-define symbol __ICFEDIT_size_cstack__ = 0x200;
-/**** End of ICF editor section. ###ICF###*/
-
-define memory mem with size = 4G;
-define region ROM_region = mem:[from __ICFEDIT_region_ROM_start__ to __ICFEDIT_region_ROM_end__];
-define region RAM_region = mem:[from __ICFEDIT_region_RAM_start__ to __ICFEDIT_region_RAM_end__];
-
-define block CSTACK with alignment = 8, size = __ICFEDIT_size_cstack__ { };
-
-define symbol __region_D_LOADER_STACK_start__ = LOADER_STACK_ADDRESS;
-define symbol __region_D_LOADER_STACK_end__ = LOADER_STACK_END_ADDRESS;
-
-define symbol __region_DATA_NONCACHE_start__ = SYSTEM_RAM_MIRROR_PRV_START + SYSTEM_RAM_MIRROR_PRV_LENGTH - DATA_NONCACHE_OFFSET;
-define symbol __region_DATA_NONCACHE_end__ = SYSTEM_RAM_MIRROR_PRV_START + SYSTEM_RAM_MIRROR_PRV_LENGTH - DATA_NONCACHE_END_OFFSET - 1;
-define symbol __region_DMAC_LINK_MODE_start__ = SYSTEM_RAM_MIRROR_PRV_START + SYSTEM_RAM_MIRROR_PRV_LENGTH - DMAC_LINK_MODE_OFFSET;
-define symbol __region_DMAC_LINK_MODE_end__ = SYSTEM_RAM_MIRROR_PRV_START + SYSTEM_RAM_MIRROR_PRV_LENGTH - DMAC_LINK_MODE_END_OFFSET - 1;
-define symbol __region_SHARED_NONCACHE_BUFFER_start__ = SYSTEM_RAM_MIRROR_PRV_START + SYSTEM_RAM_MIRROR_PRV_LENGTH - 0x00040000;
-define symbol __region_SHARED_NONCACHE_BUFFER_end__ = SYSTEM_RAM_MIRROR_PRV_START + SYSTEM_RAM_MIRROR_PRV_LENGTH - 0x00020000 - 1;
-define symbol __region_NONCACHE_BUFFER_start__ = SYSTEM_RAM_MIRROR_PRV_START + SYSTEM_RAM_MIRROR_PRV_LENGTH - NONCACHE_BUFFER_OFFSET;
-define symbol __region_NONCACHE_BUFFER_end__ = SYSTEM_RAM_MIRROR_PRV_START + SYSTEM_RAM_MIRROR_PRV_LENGTH - NONCACHE_BUFFER_END_OFFSET - 1;
-
-define symbol __region_ATCM_start__ = ATCM_PRV_START;
-define symbol __region_ATCM_end__ = ATCM_PRV_START + ATCM_PRV_LENGTH - 1;
-define symbol __region_BTCM_start__ = BTCM_PRV_START;
-define symbol __region_BTCM_end__ = BTCM_PRV_START + BTCM_PRV_LENGTH - 1;
-define symbol __region_SYSTEM_RAM_start__ = SYSTEM_RAM_PRV_START;
-define symbol __region_SYSTEM_RAM_end__ = SYSTEM_RAM_PRV_START + SYSTEM_RAM_PRV_LENGTH - SYSTEM_RAM_END_OFFSET - 1;
-define symbol __region_SYSTEM_RAM_MIRROR_start__ = SYSTEM_RAM_MIRROR_PRV_START;
-define symbol __region_SYSTEM_RAM_MIRROR_end__ = SYSTEM_RAM_MIRROR_PRV_START + SYSTEM_RAM_MIRROR_PRV_LENGTH - SYSTEM_RAM_END_OFFSET - 1;
-
-define symbol __region_XSPI0_CS0_MIRROR_start__ = xSPI0_CS0_SPACE_MIRROR_PRV_START;
-define symbol __region_XSPI0_CS0_MIRROR_end__ = xSPI0_CS0_SPACE_MIRROR_PRV_START + xSPI0_CS0_SPACE_MIRROR_PRV_LENGTH - 1;
-define symbol __region_XSPI0_CS1_MIRROR_start__ = xSPI0_CS1_SPACE_MIRROR_PRV_START;
-define symbol __region_XSPI0_CS1_MIRROR_end__ = xSPI0_CS1_SPACE_MIRROR_PRV_START + xSPI0_CS1_SPACE_MIRROR_PRV_LENGTH - 1;
-define symbol __region_XSPI1_CS0_MIRROR_start__ = xSPI1_CS0_SPACE_MIRROR_PRV_START;
-define symbol __region_XSPI1_CS0_MIRROR_end__ = xSPI1_CS0_SPACE_MIRROR_PRV_START + xSPI1_CS0_SPACE_MIRROR_PRV_LENGTH - 1;
-define symbol __region_XSPI1_CS1_MIRROR_start__ = xSPI1_CS1_SPACE_MIRROR_PRV_START;
-define symbol __region_XSPI1_CS1_MIRROR_end__ = xSPI1_CS1_SPACE_MIRROR_PRV_START + xSPI1_CS1_SPACE_MIRROR_PRV_LENGTH - 1;
-define symbol __region_CS0_MIRROR_start__ = CS0_SPACE_MIRROR_PRV_START;
-define symbol __region_CS0_MIRROR_end__ = CS0_SPACE_MIRROR_PRV_START + CS0_SPACE_MIRROR_PRV_LENGTH - 1;
-define symbol __region_CS2_MIRROR_start__ = CS2_SPACE_MIRROR_PRV_START;
-define symbol __region_CS2_MIRROR_end__ = CS2_SPACE_MIRROR_PRV_START + CS2_SPACE_MIRROR_PRV_LENGTH - 1;
-define symbol __region_CS3_MIRROR_start__ = CS3_SPACE_MIRROR_PRV_START;
-define symbol __region_CS3_MIRROR_end__ = CS3_SPACE_MIRROR_PRV_START + CS3_SPACE_MIRROR_PRV_LENGTH - 1;
-define symbol __region_CS5_MIRROR_start__ = CS5_SPACE_MIRROR_PRV_START;
-define symbol __region_CS5_MIRROR_end__ = CS5_SPACE_MIRROR_PRV_START + CS5_SPACE_MIRROR_PRV_LENGTH - 1;
-define symbol __region_XSPI0_CS0_start__ = xSPI0_CS0_SPACE_PRV_START;
-define symbol __region_XSPI0_CS0_end__ = xSPI0_CS0_SPACE_PRV_START + xSPI0_CS0_SPACE_PRV_LENGTH - 1;
-define symbol __region_XSPI0_CS1_start__ = xSPI0_CS1_SPACE_PRV_START;
-define symbol __region_XSPI0_CS1_end__ = xSPI0_CS1_SPACE_PRV_START + xSPI0_CS1_SPACE_PRV_LENGTH - 1;
-define symbol __region_XSPI1_CS0_start__ = xSPI1_CS0_SPACE_PRV_START;
-define symbol __region_XSPI1_CS0_end__ = xSPI1_CS0_SPACE_PRV_START + xSPI1_CS0_SPACE_PRV_LENGTH - 1;
-define symbol __region_XSPI1_CS1_start__ = xSPI1_CS1_SPACE_PRV_START;
-define symbol __region_XSPI1_CS1_end__ = xSPI1_CS1_SPACE_PRV_START + xSPI1_CS1_SPACE_PRV_LENGTH - 1;
-define symbol __region_CS0_start__ = CS0_SPACE_PRV_START;
-define symbol __region_CS0_end__ = CS0_SPACE_PRV_START + CS0_SPACE_PRV_LENGTH - 1;
-define symbol __region_CS2_start__ = CS2_SPACE_PRV_START;
-define symbol __region_CS2_end__ = CS2_SPACE_PRV_START + CS2_SPACE_PRV_LENGTH - 1;
-define symbol __region_CS3_start__ = CS3_SPACE_PRV_START;
-define symbol __region_CS3_end__ = CS3_SPACE_PRV_START + CS3_SPACE_PRV_LENGTH - 1;
-define symbol __region_CS5_start__ = CS5_SPACE_PRV_START;
-define symbol __region_CS5_end__ = CS5_SPACE_PRV_START + CS5_SPACE_PRV_LENGTH - 1;
-
-/************** SPI boot mode setting **************/
-define symbol __region_LDR_PARAM_start__ = FLASH_ADDRESS;
-define symbol __region_LDR_PARAM_end__ = FLASH_ADDRESS + 0x0000004B;
-define symbol __region_S_LOADER_STACK_start__ = FLASH_ADDRESS + 0x0000004C;
-define symbol __region_S_LOADER_STACK_end__ = FLASH_ADDRESS + 0x0000804B;
-
-define symbol __region_S_intvec_start__ = FLASH_ADDRESS + 0x20000;
-define symbol __region_S_intvec_end__ = FLASH_ADDRESS + 0x200FF;
-define symbol __region_S_RAM_start__ = FLASH_ADDRESS + 0x70000;
-define symbol __region_S_RAM_end__ = FLASH_ADDRESS + 0x7FFFF;
-/****************************************************/
-
-define region D_LOADER_STACK_region = mem:[from __region_D_LOADER_STACK_start__ to __region_D_LOADER_STACK_end__];
-
-define region LDR_PARAM_region = mem:[from __region_LDR_PARAM_start__ to __region_LDR_PARAM_end__];
-define region S_LOADER_STACK_region = mem:[from __region_S_LOADER_STACK_start__ to __region_S_LOADER_STACK_end__];
-
-define region S_intvec_region = mem:[from __region_S_intvec_start__ to __region_S_intvec_end__];
-define region S_RAM_region = mem:[from __region_S_RAM_start__ to __region_S_RAM_end__];
-
-define region DATA_NONCACHE_region = mem:[from __region_DATA_NONCACHE_start__ to __region_DATA_NONCACHE_end__];
-define region DMAC_LINK_MODE_region = mem:[from __region_DMAC_LINK_MODE_start__ to __region_DMAC_LINK_MODE_end__];
-define region SHARED_NONCACHE_BUFFER_region = mem:[from __region_SHARED_NONCACHE_BUFFER_start__ to __region_SHARED_NONCACHE_BUFFER_end__];
-define region NONCACHE_BUFFER_region = mem:[from __region_NONCACHE_BUFFER_start__ to __region_NONCACHE_BUFFER_end__];
-
-define region ATCM_region = mem:[from __region_ATCM_start__ to __region_ATCM_end__ ];
-define region BTCM_region = mem:[from __region_BTCM_start__ to __region_BTCM_end__ ];
-define region SYSTEM_RAM_region = mem:[from __region_SYSTEM_RAM_start__ to __region_SYSTEM_RAM_end__ ];
-define region SYSTEM_RAM_MIRROR_region = mem:[from __region_SYSTEM_RAM_MIRROR_start__ to __region_SYSTEM_RAM_MIRROR_end__ ];
-define region XSPI0_CS0_MIRROR_region = mem:[from __region_XSPI0_CS0_MIRROR_start__ to __region_XSPI0_CS0_MIRROR_end__ ];
-define region XSPI0_CS1_MIRROR_region = mem:[from __region_XSPI0_CS1_MIRROR_start__ to __region_XSPI0_CS1_MIRROR_end__ ];
-define region XSPI1_CS0_MIRROR_region = mem:[from __region_XSPI1_CS0_MIRROR_start__ to __region_XSPI1_CS0_MIRROR_end__ ];
-define region XSPI1_CS1_MIRROR_region = mem:[from __region_XSPI1_CS1_MIRROR_start__ to __region_XSPI1_CS1_MIRROR_end__ ];
-define region CS0_MIRROR_region = mem:[from __region_CS0_MIRROR_start__ to __region_CS0_MIRROR_end__ ];
-define region CS2_MIRROR_region = mem:[from __region_CS2_MIRROR_start__ to __region_CS2_MIRROR_end__ ];
-define region CS3_MIRROR_region = mem:[from __region_CS3_MIRROR_start__ to __region_CS3_MIRROR_end__ ];
-define region CS5_MIRROR_region = mem:[from __region_CS5_MIRROR_start__ to __region_CS5_MIRROR_end__ ];
-define region XSPI0_CS0_region = mem:[from __region_XSPI0_CS0_start__ to __region_XSPI0_CS0_end__ ];
-define region XSPI0_CS1_region = mem:[from __region_XSPI0_CS1_start__ to __region_XSPI0_CS1_end__ ];
-define region XSPI1_CS0_region = mem:[from __region_XSPI1_CS0_start__ to __region_XSPI1_CS0_end__ ];
-define region XSPI1_CS1_region = mem:[from __region_XSPI1_CS1_start__ to __region_XSPI1_CS1_end__ ];
-define region CS0_region = mem:[from __region_CS0_start__ to __region_CS0_end__ ];
-define region CS2_region = mem:[from __region_CS2_start__ to __region_CS2_end__ ];
-define region CS3_region = mem:[from __region_CS3_start__ to __region_CS3_end__ ];
-define region CS5_region = mem:[from __region_CS5_start__ to __region_CS5_end__ ];
-
-define block LDR_PRG_RBLOCK with fixed order
- { ro code section .loader_text_init object startup_core.o,
- ro code object startup_core.o,
- ro code object system_core.o,
- ro code object startup.o,
- ro code object system.o,
- ro code object bsp_clocks.o,
- ro code object bsp_irq_core.o,
- ro code object bsp_irq.o,
- ro code object bsp_register_protection.o,
- ro code object r_ioport.o,
- ro code object bsp_cache.o,
- ro code section .warm_start_init }
- except { ro code section .intvec_init,
- ro code section .reset_handler_init };
-define block LDR_PRG_WBLOCK with fixed order
- { rw code section .loader_text object startup_core.o,
- rw code object startup_core.o,
- rw code object system_core.o,
- rw code object startup.o,
- rw code object system.o,
- rw code object bsp_clocks.o,
- rw code object bsp_irq_core.o,
- rw code object bsp_irq.o,
- rw code object bsp_register_protection.o,
- rw code object r_ioport.o,
- rw code object bsp_cache.o,
- rw code section .warm_start }
- except { rw code section .intvec,
- rw code section .reset_handler };
-define block LDR_DATA_ZBLOCK with alignment = 4
- { section .bss object startup_core.o,
- section .bss object system_core.o,
- section .bss object startup.o,
- section .bss object system.o,
- section .bss object bsp_clocks.o,
- section .bss object bsp_irq_core.o,
- section .bss object bsp_irq.o,
- section .bss object bsp_register_protection.o,
- section .bss object r_ioport.o,
- section .bss object bsp_cache.o,
- section .bss object bsp_io.o };
-define block LDR_DATA_RBLOCK with fixed order, alignment = 4
- { section .data_init object startup_core.o,
- section .data_init object system_core.o,
- section .data_init object startup.o,
- section .data_init object system.o,
- section .data_init object bsp_clocks.o,
- section .data_init object bsp_irq_core.o,
- section .data_init object bsp_irq.o,
- section .data_init object bsp_register_protection.o,
- section .data_init object r_ioport.o,
- section .data_init object bsp_cache.o,
- section .rodata_init object system_core.o };
-define block LDR_DATA_WBLOCK with fixed order, alignment = 4
- { section .data object startup_core.o,
- section .data object system_core.o,
- section .data object startup.o,
- section .data object system.o,
- section .data object bsp_clocks.o,
- section .data object bsp_irq_core.o,
- section .data object bsp_irq.o,
- section .data object bsp_register_protection.o,
- section .data object r_ioport.o,
- section .data object bsp_cache.o,
- section .rodata object system_core.o };
-
-define block HEAP_BLOCK with alignment = 8 { rw section HEAP };
-define block THREAD_STACK with alignment = 8 { rw section .stack* };
-define block SYS_STACK with alignment = 8 { rw section .sys_stack };
-define block SVC_STACK with alignment = 8 { rw section .svc_stack };
-define block IRQ_STACK with alignment = 8 { rw section .irq_stack };
-define block FIQ_STACK with alignment = 8 { rw section .fiq_stack };
-define block UND_STACK with alignment = 8 { rw section .und_stack };
-define block ABT_STACK with alignment = 8 { rw section .abt_stack };
-
-define block VECTOR_RBLOCK with alignment = 32 { ro code section .intvec_init};
-define block VECTOR_WBLOCK with alignment = 32 { rw code section .intvec};
-define block USER_PRG_RBLOCK with alignment = 4 { ro code };
-define block USER_PRG_WBLOCK with alignment = 4 { rw code };
-define block USER_DATA_ZBLOCK with alignment = 4 { section .bss };
-define block USER_DATA_RBLOCK with fixed order, alignment = 4
- { section .data_init,
- section __DLIB_PERTHREAD_init,
- section .rodata_init,
- section .version_init };
-define block USER_DATA_WBLOCK with fixed order, alignment = 4
- { section .data,
- section __DLIB_PERTHREAD,
- section .rodata,
- section .version };
-define block USER_DATA_NONCACHE_RBLOCK with alignment = 4 { section .data_noncache_init };
-define block USER_DATA_NONCACHE_WBLOCK with alignment = 4 { section .data_noncache };
-define block DMAC_LINK_MODE_ZBLOCK with alignment = 4 { section .dmac_link_mode* };
-define block SHARED_NONCACHE_BUFFER_ZBLOCK with alignment = 32 { section .shared_noncache_buffer* };
-define block NONCACHE_BUFFER_ZBLOCK with alignment = 32 { section .noncache_buffer* };
-
-initialize manually { ro code object startup_core.o,
- ro code object system_core.o,
- ro code object startup.o,
- ro code object system.o,
- ro code object bsp_clocks.o,
- ro code object bsp_irq_core.o,
- ro code object bsp_irq.o,
- ro code object bsp_register_protection.o,
- ro code object r_ioport.o,
- ro code object bsp_cache.o,
- ro code section .intvec,
- ro code section .reset_handler,
- ro code section .warm_start,
- ro code,
- section .data,
- section __DLIB_PERTHREAD,
- section .rodata,
- section .version,
- section .data_noncache };
-
-do not initialize { section .noinit,
- section .bss,
- section .dmac_link_mode*,
- section .shared_noncache_buffer*,
- section .noncache_buffer*,
- rw section HEAP,
- rw section .stack*,
- rw section .sys_stack,
- rw section .svc_stack,
- rw section .irq_stack,
- rw section .fiq_stack,
- rw section .und_stack,
- rw section .abt_stack };
-
-place at address mem: __ICFEDIT_intvec_start__ { block VECTOR_WBLOCK };
-
-place in LDR_PARAM_region { readonly section .loader_param };
-place at start of S_LOADER_STACK_region { block LDR_PRG_RBLOCK };
-place in S_LOADER_STACK_region { section LDR_DATA_RBLOCK, block LDR_DATA_RBLOCK };
-place in S_intvec_region { block VECTOR_RBLOCK };
-place in ROM_region { block USER_PRG_RBLOCK, readonly };
-place in S_RAM_region { block USER_DATA_RBLOCK, block USER_DATA_NONCACHE_RBLOCK };
-
-place at start of D_LOADER_STACK_region { block LDR_PRG_WBLOCK };
-place in D_LOADER_STACK_region { section LDR_DATA_WBLOCK, block LDR_DATA_WBLOCK,
- section LDR_DATA_ZBLOCK, block LDR_DATA_ZBLOCK };
-place in D_LOADER_STACK_region { section SYS_STACK, block SYS_STACK,
- section SVC_STACK, block SVC_STACK,
- section IRQ_STACK, block IRQ_STACK,
- section FIQ_STACK, block FIQ_STACK,
- section UND_STACK, block UND_STACK,
- section ABT_STACK, block ABT_STACK };
-place in RAM_region { block USER_PRG_WBLOCK };
-place in RAM_region { readwrite, last block CSTACK };
-place in RAM_region { block USER_DATA_WBLOCK,
- block USER_DATA_ZBLOCK };
-place in RAM_region { section HEAP_BLOCK, block HEAP_BLOCK,
- section THREAD_STACK, block THREAD_STACK };
-
-place in DATA_NONCACHE_region { block USER_DATA_NONCACHE_WBLOCK };
-place in DMAC_LINK_MODE_region { block DMAC_LINK_MODE_ZBLOCK };
-place in SHARED_NONCACHE_BUFFER_region { block SHARED_NONCACHE_BUFFER_ZBLOCK };
-place in NONCACHE_BUFFER_region { block NONCACHE_BUFFER_ZBLOCK };
-place in ATCM_region { };
-place in BTCM_region { };
-place in SYSTEM_RAM_region { };
-place in SYSTEM_RAM_MIRROR_region { };
-place in XSPI0_CS0_MIRROR_region { };
-place in XSPI0_CS1_MIRROR_region { };
-place in XSPI1_CS0_MIRROR_region { };
-place in XSPI1_CS1_MIRROR_region { };
-place in CS0_MIRROR_region { };
-place in CS2_MIRROR_region { };
-place in CS3_MIRROR_region { };
-place in CS5_MIRROR_region { };
-place in XSPI0_CS0_region { };
-place in XSPI0_CS1_region { };
-place in XSPI1_CS0_region { };
-place in XSPI1_CS1_region { };
-place in CS0_region { };
-place in CS2_region { };
-place in CS3_region { };
-place in CS5_region { };
+include "memory_regions.icf";
+
+/* The memory information for each device is done in memory regions file.
+ * The starting address and length of memory not defined in memory regions file are defined as 0. */
+
+if (isdefinedsymbol(ATCM_START))
+{
+ define symbol ATCM_PRV_START = ATCM_START;
+}
+else
+{
+ define symbol ATCM_PRV_START = 0;
+}
+
+if (isdefinedsymbol(ATCM_LENGTH))
+{
+ define symbol ATCM_PRV_LENGTH = ATCM_LENGTH;
+}
+else
+{
+ define symbol ATCM_PRV_LENGTH = 0;
+}
+
+if (isdefinedsymbol(BTCM_START))
+{
+ define symbol BTCM_PRV_START = BTCM_START;
+}
+else
+{
+ define symbol BTCM_PRV_START = 0;
+}
+
+if (isdefinedsymbol(BTCM_LENGTH))
+{
+ define symbol BTCM_PRV_LENGTH = BTCM_LENGTH;
+}
+else
+{
+ define symbol BTCM_PRV_LENGTH = 0;
+}
+
+if (isdefinedsymbol(SYSTEM_RAM_START))
+{
+ define symbol SYSTEM_RAM_PRV_START = SYSTEM_RAM_START;
+}
+else
+{
+ define symbol SYSTEM_RAM_PRV_START = 0;
+}
+
+if (isdefinedsymbol(SYSTEM_RAM_LENGTH))
+{
+ define symbol SYSTEM_RAM_PRV_LENGTH = SYSTEM_RAM_LENGTH;
+}
+else
+{
+ define symbol SYSTEM_RAM_PRV_LENGTH = 0;
+}
+
+if (isdefinedsymbol(SYSTEM_RAM_MIRROR_START))
+{
+ define symbol SYSTEM_RAM_MIRROR_PRV_START = SYSTEM_RAM_MIRROR_START;
+}
+else
+{
+ define symbol SYSTEM_RAM_MIRROR_PRV_START = 0;
+}
+
+if (isdefinedsymbol(SYSTEM_RAM_MIRROR_LENGTH))
+{
+ define symbol SYSTEM_RAM_MIRROR_PRV_LENGTH = SYSTEM_RAM_MIRROR_LENGTH;
+}
+else
+{
+ define symbol SYSTEM_RAM_MIRROR_PRV_LENGTH = 0;
+}
+
+if (isdefinedsymbol(xSPI0_CS0_SPACE_MIRROR_START))
+{
+ define symbol xSPI0_CS0_SPACE_MIRROR_PRV_START = xSPI0_CS0_SPACE_MIRROR_START;
+}
+else
+{
+ define symbol xSPI0_CS0_SPACE_MIRROR_PRV_START = 0;
+}
+
+if (isdefinedsymbol(xSPI0_CS0_SPACE_MIRROR_LENGTH))
+{
+ define symbol xSPI0_CS0_SPACE_MIRROR_PRV_LENGTH = xSPI0_CS0_SPACE_MIRROR_LENGTH;
+}
+else
+{
+ define symbol xSPI0_CS0_SPACE_MIRROR_PRV_LENGTH = 0;
+}
+
+if (isdefinedsymbol(xSPI0_CS1_SPACE_MIRROR_START))
+{
+ define symbol xSPI0_CS1_SPACE_MIRROR_PRV_START = xSPI0_CS1_SPACE_MIRROR_START;
+}
+else
+{
+ define symbol xSPI0_CS1_SPACE_MIRROR_PRV_START = 0;
+}
+
+if (isdefinedsymbol(xSPI0_CS1_SPACE_MIRROR_LENGTH))
+{
+ define symbol xSPI0_CS1_SPACE_MIRROR_PRV_LENGTH = xSPI0_CS1_SPACE_MIRROR_LENGTH;
+}
+else
+{
+ define symbol xSPI0_CS1_SPACE_MIRROR_PRV_LENGTH = 0;
+}
+
+if (isdefinedsymbol(xSPI1_CS0_SPACE_MIRROR_START))
+{
+ define symbol xSPI1_CS0_SPACE_MIRROR_PRV_START = xSPI1_CS0_SPACE_MIRROR_START;
+}
+else
+{
+ define symbol xSPI1_CS0_SPACE_MIRROR_PRV_START = 0;
+}
+
+if (isdefinedsymbol(xSPI1_CS0_SPACE_MIRROR_LENGTH))
+{
+ define symbol xSPI1_CS0_SPACE_MIRROR_PRV_LENGTH = xSPI1_CS0_SPACE_MIRROR_LENGTH;
+}
+else
+{
+ define symbol xSPI1_CS0_SPACE_MIRROR_PRV_LENGTH = 0;
+}
+
+if (isdefinedsymbol(xSPI1_CS1_SPACE_MIRROR_START))
+{
+ define symbol xSPI1_CS1_SPACE_MIRROR_PRV_START = xSPI1_CS1_SPACE_MIRROR_START;
+}
+else
+{
+ define symbol xSPI1_CS1_SPACE_MIRROR_PRV_START = 0;
+}
+
+if (isdefinedsymbol(xSPI1_CS1_SPACE_MIRROR_LENGTH))
+{
+ define symbol xSPI1_CS1_SPACE_MIRROR_PRV_LENGTH = xSPI1_CS1_SPACE_MIRROR_LENGTH;
+}
+else
+{
+ define symbol xSPI1_CS1_SPACE_MIRROR_PRV_LENGTH = 0;
+}
+
+if (isdefinedsymbol(CS0_SPACE_MIRROR_START))
+{
+ define symbol CS0_SPACE_MIRROR_PRV_START = CS0_SPACE_MIRROR_START;
+}
+else
+{
+ define symbol CS0_SPACE_MIRROR_PRV_START = 0;
+}
+
+if (isdefinedsymbol(CS0_SPACE_MIRROR_LENGTH))
+{
+ define symbol CS0_SPACE_MIRROR_PRV_LENGTH = CS0_SPACE_MIRROR_LENGTH;
+}
+else
+{
+ define symbol CS0_SPACE_MIRROR_PRV_LENGTH = 0;
+}
+
+if (isdefinedsymbol(CS2_SPACE_MIRROR_START))
+{
+ define symbol CS2_SPACE_MIRROR_PRV_START = CS2_SPACE_MIRROR_START;
+}
+else
+{
+ define symbol CS2_SPACE_MIRROR_PRV_START = 0;
+}
+
+if (isdefinedsymbol(CS2_SPACE_MIRROR_LENGTH))
+{
+ define symbol CS2_SPACE_MIRROR_PRV_LENGTH = CS2_SPACE_MIRROR_LENGTH;
+}
+else
+{
+ define symbol CS2_SPACE_MIRROR_PRV_LENGTH = 0;
+}
+
+
+if (isdefinedsymbol(CS3_SPACE_MIRROR_START))
+{
+ define symbol CS3_SPACE_MIRROR_PRV_START = CS3_SPACE_MIRROR_START;
+}
+else
+{
+ define symbol CS3_SPACE_MIRROR_PRV_START = 0;
+}
+
+if (isdefinedsymbol(CS3_SPACE_MIRROR_LENGTH))
+{
+ define symbol CS3_SPACE_MIRROR_PRV_LENGTH = CS3_SPACE_MIRROR_LENGTH;
+}
+else
+{
+ define symbol CS3_SPACE_MIRROR_PRV_LENGTH = 0;
+}
+
+if (isdefinedsymbol(CS5_SPACE_MIRROR_START))
+{
+ define symbol CS5_SPACE_MIRROR_PRV_START = CS5_SPACE_MIRROR_START;
+}
+else
+{
+ define symbol CS5_SPACE_MIRROR_PRV_START = 0;
+}
+
+if (isdefinedsymbol(CS5_SPACE_MIRROR_LENGTH))
+{
+ define symbol CS5_SPACE_MIRROR_PRV_LENGTH = CS5_SPACE_MIRROR_LENGTH;
+}
+else
+{
+ define symbol CS5_SPACE_MIRROR_PRV_LENGTH = 0;
+}
+
+
+if (isdefinedsymbol(xSPI0_CS0_SPACE_START))
+{
+ define symbol xSPI0_CS0_SPACE_PRV_START = xSPI0_CS0_SPACE_START;
+}
+else
+{
+ define symbol xSPI0_CS0_SPACE_PRV_START = 0;
+}
+
+if (isdefinedsymbol(xSPI0_CS0_SPACE_LENGTH))
+{
+ define symbol xSPI0_CS0_SPACE_PRV_LENGTH = xSPI0_CS0_SPACE_LENGTH;
+}
+else
+{
+ define symbol xSPI0_CS0_SPACE_PRV_LENGTH = 0;
+}
+
+if (isdefinedsymbol(xSPI0_CS1_SPACE_START))
+{
+ define symbol xSPI0_CS1_SPACE_PRV_START = xSPI0_CS1_SPACE_START;
+}
+else
+{
+ define symbol xSPI0_CS1_SPACE_PRV_START = 0;
+}
+
+if (isdefinedsymbol(xSPI0_CS1_SPACE_LENGTH))
+{
+ define symbol xSPI0_CS1_SPACE_PRV_LENGTH = xSPI0_CS1_SPACE_LENGTH;
+}
+else
+{
+ define symbol xSPI0_CS1_SPACE_PRV_LENGTH = 0;
+}
+
+if (isdefinedsymbol(xSPI1_CS0_SPACE_START))
+{
+ define symbol xSPI1_CS0_SPACE_PRV_START = xSPI1_CS0_SPACE_START;
+}
+else
+{
+ define symbol xSPI1_CS0_SPACE_PRV_START = 0;
+}
+
+if (isdefinedsymbol(xSPI1_CS0_SPACE_LENGTH))
+{
+ define symbol xSPI1_CS0_SPACE_PRV_LENGTH = xSPI1_CS0_SPACE_LENGTH;
+}
+else
+{
+ define symbol xSPI1_CS0_SPACE_PRV_LENGTH = 0;
+}
+
+if (isdefinedsymbol(xSPI1_CS1_SPACE_START))
+{
+ define symbol xSPI1_CS1_SPACE_PRV_START = xSPI1_CS1_SPACE_START;
+}
+else
+{
+ define symbol xSPI1_CS1_SPACE_PRV_START = 0;
+}
+
+if (isdefinedsymbol(xSPI1_CS1_SPACE_LENGTH))
+{
+ define symbol xSPI1_CS1_SPACE_PRV_LENGTH = xSPI1_CS1_SPACE_LENGTH;
+}
+else
+{
+ define symbol xSPI1_CS1_SPACE_PRV_LENGTH = 0;
+}
+
+if (isdefinedsymbol(CS0_SPACE_START))
+{
+ define symbol CS0_SPACE_PRV_START = CS0_SPACE_START;
+}
+else
+{
+ define symbol CS0_SPACE_PRV_START = 0;
+}
+
+if (isdefinedsymbol(CS0_SPACE_LENGTH))
+{
+ define symbol CS0_SPACE_PRV_LENGTH = CS0_SPACE_LENGTH;
+}
+else
+{
+ define symbol CS0_SPACE_PRV_LENGTH = 0;
+}
+
+if (isdefinedsymbol(CS2_SPACE_START))
+{
+ define symbol CS2_SPACE_PRV_START = CS2_SPACE_START;
+}
+else
+{
+ define symbol CS2_SPACE_PRV_START = 0;
+}
+
+if (isdefinedsymbol(CS2_SPACE_LENGTH))
+{
+ define symbol CS2_SPACE_PRV_LENGTH = CS2_SPACE_LENGTH;
+}
+else
+{
+ define symbol CS2_SPACE_PRV_LENGTH = 0;
+}
+
+if (isdefinedsymbol(CS3_SPACE_START))
+{
+ define symbol CS3_SPACE_PRV_START = CS3_SPACE_START;
+}
+else
+{
+ define symbol CS3_SPACE_PRV_START = 0;
+}
+
+if (isdefinedsymbol(CS3_SPACE_LENGTH))
+{
+ define symbol CS3_SPACE_PRV_LENGTH = CS3_SPACE_LENGTH;
+}
+else
+{
+ define symbol CS3_SPACE_PRV_LENGTH = 0;
+}
+
+if (isdefinedsymbol(CS5_SPACE_START))
+{
+ define symbol CS5_SPACE_PRV_START = CS5_SPACE_START;
+}
+else
+{
+ define symbol CS5_SPACE_PRV_START = 0;
+}
+
+if (isdefinedsymbol(CS5_SPACE_LENGTH))
+{
+ define symbol CS5_SPACE_PRV_LENGTH = CS5_SPACE_LENGTH;
+}
+else
+{
+ define symbol CS5_SPACE_PRV_LENGTH = 0;
+}
+
+define symbol SYSTEM_RAM_END_OFFSET = 0x00048000;
+define symbol FLASH_ADDRESS = xSPI0_CS0_SPACE_PRV_START;
+
+define symbol INTVEC_ADDRESS = ATCM_PRV_START;
+define symbol RAM_ADDRESS = (ATCM_PRV_START + 0x100);
+define symbol RAM_END_ADDRESS = (ATCM_PRV_START + ATCM_PRV_LENGTH - 1);
+define symbol LOADER_STACK_ADDRESS = (BTCM_PRV_START + 0x2000);
+define symbol LOADER_STACK_END_ADDRESS = (BTCM_PRV_START + BTCM_PRV_LENGTH - 1);
+define symbol DATA_NONCACHE_OFFSET = 0x00048000;
+define symbol DATA_NONCACHE_END_OFFSET = 0x00044000;
+define symbol DMAC_LINK_MODE_OFFSET = 0x00044000;
+define symbol DMAC_LINK_MODE_END_OFFSET = 0x00040000;
+define symbol NONCACHE_BUFFER_OFFSET = 0x00020000;
+define symbol NONCACHE_BUFFER_END_OFFSET = 0;
+
+/*###ICF### Section handled by ICF editor, don't touch! ****/
+/*-Editor annotation file-*/
+/* IcfEditorFile="$TOOLKIT_DIR$\config\ide\IcfEditor\a_v1_0.xml" */
+/*-Specials-*/
+define symbol __ICFEDIT_intvec_start__ = INTVEC_ADDRESS;
+/*-Memory Regions-*/
+define symbol __ICFEDIT_region_ROM_start__ = FLASH_ADDRESS + 0x20100;
+define symbol __ICFEDIT_region_ROM_end__ = FLASH_ADDRESS + 0x6FFFF;
+define symbol __ICFEDIT_region_RAM_start__ = RAM_ADDRESS;
+define symbol __ICFEDIT_region_RAM_end__ = RAM_END_ADDRESS;
+/**** End of ICF editor section. ###ICF###*/
+
+/*-Sizes-*/
+define symbol __ICFEDIT_size_cstack__ = 0x200;
+/**** End of ICF editor section. ###ICF###*/
+
+define memory mem with size = 4G;
+define region ROM_region = mem:[from __ICFEDIT_region_ROM_start__ to __ICFEDIT_region_ROM_end__];
+define region RAM_region = mem:[from __ICFEDIT_region_RAM_start__ to __ICFEDIT_region_RAM_end__];
+
+define block CSTACK with alignment = 8, size = __ICFEDIT_size_cstack__ { };
+
+define symbol __region_D_LOADER_STACK_start__ = LOADER_STACK_ADDRESS;
+define symbol __region_D_LOADER_STACK_end__ = LOADER_STACK_END_ADDRESS;
+
+define symbol __region_DATA_NONCACHE_start__ = SYSTEM_RAM_MIRROR_PRV_START + SYSTEM_RAM_MIRROR_PRV_LENGTH - DATA_NONCACHE_OFFSET;
+define symbol __region_DATA_NONCACHE_end__ = SYSTEM_RAM_MIRROR_PRV_START + SYSTEM_RAM_MIRROR_PRV_LENGTH - DATA_NONCACHE_END_OFFSET - 1;
+define symbol __region_DMAC_LINK_MODE_start__ = SYSTEM_RAM_MIRROR_PRV_START + SYSTEM_RAM_MIRROR_PRV_LENGTH - DMAC_LINK_MODE_OFFSET;
+define symbol __region_DMAC_LINK_MODE_end__ = SYSTEM_RAM_MIRROR_PRV_START + SYSTEM_RAM_MIRROR_PRV_LENGTH - DMAC_LINK_MODE_END_OFFSET - 1;
+define symbol __region_SHARED_NONCACHE_BUFFER_start__ = SYSTEM_RAM_MIRROR_PRV_START + SYSTEM_RAM_MIRROR_PRV_LENGTH - 0x00040000;
+define symbol __region_SHARED_NONCACHE_BUFFER_end__ = SYSTEM_RAM_MIRROR_PRV_START + SYSTEM_RAM_MIRROR_PRV_LENGTH - 0x00020000 - 1;
+define symbol __region_NONCACHE_BUFFER_start__ = SYSTEM_RAM_MIRROR_PRV_START + SYSTEM_RAM_MIRROR_PRV_LENGTH - NONCACHE_BUFFER_OFFSET;
+define symbol __region_NONCACHE_BUFFER_end__ = SYSTEM_RAM_MIRROR_PRV_START + SYSTEM_RAM_MIRROR_PRV_LENGTH - NONCACHE_BUFFER_END_OFFSET - 1;
+
+define symbol __region_ATCM_start__ = ATCM_PRV_START;
+define symbol __region_ATCM_end__ = ATCM_PRV_START + ATCM_PRV_LENGTH - 1;
+define symbol __region_BTCM_start__ = BTCM_PRV_START;
+define symbol __region_BTCM_end__ = BTCM_PRV_START + BTCM_PRV_LENGTH - 1;
+define symbol __region_SYSTEM_RAM_start__ = SYSTEM_RAM_PRV_START;
+define symbol __region_SYSTEM_RAM_end__ = SYSTEM_RAM_PRV_START + SYSTEM_RAM_PRV_LENGTH - SYSTEM_RAM_END_OFFSET - 1;
+define symbol __region_SYSTEM_RAM_MIRROR_start__ = SYSTEM_RAM_MIRROR_PRV_START;
+define symbol __region_SYSTEM_RAM_MIRROR_end__ = SYSTEM_RAM_MIRROR_PRV_START + SYSTEM_RAM_MIRROR_PRV_LENGTH - SYSTEM_RAM_END_OFFSET - 1;
+
+define symbol __region_XSPI0_CS0_MIRROR_start__ = xSPI0_CS0_SPACE_MIRROR_PRV_START;
+define symbol __region_XSPI0_CS0_MIRROR_end__ = xSPI0_CS0_SPACE_MIRROR_PRV_START + xSPI0_CS0_SPACE_MIRROR_PRV_LENGTH - 1;
+define symbol __region_XSPI0_CS1_MIRROR_start__ = xSPI0_CS1_SPACE_MIRROR_PRV_START;
+define symbol __region_XSPI0_CS1_MIRROR_end__ = xSPI0_CS1_SPACE_MIRROR_PRV_START + xSPI0_CS1_SPACE_MIRROR_PRV_LENGTH - 1;
+define symbol __region_XSPI1_CS0_MIRROR_start__ = xSPI1_CS0_SPACE_MIRROR_PRV_START;
+define symbol __region_XSPI1_CS0_MIRROR_end__ = xSPI1_CS0_SPACE_MIRROR_PRV_START + xSPI1_CS0_SPACE_MIRROR_PRV_LENGTH - 1;
+define symbol __region_XSPI1_CS1_MIRROR_start__ = xSPI1_CS1_SPACE_MIRROR_PRV_START;
+define symbol __region_XSPI1_CS1_MIRROR_end__ = xSPI1_CS1_SPACE_MIRROR_PRV_START + xSPI1_CS1_SPACE_MIRROR_PRV_LENGTH - 1;
+define symbol __region_CS0_MIRROR_start__ = CS0_SPACE_MIRROR_PRV_START;
+define symbol __region_CS0_MIRROR_end__ = CS0_SPACE_MIRROR_PRV_START + CS0_SPACE_MIRROR_PRV_LENGTH - 1;
+define symbol __region_CS2_MIRROR_start__ = CS2_SPACE_MIRROR_PRV_START;
+define symbol __region_CS2_MIRROR_end__ = CS2_SPACE_MIRROR_PRV_START + CS2_SPACE_MIRROR_PRV_LENGTH - 1;
+define symbol __region_CS3_MIRROR_start__ = CS3_SPACE_MIRROR_PRV_START;
+define symbol __region_CS3_MIRROR_end__ = CS3_SPACE_MIRROR_PRV_START + CS3_SPACE_MIRROR_PRV_LENGTH - 1;
+define symbol __region_CS5_MIRROR_start__ = CS5_SPACE_MIRROR_PRV_START;
+define symbol __region_CS5_MIRROR_end__ = CS5_SPACE_MIRROR_PRV_START + CS5_SPACE_MIRROR_PRV_LENGTH - 1;
+define symbol __region_XSPI0_CS0_start__ = xSPI0_CS0_SPACE_PRV_START;
+define symbol __region_XSPI0_CS0_end__ = xSPI0_CS0_SPACE_PRV_START + xSPI0_CS0_SPACE_PRV_LENGTH - 1;
+define symbol __region_XSPI0_CS1_start__ = xSPI0_CS1_SPACE_PRV_START;
+define symbol __region_XSPI0_CS1_end__ = xSPI0_CS1_SPACE_PRV_START + xSPI0_CS1_SPACE_PRV_LENGTH - 1;
+define symbol __region_XSPI1_CS0_start__ = xSPI1_CS0_SPACE_PRV_START;
+define symbol __region_XSPI1_CS0_end__ = xSPI1_CS0_SPACE_PRV_START + xSPI1_CS0_SPACE_PRV_LENGTH - 1;
+define symbol __region_XSPI1_CS1_start__ = xSPI1_CS1_SPACE_PRV_START;
+define symbol __region_XSPI1_CS1_end__ = xSPI1_CS1_SPACE_PRV_START + xSPI1_CS1_SPACE_PRV_LENGTH - 1;
+define symbol __region_CS0_start__ = CS0_SPACE_PRV_START;
+define symbol __region_CS0_end__ = CS0_SPACE_PRV_START + CS0_SPACE_PRV_LENGTH - 1;
+define symbol __region_CS2_start__ = CS2_SPACE_PRV_START;
+define symbol __region_CS2_end__ = CS2_SPACE_PRV_START + CS2_SPACE_PRV_LENGTH - 1;
+define symbol __region_CS3_start__ = CS3_SPACE_PRV_START;
+define symbol __region_CS3_end__ = CS3_SPACE_PRV_START + CS3_SPACE_PRV_LENGTH - 1;
+define symbol __region_CS5_start__ = CS5_SPACE_PRV_START;
+define symbol __region_CS5_end__ = CS5_SPACE_PRV_START + CS5_SPACE_PRV_LENGTH - 1;
+
+/************** SPI boot mode setting **************/
+define symbol __region_LDR_PARAM_start__ = FLASH_ADDRESS;
+define symbol __region_LDR_PARAM_end__ = FLASH_ADDRESS + 0x0000004B;
+define symbol __region_S_LOADER_STACK_start__ = FLASH_ADDRESS + 0x0000004C;
+define symbol __region_S_LOADER_STACK_end__ = FLASH_ADDRESS + 0x0000804B;
+
+define symbol __region_S_intvec_start__ = FLASH_ADDRESS + 0x20000;
+define symbol __region_S_intvec_end__ = FLASH_ADDRESS + 0x200FF;
+define symbol __region_S_RAM_start__ = FLASH_ADDRESS + 0x70000;
+define symbol __region_S_RAM_end__ = FLASH_ADDRESS + 0x7FFFF;
+/****************************************************/
+
+define region D_LOADER_STACK_region = mem:[from __region_D_LOADER_STACK_start__ to __region_D_LOADER_STACK_end__];
+
+define region LDR_PARAM_region = mem:[from __region_LDR_PARAM_start__ to __region_LDR_PARAM_end__];
+define region S_LOADER_STACK_region = mem:[from __region_S_LOADER_STACK_start__ to __region_S_LOADER_STACK_end__];
+
+define region S_intvec_region = mem:[from __region_S_intvec_start__ to __region_S_intvec_end__];
+define region S_RAM_region = mem:[from __region_S_RAM_start__ to __region_S_RAM_end__];
+
+define region DATA_NONCACHE_region = mem:[from __region_DATA_NONCACHE_start__ to __region_DATA_NONCACHE_end__];
+define region DMAC_LINK_MODE_region = mem:[from __region_DMAC_LINK_MODE_start__ to __region_DMAC_LINK_MODE_end__];
+define region SHARED_NONCACHE_BUFFER_region = mem:[from __region_SHARED_NONCACHE_BUFFER_start__ to __region_SHARED_NONCACHE_BUFFER_end__];
+define region NONCACHE_BUFFER_region = mem:[from __region_NONCACHE_BUFFER_start__ to __region_NONCACHE_BUFFER_end__];
+
+define region ATCM_region = mem:[from __region_ATCM_start__ to __region_ATCM_end__ ];
+define region BTCM_region = mem:[from __region_BTCM_start__ to __region_BTCM_end__ ];
+define region SYSTEM_RAM_region = mem:[from __region_SYSTEM_RAM_start__ to __region_SYSTEM_RAM_end__ ];
+define region SYSTEM_RAM_MIRROR_region = mem:[from __region_SYSTEM_RAM_MIRROR_start__ to __region_SYSTEM_RAM_MIRROR_end__ ];
+define region XSPI0_CS0_MIRROR_region = mem:[from __region_XSPI0_CS0_MIRROR_start__ to __region_XSPI0_CS0_MIRROR_end__ ];
+define region XSPI0_CS1_MIRROR_region = mem:[from __region_XSPI0_CS1_MIRROR_start__ to __region_XSPI0_CS1_MIRROR_end__ ];
+define region XSPI1_CS0_MIRROR_region = mem:[from __region_XSPI1_CS0_MIRROR_start__ to __region_XSPI1_CS0_MIRROR_end__ ];
+define region XSPI1_CS1_MIRROR_region = mem:[from __region_XSPI1_CS1_MIRROR_start__ to __region_XSPI1_CS1_MIRROR_end__ ];
+define region CS0_MIRROR_region = mem:[from __region_CS0_MIRROR_start__ to __region_CS0_MIRROR_end__ ];
+define region CS2_MIRROR_region = mem:[from __region_CS2_MIRROR_start__ to __region_CS2_MIRROR_end__ ];
+define region CS3_MIRROR_region = mem:[from __region_CS3_MIRROR_start__ to __region_CS3_MIRROR_end__ ];
+define region CS5_MIRROR_region = mem:[from __region_CS5_MIRROR_start__ to __region_CS5_MIRROR_end__ ];
+define region XSPI0_CS0_region = mem:[from __region_XSPI0_CS0_start__ to __region_XSPI0_CS0_end__ ];
+define region XSPI0_CS1_region = mem:[from __region_XSPI0_CS1_start__ to __region_XSPI0_CS1_end__ ];
+define region XSPI1_CS0_region = mem:[from __region_XSPI1_CS0_start__ to __region_XSPI1_CS0_end__ ];
+define region XSPI1_CS1_region = mem:[from __region_XSPI1_CS1_start__ to __region_XSPI1_CS1_end__ ];
+define region CS0_region = mem:[from __region_CS0_start__ to __region_CS0_end__ ];
+define region CS2_region = mem:[from __region_CS2_start__ to __region_CS2_end__ ];
+define region CS3_region = mem:[from __region_CS3_start__ to __region_CS3_end__ ];
+define region CS5_region = mem:[from __region_CS5_start__ to __region_CS5_end__ ];
+
+define block LDR_PRG_RBLOCK with fixed order
+ { ro code section .loader_text_init object startup_core.o,
+ ro code object startup_core.o,
+ ro code object system_core.o,
+ ro code object startup.o,
+ ro code object system.o,
+ ro code object bsp_clocks.o,
+ ro code object bsp_irq_core.o,
+ ro code object bsp_irq.o,
+ ro code object bsp_register_protection.o,
+ ro code object r_ioport.o,
+ ro code object bsp_cache.o,
+ ro code section .warm_start_init }
+ except { ro code section .intvec_init,
+ ro code section .reset_handler_init };
+define block LDR_PRG_WBLOCK with fixed order
+ { rw code section .loader_text object startup_core.o,
+ rw code object startup_core.o,
+ rw code object system_core.o,
+ rw code object startup.o,
+ rw code object system.o,
+ rw code object bsp_clocks.o,
+ rw code object bsp_irq_core.o,
+ rw code object bsp_irq.o,
+ rw code object bsp_register_protection.o,
+ rw code object r_ioport.o,
+ rw code object bsp_cache.o,
+ rw code section .warm_start }
+ except { rw code section .intvec,
+ rw code section .reset_handler };
+define block LDR_DATA_ZBLOCK with alignment = 4
+ { section .bss object startup_core.o,
+ section .bss object system_core.o,
+ section .bss object startup.o,
+ section .bss object system.o,
+ section .bss object bsp_clocks.o,
+ section .bss object bsp_irq_core.o,
+ section .bss object bsp_irq.o,
+ section .bss object bsp_register_protection.o,
+ section .bss object r_ioport.o,
+ section .bss object bsp_cache.o,
+ section .bss object bsp_io.o };
+define block LDR_DATA_RBLOCK with fixed order, alignment = 4
+ { section .data_init object startup_core.o,
+ section .data_init object system_core.o,
+ section .data_init object startup.o,
+ section .data_init object system.o,
+ section .data_init object bsp_clocks.o,
+ section .data_init object bsp_irq_core.o,
+ section .data_init object bsp_irq.o,
+ section .data_init object bsp_register_protection.o,
+ section .data_init object r_ioport.o,
+ section .data_init object bsp_cache.o,
+ section .rodata_init object system_core.o };
+define block LDR_DATA_WBLOCK with fixed order, alignment = 4
+ { section .data object startup_core.o,
+ section .data object system_core.o,
+ section .data object startup.o,
+ section .data object system.o,
+ section .data object bsp_clocks.o,
+ section .data object bsp_irq_core.o,
+ section .data object bsp_irq.o,
+ section .data object bsp_register_protection.o,
+ section .data object r_ioport.o,
+ section .data object bsp_cache.o,
+ section .rodata object system_core.o };
+
+define block HEAP_BLOCK with alignment = 8 { rw section HEAP };
+define block THREAD_STACK with alignment = 8 { rw section .stack* };
+define block SYS_STACK with alignment = 8 { rw section .sys_stack };
+define block SVC_STACK with alignment = 8 { rw section .svc_stack };
+define block IRQ_STACK with alignment = 8 { rw section .irq_stack };
+define block FIQ_STACK with alignment = 8 { rw section .fiq_stack };
+define block UND_STACK with alignment = 8 { rw section .und_stack };
+define block ABT_STACK with alignment = 8 { rw section .abt_stack };
+
+define block VECTOR_RBLOCK with alignment = 32 { ro code section .intvec_init};
+define block VECTOR_WBLOCK with alignment = 32 { rw code section .intvec};
+define block USER_PRG_RBLOCK with alignment = 4 { ro code };
+define block USER_PRG_WBLOCK with alignment = 4 { rw code };
+define block USER_DATA_ZBLOCK with alignment = 4 { section .bss };
+define block USER_DATA_RBLOCK with fixed order, alignment = 4
+ { section .data_init,
+ section __DLIB_PERTHREAD_init,
+ section .rodata_init,
+ section .version_init };
+define block USER_DATA_WBLOCK with fixed order, alignment = 4
+ { section .data,
+ section __DLIB_PERTHREAD,
+ section .rodata,
+ section .version };
+define block USER_DATA_NONCACHE_RBLOCK with alignment = 4 { section .data_noncache_init };
+define block USER_DATA_NONCACHE_WBLOCK with alignment = 4 { section .data_noncache };
+define block DMAC_LINK_MODE_ZBLOCK with alignment = 4 { section .dmac_link_mode* };
+define block SHARED_NONCACHE_BUFFER_ZBLOCK with alignment = 32 { section .shared_noncache_buffer* };
+define block NONCACHE_BUFFER_ZBLOCK with alignment = 32 { section .noncache_buffer* };
+
+initialize manually { ro code object startup_core.o,
+ ro code object system_core.o,
+ ro code object startup.o,
+ ro code object system.o,
+ ro code object bsp_clocks.o,
+ ro code object bsp_irq_core.o,
+ ro code object bsp_irq.o,
+ ro code object bsp_register_protection.o,
+ ro code object r_ioport.o,
+ ro code object bsp_cache.o,
+ ro code section .intvec,
+ ro code section .reset_handler,
+ ro code section .warm_start,
+ ro code,
+ section .data,
+ section __DLIB_PERTHREAD,
+ section .rodata,
+ section .version,
+ section .data_noncache };
+
+do not initialize { section .noinit,
+ section .bss,
+ section .dmac_link_mode*,
+ section .shared_noncache_buffer*,
+ section .noncache_buffer*,
+ rw section HEAP,
+ rw section .stack*,
+ rw section .sys_stack,
+ rw section .svc_stack,
+ rw section .irq_stack,
+ rw section .fiq_stack,
+ rw section .und_stack,
+ rw section .abt_stack };
+
+place at address mem: __ICFEDIT_intvec_start__ { block VECTOR_WBLOCK };
+
+place in LDR_PARAM_region { readonly section .loader_param };
+place at start of S_LOADER_STACK_region { block LDR_PRG_RBLOCK };
+place in S_LOADER_STACK_region { section LDR_DATA_RBLOCK, block LDR_DATA_RBLOCK };
+place in S_intvec_region { block VECTOR_RBLOCK };
+place in ROM_region { block USER_PRG_RBLOCK, readonly };
+place in S_RAM_region { block USER_DATA_RBLOCK, block USER_DATA_NONCACHE_RBLOCK };
+
+place at start of D_LOADER_STACK_region { block LDR_PRG_WBLOCK };
+place in D_LOADER_STACK_region { section LDR_DATA_WBLOCK, block LDR_DATA_WBLOCK,
+ section LDR_DATA_ZBLOCK, block LDR_DATA_ZBLOCK };
+place in D_LOADER_STACK_region { section SYS_STACK, block SYS_STACK,
+ section SVC_STACK, block SVC_STACK,
+ section IRQ_STACK, block IRQ_STACK,
+ section FIQ_STACK, block FIQ_STACK,
+ section UND_STACK, block UND_STACK,
+ section ABT_STACK, block ABT_STACK };
+place in RAM_region { block USER_PRG_WBLOCK };
+place in RAM_region { readwrite, last block CSTACK };
+place in RAM_region { block USER_DATA_WBLOCK,
+ block USER_DATA_ZBLOCK };
+place in RAM_region { section HEAP_BLOCK, block HEAP_BLOCK,
+ section THREAD_STACK, block THREAD_STACK };
+
+place in DATA_NONCACHE_region { block USER_DATA_NONCACHE_WBLOCK };
+place in DMAC_LINK_MODE_region { block DMAC_LINK_MODE_ZBLOCK };
+place in SHARED_NONCACHE_BUFFER_region { block SHARED_NONCACHE_BUFFER_ZBLOCK };
+place in NONCACHE_BUFFER_region { block NONCACHE_BUFFER_ZBLOCK };
+place in ATCM_region { };
+place in BTCM_region { };
+place in SYSTEM_RAM_region { };
+place in SYSTEM_RAM_MIRROR_region { };
+place in XSPI0_CS0_MIRROR_region { };
+place in XSPI0_CS1_MIRROR_region { };
+place in XSPI1_CS0_MIRROR_region { };
+place in XSPI1_CS1_MIRROR_region { };
+place in CS0_MIRROR_region { };
+place in CS2_MIRROR_region { };
+place in CS3_MIRROR_region { };
+place in CS5_MIRROR_region { };
+place in XSPI0_CS0_region { };
+place in XSPI0_CS1_region { };
+place in XSPI1_CS0_region { };
+place in XSPI1_CS1_region { };
+place in CS0_region { };
+place in CS2_region { };
+place in CS3_region { };
+place in CS5_region { };
diff --git a/bsp/renesas/rzn2l_rsk/script/fsp_xspi0_boot.ld b/bsp/renesas/rzn2l_rsk/script/fsp_xspi0_boot.ld
index d0ee38a658..ef2a35fc4c 100644
--- a/bsp/renesas/rzn2l_rsk/script/fsp_xspi0_boot.ld
+++ b/bsp/renesas/rzn2l_rsk/script/fsp_xspi0_boot.ld
@@ -1,12 +1,47 @@
/*
Linker File for Renesas RZ/N2L FSP
*/
-
-INCLUDE memory_regions.ld
-
/* The memory information for each device is done in memory regions file.
* The starting address and length of memory not defined in memory regions file are defined as 0. */
+/* generated memory regions file - do not edit */
+ATCM_START = 0x00000000;
+ATCM_LENGTH = 0x20000;
+BTCM_START = 0x00100000;
+BTCM_LENGTH = 0x20000;
+SYSTEM_RAM_START = 0x10000000;
+SYSTEM_RAM_LENGTH = 0x180000;
+SYSTEM_RAM_MIRROR_START = 0x30000000;
+SYSTEM_RAM_MIRROR_LENGTH = 0x180000;
+xSPI0_CS0_SPACE_MIRROR_START = 0x40000000;
+xSPI0_CS0_SPACE_MIRROR_LENGTH = 0x4000000;
+xSPI0_CS1_SPACE_MIRROR_START = 0x44000000;
+xSPI0_CS1_SPACE_MIRROR_LENGTH = 0x4000000;
+xSPI1_CS0_SPACE_MIRROR_START = 0x48000000;
+xSPI1_CS0_SPACE_MIRROR_LENGTH = 0x4000000;
+CS0_SPACE_MIRROR_START = 0x50000000;
+CS0_SPACE_MIRROR_LENGTH = 0x4000000;
+CS2_SPACE_MIRROR_START = 0x54000000;
+CS2_SPACE_MIRROR_LENGTH = 0x4000000;
+CS3_SPACE_MIRROR_START = 0x58000000;
+CS3_SPACE_MIRROR_LENGTH = 0x4000000;
+CS5_SPACE_MIRROR_START = 0x5C000000;
+CS5_SPACE_MIRROR_LENGTH = 0x4000000;
+xSPI0_CS0_SPACE_START = 0x60000000;
+xSPI0_CS0_SPACE_LENGTH = 0x4000000;
+xSPI0_CS1_SPACE_START = 0x64000000;
+xSPI0_CS1_SPACE_LENGTH = 0x4000000;
+xSPI1_CS0_SPACE_START = 0x68000000;
+xSPI1_CS0_SPACE_LENGTH = 0x4000000;
+CS0_SPACE_START = 0x70000000;
+CS0_SPACE_LENGTH = 0x4000000;
+CS2_SPACE_START = 0x74000000;
+CS2_SPACE_LENGTH = 0x4000000;
+CS3_SPACE_START = 0x78000000;
+CS3_SPACE_LENGTH = 0x4000000;
+CS5_SPACE_START = 0x7C000000;
+CS5_SPACE_LENGTH = 0x4000000;
+
ATCM_PRV_START = DEFINED(ATCM_START) ? ATCM_START : 0;
ATCM_PRV_LENGTH = DEFINED(ATCM_LENGTH) ? ATCM_LENGTH : 0;
BTCM_PRV_START = DEFINED(BTCM_START) ? BTCM_START : 0;
@@ -51,13 +86,13 @@ CS5_SPACE_PRV_LENGTH = DEFINED(CS5_SPACE_LENGTH) ? CS5_SPACE_LENGTH : 0;
LOADER_PARAM_ADDRESS = xSPI0_CS0_SPACE_PRV_START;
FLASH_CONTENTS_ADDRESS = LOADER_PARAM_ADDRESS + 0x0000004C;
LOADER_TEXT_ADDRESS = 0x00102000;
-INTVEC_ADDRESS = 0x00000000;
-TEXT_ADDRESS = 0x00000100;
+INTVEC_ADDRESS = 0x10000000;
+TEXT_ADDRESS = 0x10020000;
NONCACHE_BUFFER_OFFSET = 0x00020000;
DMAC_LINK_MODE_OFFSET = 0x00044000;
DATA_NONCACHE_OFFSET = 0x00048000;
-RAM_START = ATCM_PRV_START;
-RAM_LENGTH = ATCM_PRV_LENGTH;
+RAM_START = SYSTEM_RAM_PRV_START;
+RAM_LENGTH = SYSTEM_RAM_PRV_LENGTH;
LOADER_START = BTCM_PRV_START;
LOADER_LENGTH = BTCM_PRV_LENGTH;
@@ -205,22 +240,37 @@ SECTIONS
*(.dtors)
_dtor_end = .;
+ /* section information for utest */
+ . = ALIGN(4);
+ __rt_utest_tc_tab_start = .;
+ KEEP(*(UtestTcTab))
+ __rt_utest_tc_tab_end = .;
- /* section information for finsh shell */
- . = ALIGN(4);
- __fsymtab_start = .;
- KEEP(*(FSymTab))
- __fsymtab_end = .;
-
- . = ALIGN(4);
- __vsymtab_start = .;
- KEEP(*(VSymTab))
- __vsymtab_end = .;
-
-
-
- . = ALIGN(4);
- KEEP(*(FalPartTable))
+ /* section information for finsh shell */
+ . = ALIGN(4);
+ __fsymtab_start = .;
+ KEEP(*(FSymTab))
+ __fsymtab_end = .;
+
+ . = ALIGN(4);
+ __vsymtab_start = .;
+ KEEP(*(VSymTab))
+ __vsymtab_end = .;
+
+ /* section information for initial. */
+ . = ALIGN(4);
+ __rt_init_start = .;
+ KEEP(*(SORT(.rti_fn*)))
+ __rt_init_end = .;
+
+ /* new GCC version uses .init_array */
+ PROVIDE(__ctors_start__ = .);
+ KEEP (*(SORT(.init_array.*)))
+ KEEP (*(.init_array))
+ PROVIDE(__ctors_end__ = .);
+
+ . = ALIGN(4);
+ KEEP(*(FalPartTable))
KEEP(*(.eh_frame*))
} > RAM
@@ -310,7 +360,7 @@ SECTIONS
/* Place the STD heap here. */
KEEP(*(.heap))
__HeapLimit = .;
- } > ATCM
+ } > RAM
.thread_stack (NOLOAD):
{
. = ALIGN(8);
diff --git a/bsp/renesas/rzn2l_rsk/script/fsp_xspi0_boot_systemRAM.icf b/bsp/renesas/rzn2l_rsk/script/fsp_xspi0_boot_systemRAM.icf
deleted file mode 100644
index 0e3f984c5f..0000000000
--- a/bsp/renesas/rzn2l_rsk/script/fsp_xspi0_boot_systemRAM.icf
+++ /dev/null
@@ -1,699 +0,0 @@
-include "memory_regions.icf";
-
-/* The memory information for each device is done in memory regions file.
- * The starting address and length of memory not defined in memory regions file are defined as 0. */
-
-if (isdefinedsymbol(ATCM_START))
-{
- define symbol ATCM_PRV_START = ATCM_START;
-}
-else
-{
- define symbol ATCM_PRV_START = 0;
-}
-
-if (isdefinedsymbol(ATCM_LENGTH))
-{
- define symbol ATCM_PRV_LENGTH = ATCM_LENGTH;
-}
-else
-{
- define symbol ATCM_PRV_LENGTH = 0;
-}
-
-if (isdefinedsymbol(BTCM_START))
-{
- define symbol BTCM_PRV_START = BTCM_START;
-}
-else
-{
- define symbol BTCM_PRV_START = 0;
-}
-
-if (isdefinedsymbol(BTCM_LENGTH))
-{
- define symbol BTCM_PRV_LENGTH = BTCM_LENGTH;
-}
-else
-{
- define symbol BTCM_PRV_LENGTH = 0;
-}
-
-if (isdefinedsymbol(SYSTEM_RAM_START))
-{
- define symbol SYSTEM_RAM_PRV_START = SYSTEM_RAM_START;
-}
-else
-{
- define symbol SYSTEM_RAM_PRV_START = 0;
-}
-
-if (isdefinedsymbol(SYSTEM_RAM_LENGTH))
-{
- define symbol SYSTEM_RAM_PRV_LENGTH = SYSTEM_RAM_LENGTH;
-}
-else
-{
- define symbol SYSTEM_RAM_PRV_LENGTH = 0;
-}
-
-if (isdefinedsymbol(SYSTEM_RAM_MIRROR_START))
-{
- define symbol SYSTEM_RAM_MIRROR_PRV_START = SYSTEM_RAM_MIRROR_START;
-}
-else
-{
- define symbol SYSTEM_RAM_MIRROR_PRV_START = 0;
-}
-
-if (isdefinedsymbol(SYSTEM_RAM_MIRROR_LENGTH))
-{
- define symbol SYSTEM_RAM_MIRROR_PRV_LENGTH = SYSTEM_RAM_MIRROR_LENGTH;
-}
-else
-{
- define symbol SYSTEM_RAM_MIRROR_PRV_LENGTH = 0;
-}
-
-if (isdefinedsymbol(xSPI0_CS0_SPACE_MIRROR_START))
-{
- define symbol xSPI0_CS0_SPACE_MIRROR_PRV_START = xSPI0_CS0_SPACE_MIRROR_START;
-}
-else
-{
- define symbol xSPI0_CS0_SPACE_MIRROR_PRV_START = 0;
-}
-
-if (isdefinedsymbol(xSPI0_CS0_SPACE_MIRROR_LENGTH))
-{
- define symbol xSPI0_CS0_SPACE_MIRROR_PRV_LENGTH = xSPI0_CS0_SPACE_MIRROR_LENGTH;
-}
-else
-{
- define symbol xSPI0_CS0_SPACE_MIRROR_PRV_LENGTH = 0;
-}
-
-if (isdefinedsymbol(xSPI0_CS1_SPACE_MIRROR_START))
-{
- define symbol xSPI0_CS1_SPACE_MIRROR_PRV_START = xSPI0_CS1_SPACE_MIRROR_START;
-}
-else
-{
- define symbol xSPI0_CS1_SPACE_MIRROR_PRV_START = 0;
-}
-
-if (isdefinedsymbol(xSPI0_CS1_SPACE_MIRROR_LENGTH))
-{
- define symbol xSPI0_CS1_SPACE_MIRROR_PRV_LENGTH = xSPI0_CS1_SPACE_MIRROR_LENGTH;
-}
-else
-{
- define symbol xSPI0_CS1_SPACE_MIRROR_PRV_LENGTH = 0;
-}
-
-if (isdefinedsymbol(xSPI1_CS0_SPACE_MIRROR_START))
-{
- define symbol xSPI1_CS0_SPACE_MIRROR_PRV_START = xSPI1_CS0_SPACE_MIRROR_START;
-}
-else
-{
- define symbol xSPI1_CS0_SPACE_MIRROR_PRV_START = 0;
-}
-
-if (isdefinedsymbol(xSPI1_CS0_SPACE_MIRROR_LENGTH))
-{
- define symbol xSPI1_CS0_SPACE_MIRROR_PRV_LENGTH = xSPI1_CS0_SPACE_MIRROR_LENGTH;
-}
-else
-{
- define symbol xSPI1_CS0_SPACE_MIRROR_PRV_LENGTH = 0;
-}
-
-if (isdefinedsymbol(xSPI1_CS1_SPACE_MIRROR_START))
-{
- define symbol xSPI1_CS1_SPACE_MIRROR_PRV_START = xSPI1_CS1_SPACE_MIRROR_START;
-}
-else
-{
- define symbol xSPI1_CS1_SPACE_MIRROR_PRV_START = 0;
-}
-
-if (isdefinedsymbol(xSPI1_CS1_SPACE_MIRROR_LENGTH))
-{
- define symbol xSPI1_CS1_SPACE_MIRROR_PRV_LENGTH = xSPI1_CS1_SPACE_MIRROR_LENGTH;
-}
-else
-{
- define symbol xSPI1_CS1_SPACE_MIRROR_PRV_LENGTH = 0;
-}
-
-if (isdefinedsymbol(CS0_SPACE_MIRROR_START))
-{
- define symbol CS0_SPACE_MIRROR_PRV_START = CS0_SPACE_MIRROR_START;
-}
-else
-{
- define symbol CS0_SPACE_MIRROR_PRV_START = 0;
-}
-
-if (isdefinedsymbol(CS0_SPACE_MIRROR_LENGTH))
-{
- define symbol CS0_SPACE_MIRROR_PRV_LENGTH = CS0_SPACE_MIRROR_LENGTH;
-}
-else
-{
- define symbol CS0_SPACE_MIRROR_PRV_LENGTH = 0;
-}
-
-if (isdefinedsymbol(CS2_SPACE_MIRROR_START))
-{
- define symbol CS2_SPACE_MIRROR_PRV_START = CS2_SPACE_MIRROR_START;
-}
-else
-{
- define symbol CS2_SPACE_MIRROR_PRV_START = 0;
-}
-
-if (isdefinedsymbol(CS2_SPACE_MIRROR_LENGTH))
-{
- define symbol CS2_SPACE_MIRROR_PRV_LENGTH = CS2_SPACE_MIRROR_LENGTH;
-}
-else
-{
- define symbol CS2_SPACE_MIRROR_PRV_LENGTH = 0;
-}
-
-
-if (isdefinedsymbol(CS3_SPACE_MIRROR_START))
-{
- define symbol CS3_SPACE_MIRROR_PRV_START = CS3_SPACE_MIRROR_START;
-}
-else
-{
- define symbol CS3_SPACE_MIRROR_PRV_START = 0;
-}
-
-if (isdefinedsymbol(CS3_SPACE_MIRROR_LENGTH))
-{
- define symbol CS3_SPACE_MIRROR_PRV_LENGTH = CS3_SPACE_MIRROR_LENGTH;
-}
-else
-{
- define symbol CS3_SPACE_MIRROR_PRV_LENGTH = 0;
-}
-
-if (isdefinedsymbol(CS5_SPACE_MIRROR_START))
-{
- define symbol CS5_SPACE_MIRROR_PRV_START = CS5_SPACE_MIRROR_START;
-}
-else
-{
- define symbol CS5_SPACE_MIRROR_PRV_START = 0;
-}
-
-if (isdefinedsymbol(CS5_SPACE_MIRROR_LENGTH))
-{
- define symbol CS5_SPACE_MIRROR_PRV_LENGTH = CS5_SPACE_MIRROR_LENGTH;
-}
-else
-{
- define symbol CS5_SPACE_MIRROR_PRV_LENGTH = 0;
-}
-
-
-if (isdefinedsymbol(xSPI0_CS0_SPACE_START))
-{
- define symbol xSPI0_CS0_SPACE_PRV_START = xSPI0_CS0_SPACE_START;
-}
-else
-{
- define symbol xSPI0_CS0_SPACE_PRV_START = 0;
-}
-
-if (isdefinedsymbol(xSPI0_CS0_SPACE_LENGTH))
-{
- define symbol xSPI0_CS0_SPACE_PRV_LENGTH = xSPI0_CS0_SPACE_LENGTH;
-}
-else
-{
- define symbol xSPI0_CS0_SPACE_PRV_LENGTH = 0;
-}
-
-if (isdefinedsymbol(xSPI0_CS1_SPACE_START))
-{
- define symbol xSPI0_CS1_SPACE_PRV_START = xSPI0_CS1_SPACE_START;
-}
-else
-{
- define symbol xSPI0_CS1_SPACE_PRV_START = 0;
-}
-
-if (isdefinedsymbol(xSPI0_CS1_SPACE_LENGTH))
-{
- define symbol xSPI0_CS1_SPACE_PRV_LENGTH = xSPI0_CS1_SPACE_LENGTH;
-}
-else
-{
- define symbol xSPI0_CS1_SPACE_PRV_LENGTH = 0;
-}
-
-if (isdefinedsymbol(xSPI1_CS0_SPACE_START))
-{
- define symbol xSPI1_CS0_SPACE_PRV_START = xSPI1_CS0_SPACE_START;
-}
-else
-{
- define symbol xSPI1_CS0_SPACE_PRV_START = 0;
-}
-
-if (isdefinedsymbol(xSPI1_CS0_SPACE_LENGTH))
-{
- define symbol xSPI1_CS0_SPACE_PRV_LENGTH = xSPI1_CS0_SPACE_LENGTH;
-}
-else
-{
- define symbol xSPI1_CS0_SPACE_PRV_LENGTH = 0;
-}
-
-if (isdefinedsymbol(xSPI1_CS1_SPACE_START))
-{
- define symbol xSPI1_CS1_SPACE_PRV_START = xSPI1_CS1_SPACE_START;
-}
-else
-{
- define symbol xSPI1_CS1_SPACE_PRV_START = 0;
-}
-
-if (isdefinedsymbol(xSPI1_CS1_SPACE_LENGTH))
-{
- define symbol xSPI1_CS1_SPACE_PRV_LENGTH = xSPI1_CS1_SPACE_LENGTH;
-}
-else
-{
- define symbol xSPI1_CS1_SPACE_PRV_LENGTH = 0;
-}
-
-if (isdefinedsymbol(CS0_SPACE_START))
-{
- define symbol CS0_SPACE_PRV_START = CS0_SPACE_START;
-}
-else
-{
- define symbol CS0_SPACE_PRV_START = 0;
-}
-
-if (isdefinedsymbol(CS0_SPACE_LENGTH))
-{
- define symbol CS0_SPACE_PRV_LENGTH = CS0_SPACE_LENGTH;
-}
-else
-{
- define symbol CS0_SPACE_PRV_LENGTH = 0;
-}
-
-if (isdefinedsymbol(CS2_SPACE_START))
-{
- define symbol CS2_SPACE_PRV_START = CS2_SPACE_START;
-}
-else
-{
- define symbol CS2_SPACE_PRV_START = 0;
-}
-
-if (isdefinedsymbol(CS2_SPACE_LENGTH))
-{
- define symbol CS2_SPACE_PRV_LENGTH = CS2_SPACE_LENGTH;
-}
-else
-{
- define symbol CS2_SPACE_PRV_LENGTH = 0;
-}
-
-if (isdefinedsymbol(CS3_SPACE_START))
-{
- define symbol CS3_SPACE_PRV_START = CS3_SPACE_START;
-}
-else
-{
- define symbol CS3_SPACE_PRV_START = 0;
-}
-
-if (isdefinedsymbol(CS3_SPACE_LENGTH))
-{
- define symbol CS3_SPACE_PRV_LENGTH = CS3_SPACE_LENGTH;
-}
-else
-{
- define symbol CS3_SPACE_PRV_LENGTH = 0;
-}
-
-if (isdefinedsymbol(CS5_SPACE_START))
-{
- define symbol CS5_SPACE_PRV_START = CS5_SPACE_START;
-}
-else
-{
- define symbol CS5_SPACE_PRV_START = 0;
-}
-
-if (isdefinedsymbol(CS5_SPACE_LENGTH))
-{
- define symbol CS5_SPACE_PRV_LENGTH = CS5_SPACE_LENGTH;
-}
-else
-{
- define symbol CS5_SPACE_PRV_LENGTH = 0;
-}
-
-define symbol SYSTEM_RAM_END_OFFSET = 0x00048000;
-define symbol FLASH_ADDRESS = xSPI0_CS0_SPACE_PRV_START;
-
-/*
-define symbol INTVEC_ADDRESS = ATCM_PRV_START;
-define symbol RAM_ADDRESS = (ATCM_PRV_START + 0x100);
-define symbol RAM_END_ADDRESS = (ATCM_PRV_START + ATCM_PRV_LENGTH - 1);
-define symbol LOADER_STACK_ADDRESS = (BTCM_PRV_START + 0x2000);
-define symbol LOADER_STACK_END_ADDRESS = (BTCM_PRV_START + BTCM_PRV_LENGTH - 1);
-define symbol DATA_NONCACHE_OFFSET = 0x00048000;
-define symbol DATA_NONCACHE_END_OFFSET = 0x00044000;
-define symbol DMAC_LINK_MODE_OFFSET = 0x00044000;
-define symbol DMAC_LINK_MODE_END_OFFSET = 0x00040000;
-define symbol NONCACHE_BUFFER_OFFSET = 0x00020000;
-define symbol NONCACHE_BUFFER_END_OFFSET = 0;
-*/
-/************* Override define symbol to place EtherCAT protocol into SystemRAM ************/
-define symbol INTVEC_ADDRESS = SYSTEM_RAM_PRV_START;
-define symbol RAM_ADDRESS = (SYSTEM_RAM_PRV_START + 0x100);
-define symbol RAM_END_ADDRESS = (SYSTEM_RAM_PRV_START + SYSTEM_RAM_PRV_LENGTH - 1);
-define symbol LOADER_STACK_ADDRESS = (BTCM_PRV_START + 0x2000);
-define symbol LOADER_STACK_END_ADDRESS = (BTCM_PRV_START + BTCM_PRV_LENGTH - 1);
-define symbol DATA_NONCACHE_OFFSET = 0x00048000;
-define symbol DATA_NONCACHE_END_OFFSET = 0x00044000;
-define symbol DMAC_LINK_MODE_OFFSET = 0x00044000;
-define symbol DMAC_LINK_MODE_END_OFFSET = 0x00040000;
-define symbol NONCACHE_BUFFER_OFFSET = 0x00020000;
-define symbol NONCACHE_BUFFER_END_OFFSET = 0;
-/*********************************************************************************************/
-
-/*###ICF### Section handled by ICF editor, don't touch! ****/
-/*-Editor annotation file-*/
-/* IcfEditorFile="$TOOLKIT_DIR$\config\ide\IcfEditor\a_v1_0.xml" */
-/*-Specials-*/
-define symbol __ICFEDIT_intvec_start__ = INTVEC_ADDRESS;
-/*-Memory Regions-*/
-define symbol __ICFEDIT_region_ROM_start__ = FLASH_ADDRESS + 0x20100;
-define symbol __ICFEDIT_region_ROM_end__ = FLASH_ADDRESS + 0x6FFFF;
-define symbol __ICFEDIT_region_RAM_start__ = RAM_ADDRESS;
-define symbol __ICFEDIT_region_RAM_end__ = RAM_END_ADDRESS;
-/**** End of ICF editor section. ###ICF###*/
-
-/*-Sizes-*/
-define symbol __ICFEDIT_size_cstack__ = 0x200;
-/**** End of ICF editor section. ###ICF###*/
-
-define memory mem with size = 4G;
-define region ROM_region = mem:[from __ICFEDIT_region_ROM_start__ to __ICFEDIT_region_ROM_end__];
-define region RAM_region = mem:[from __ICFEDIT_region_RAM_start__ to __ICFEDIT_region_RAM_end__];
-
-define block CSTACK with alignment = 8, size = __ICFEDIT_size_cstack__ { };
-
-define symbol __region_D_LOADER_STACK_start__ = LOADER_STACK_ADDRESS;
-define symbol __region_D_LOADER_STACK_end__ = LOADER_STACK_END_ADDRESS;
-
-define symbol __region_DATA_NONCACHE_start__ = SYSTEM_RAM_MIRROR_PRV_START + SYSTEM_RAM_MIRROR_PRV_LENGTH - DATA_NONCACHE_OFFSET;
-define symbol __region_DATA_NONCACHE_end__ = SYSTEM_RAM_MIRROR_PRV_START + SYSTEM_RAM_MIRROR_PRV_LENGTH - DATA_NONCACHE_END_OFFSET - 1;
-define symbol __region_DMAC_LINK_MODE_start__ = SYSTEM_RAM_MIRROR_PRV_START + SYSTEM_RAM_MIRROR_PRV_LENGTH - DMAC_LINK_MODE_OFFSET;
-define symbol __region_DMAC_LINK_MODE_end__ = SYSTEM_RAM_MIRROR_PRV_START + SYSTEM_RAM_MIRROR_PRV_LENGTH - DMAC_LINK_MODE_END_OFFSET - 1;
-define symbol __region_SHARED_NONCACHE_BUFFER_start__ = SYSTEM_RAM_MIRROR_PRV_START + SYSTEM_RAM_MIRROR_PRV_LENGTH - 0x00040000;
-define symbol __region_SHARED_NONCACHE_BUFFER_end__ = SYSTEM_RAM_MIRROR_PRV_START + SYSTEM_RAM_MIRROR_PRV_LENGTH - 0x00020000 - 1;
-define symbol __region_NONCACHE_BUFFER_start__ = SYSTEM_RAM_MIRROR_PRV_START + SYSTEM_RAM_MIRROR_PRV_LENGTH - NONCACHE_BUFFER_OFFSET;
-define symbol __region_NONCACHE_BUFFER_end__ = SYSTEM_RAM_MIRROR_PRV_START + SYSTEM_RAM_MIRROR_PRV_LENGTH - NONCACHE_BUFFER_END_OFFSET - 1;
-
-define symbol __region_ATCM_start__ = ATCM_PRV_START;
-define symbol __region_ATCM_end__ = ATCM_PRV_START + ATCM_PRV_LENGTH - 1;
-define symbol __region_BTCM_start__ = BTCM_PRV_START;
-define symbol __region_BTCM_end__ = BTCM_PRV_START + BTCM_PRV_LENGTH - 1;
-define symbol __region_SYSTEM_RAM_start__ = SYSTEM_RAM_PRV_START;
-define symbol __region_SYSTEM_RAM_end__ = SYSTEM_RAM_PRV_START + SYSTEM_RAM_PRV_LENGTH - SYSTEM_RAM_END_OFFSET - 1;
-define symbol __region_SYSTEM_RAM_MIRROR_start__ = SYSTEM_RAM_MIRROR_PRV_START;
-define symbol __region_SYSTEM_RAM_MIRROR_end__ = SYSTEM_RAM_MIRROR_PRV_START + SYSTEM_RAM_MIRROR_PRV_LENGTH - SYSTEM_RAM_END_OFFSET - 1;
-
-define symbol __region_XSPI0_CS0_MIRROR_start__ = xSPI0_CS0_SPACE_MIRROR_PRV_START;
-define symbol __region_XSPI0_CS0_MIRROR_end__ = xSPI0_CS0_SPACE_MIRROR_PRV_START + xSPI0_CS0_SPACE_MIRROR_PRV_LENGTH - 1;
-define symbol __region_XSPI0_CS1_MIRROR_start__ = xSPI0_CS1_SPACE_MIRROR_PRV_START;
-define symbol __region_XSPI0_CS1_MIRROR_end__ = xSPI0_CS1_SPACE_MIRROR_PRV_START + xSPI0_CS1_SPACE_MIRROR_PRV_LENGTH - 1;
-define symbol __region_XSPI1_CS0_MIRROR_start__ = xSPI1_CS0_SPACE_MIRROR_PRV_START;
-define symbol __region_XSPI1_CS0_MIRROR_end__ = xSPI1_CS0_SPACE_MIRROR_PRV_START + xSPI1_CS0_SPACE_MIRROR_PRV_LENGTH - 1;
-define symbol __region_XSPI1_CS1_MIRROR_start__ = xSPI1_CS1_SPACE_MIRROR_PRV_START;
-define symbol __region_XSPI1_CS1_MIRROR_end__ = xSPI1_CS1_SPACE_MIRROR_PRV_START + xSPI1_CS1_SPACE_MIRROR_PRV_LENGTH - 1;
-define symbol __region_CS0_MIRROR_start__ = CS0_SPACE_MIRROR_PRV_START;
-define symbol __region_CS0_MIRROR_end__ = CS0_SPACE_MIRROR_PRV_START + CS0_SPACE_MIRROR_PRV_LENGTH - 1;
-define symbol __region_CS2_MIRROR_start__ = CS2_SPACE_MIRROR_PRV_START;
-define symbol __region_CS2_MIRROR_end__ = CS2_SPACE_MIRROR_PRV_START + CS2_SPACE_MIRROR_PRV_LENGTH - 1;
-define symbol __region_CS3_MIRROR_start__ = CS3_SPACE_MIRROR_PRV_START;
-define symbol __region_CS3_MIRROR_end__ = CS3_SPACE_MIRROR_PRV_START + CS3_SPACE_MIRROR_PRV_LENGTH - 1;
-define symbol __region_CS5_MIRROR_start__ = CS5_SPACE_MIRROR_PRV_START;
-define symbol __region_CS5_MIRROR_end__ = CS5_SPACE_MIRROR_PRV_START + CS5_SPACE_MIRROR_PRV_LENGTH - 1;
-define symbol __region_XSPI0_CS0_start__ = xSPI0_CS0_SPACE_PRV_START;
-define symbol __region_XSPI0_CS0_end__ = xSPI0_CS0_SPACE_PRV_START + xSPI0_CS0_SPACE_PRV_LENGTH - 1;
-define symbol __region_XSPI0_CS1_start__ = xSPI0_CS1_SPACE_PRV_START;
-define symbol __region_XSPI0_CS1_end__ = xSPI0_CS1_SPACE_PRV_START + xSPI0_CS1_SPACE_PRV_LENGTH - 1;
-define symbol __region_XSPI1_CS0_start__ = xSPI1_CS0_SPACE_PRV_START;
-define symbol __region_XSPI1_CS0_end__ = xSPI1_CS0_SPACE_PRV_START + xSPI1_CS0_SPACE_PRV_LENGTH - 1;
-define symbol __region_XSPI1_CS1_start__ = xSPI1_CS1_SPACE_PRV_START;
-define symbol __region_XSPI1_CS1_end__ = xSPI1_CS1_SPACE_PRV_START + xSPI1_CS1_SPACE_PRV_LENGTH - 1;
-define symbol __region_CS0_start__ = CS0_SPACE_PRV_START;
-define symbol __region_CS0_end__ = CS0_SPACE_PRV_START + CS0_SPACE_PRV_LENGTH - 1;
-define symbol __region_CS2_start__ = CS2_SPACE_PRV_START;
-define symbol __region_CS2_end__ = CS2_SPACE_PRV_START + CS2_SPACE_PRV_LENGTH - 1;
-define symbol __region_CS3_start__ = CS3_SPACE_PRV_START;
-define symbol __region_CS3_end__ = CS3_SPACE_PRV_START + CS3_SPACE_PRV_LENGTH - 1;
-define symbol __region_CS5_start__ = CS5_SPACE_PRV_START;
-define symbol __region_CS5_end__ = CS5_SPACE_PRV_START + CS5_SPACE_PRV_LENGTH - 1;
-
-/************** SPI boot mode setting **************/
-define symbol __region_LDR_PARAM_start__ = FLASH_ADDRESS;
-define symbol __region_LDR_PARAM_end__ = FLASH_ADDRESS + 0x0000004B;
-define symbol __region_S_LOADER_STACK_start__ = FLASH_ADDRESS + 0x0000004C;
-define symbol __region_S_LOADER_STACK_end__ = FLASH_ADDRESS + 0x0000804B;
-
-define symbol __region_S_intvec_start__ = FLASH_ADDRESS + 0x20000;
-define symbol __region_S_intvec_end__ = FLASH_ADDRESS + 0x200FF;
-define symbol __region_S_RAM_start__ = FLASH_ADDRESS + 0x70000;
-define symbol __region_S_RAM_end__ = FLASH_ADDRESS + 0x7FFFF;
-/****************************************************/
-
-define region D_LOADER_STACK_region = mem:[from __region_D_LOADER_STACK_start__ to __region_D_LOADER_STACK_end__];
-
-define region LDR_PARAM_region = mem:[from __region_LDR_PARAM_start__ to __region_LDR_PARAM_end__];
-define region S_LOADER_STACK_region = mem:[from __region_S_LOADER_STACK_start__ to __region_S_LOADER_STACK_end__];
-
-define region S_intvec_region = mem:[from __region_S_intvec_start__ to __region_S_intvec_end__];
-define region S_RAM_region = mem:[from __region_S_RAM_start__ to __region_S_RAM_end__];
-
-define region DATA_NONCACHE_region = mem:[from __region_DATA_NONCACHE_start__ to __region_DATA_NONCACHE_end__];
-define region DMAC_LINK_MODE_region = mem:[from __region_DMAC_LINK_MODE_start__ to __region_DMAC_LINK_MODE_end__];
-define region SHARED_NONCACHE_BUFFER_region = mem:[from __region_SHARED_NONCACHE_BUFFER_start__ to __region_SHARED_NONCACHE_BUFFER_end__];
-define region NONCACHE_BUFFER_region = mem:[from __region_NONCACHE_BUFFER_start__ to __region_NONCACHE_BUFFER_end__];
-
-define region ATCM_region = mem:[from __region_ATCM_start__ to __region_ATCM_end__ ];
-define region BTCM_region = mem:[from __region_BTCM_start__ to __region_BTCM_end__ ];
-define region SYSTEM_RAM_region = mem:[from __region_SYSTEM_RAM_start__ to __region_SYSTEM_RAM_end__ ];
-define region SYSTEM_RAM_MIRROR_region = mem:[from __region_SYSTEM_RAM_MIRROR_start__ to __region_SYSTEM_RAM_MIRROR_end__ ];
-define region XSPI0_CS0_MIRROR_region = mem:[from __region_XSPI0_CS0_MIRROR_start__ to __region_XSPI0_CS0_MIRROR_end__ ];
-define region XSPI0_CS1_MIRROR_region = mem:[from __region_XSPI0_CS1_MIRROR_start__ to __region_XSPI0_CS1_MIRROR_end__ ];
-define region XSPI1_CS0_MIRROR_region = mem:[from __region_XSPI1_CS0_MIRROR_start__ to __region_XSPI1_CS0_MIRROR_end__ ];
-define region XSPI1_CS1_MIRROR_region = mem:[from __region_XSPI1_CS1_MIRROR_start__ to __region_XSPI1_CS1_MIRROR_end__ ];
-define region CS0_MIRROR_region = mem:[from __region_CS0_MIRROR_start__ to __region_CS0_MIRROR_end__ ];
-define region CS2_MIRROR_region = mem:[from __region_CS2_MIRROR_start__ to __region_CS2_MIRROR_end__ ];
-define region CS3_MIRROR_region = mem:[from __region_CS3_MIRROR_start__ to __region_CS3_MIRROR_end__ ];
-define region CS5_MIRROR_region = mem:[from __region_CS5_MIRROR_start__ to __region_CS5_MIRROR_end__ ];
-define region XSPI0_CS0_region = mem:[from __region_XSPI0_CS0_start__ to __region_XSPI0_CS0_end__ ];
-define region XSPI0_CS1_region = mem:[from __region_XSPI0_CS1_start__ to __region_XSPI0_CS1_end__ ];
-define region XSPI1_CS0_region = mem:[from __region_XSPI1_CS0_start__ to __region_XSPI1_CS0_end__ ];
-define region XSPI1_CS1_region = mem:[from __region_XSPI1_CS1_start__ to __region_XSPI1_CS1_end__ ];
-define region CS0_region = mem:[from __region_CS0_start__ to __region_CS0_end__ ];
-define region CS2_region = mem:[from __region_CS2_start__ to __region_CS2_end__ ];
-define region CS3_region = mem:[from __region_CS3_start__ to __region_CS3_end__ ];
-define region CS5_region = mem:[from __region_CS5_start__ to __region_CS5_end__ ];
-
-define block LDR_PRG_RBLOCK with fixed order
- { ro code section .loader_text_init object startup_core.o,
- ro code object startup_core.o,
- ro code object system_core.o,
- ro code object startup.o,
- ro code object system.o,
- ro code object bsp_clocks.o,
- ro code object bsp_irq_core.o,
- ro code object bsp_irq.o,
- ro code object bsp_register_protection.o,
- ro code object r_ioport.o,
- ro code object bsp_cache.o,
- ro code section .warm_start_init }
- except { ro code section .intvec_init,
- ro code section .reset_handler_init };
-define block LDR_PRG_WBLOCK with fixed order
- { rw code section .loader_text object startup_core.o,
- rw code object startup_core.o,
- rw code object system_core.o,
- rw code object startup.o,
- rw code object system.o,
- rw code object bsp_clocks.o,
- rw code object bsp_irq_core.o,
- rw code object bsp_irq.o,
- rw code object bsp_register_protection.o,
- rw code object r_ioport.o,
- rw code object bsp_cache.o,
- rw code section .warm_start }
- except { rw code section .intvec,
- rw code section .reset_handler };
-define block LDR_DATA_ZBLOCK with alignment = 4
- { section .bss object startup_core.o,
- section .bss object system_core.o,
- section .bss object startup.o,
- section .bss object system.o,
- section .bss object bsp_clocks.o,
- section .bss object bsp_irq_core.o,
- section .bss object bsp_irq.o,
- section .bss object bsp_register_protection.o,
- section .bss object r_ioport.o,
- section .bss object bsp_cache.o,
- section .bss object bsp_io.o };
-define block LDR_DATA_RBLOCK with fixed order, alignment = 4
- { section .data_init object startup_core.o,
- section .data_init object system_core.o,
- section .data_init object startup.o,
- section .data_init object system.o,
- section .data_init object bsp_clocks.o,
- section .data_init object bsp_irq_core.o,
- section .data_init object bsp_irq.o,
- section .data_init object bsp_register_protection.o,
- section .data_init object r_ioport.o,
- section .data_init object bsp_cache.o,
- section .rodata_init object system_core.o };
-define block LDR_DATA_WBLOCK with fixed order, alignment = 4
- { section .data object startup_core.o,
- section .data object system_core.o,
- section .data object startup.o,
- section .data object system.o,
- section .data object bsp_clocks.o,
- section .data object bsp_irq_core.o,
- section .data object bsp_irq.o,
- section .data object bsp_register_protection.o,
- section .data object r_ioport.o,
- section .data object bsp_cache.o,
- section .rodata object system_core.o };
-
-define block HEAP_BLOCK with alignment = 8 { rw section HEAP };
-define block THREAD_STACK with alignment = 8 { rw section .stack* };
-define block SYS_STACK with alignment = 8 { rw section .sys_stack };
-define block SVC_STACK with alignment = 8 { rw section .svc_stack };
-define block IRQ_STACK with alignment = 8 { rw section .irq_stack };
-define block FIQ_STACK with alignment = 8 { rw section .fiq_stack };
-define block UND_STACK with alignment = 8 { rw section .und_stack };
-define block ABT_STACK with alignment = 8 { rw section .abt_stack };
-
-define block VECTOR_RBLOCK with alignment = 32 { ro code section .intvec_init};
-define block VECTOR_WBLOCK with alignment = 32 { rw code section .intvec};
-define block USER_PRG_RBLOCK with alignment = 4 { ro code };
-define block USER_PRG_WBLOCK with alignment = 4 { rw code };
-define block USER_DATA_ZBLOCK with alignment = 4 { section .bss };
-define block USER_DATA_RBLOCK with fixed order, alignment = 4
- { section .data_init,
- section __DLIB_PERTHREAD_init,
- section .rodata_init,
- section .version_init };
-define block USER_DATA_WBLOCK with fixed order, alignment = 4
- { section .data,
- section __DLIB_PERTHREAD,
- section .rodata,
- section .version };
-define block USER_DATA_NONCACHE_RBLOCK with alignment = 4 { section .data_noncache_init };
-define block USER_DATA_NONCACHE_WBLOCK with alignment = 4 { section .data_noncache };
-define block DMAC_LINK_MODE_ZBLOCK with alignment = 4 { section .dmac_link_mode* };
-define block SHARED_NONCACHE_BUFFER_ZBLOCK with alignment = 32 { section .shared_noncache_buffer* };
-define block NONCACHE_BUFFER_ZBLOCK with alignment = 32 { section .noncache_buffer* };
-
-initialize manually { ro code object startup_core.o,
- ro code object system_core.o,
- ro code object startup.o,
- ro code object system.o,
- ro code object bsp_clocks.o,
- ro code object bsp_irq_core.o,
- ro code object bsp_irq.o,
- ro code object bsp_register_protection.o,
- ro code object r_ioport.o,
- ro code object bsp_cache.o,
- ro code section .intvec,
- ro code section .reset_handler,
- ro code section .warm_start,
- ro code,
- section .data,
- section __DLIB_PERTHREAD,
- section .rodata,
- section .version,
- section .data_noncache };
-
-do not initialize { section .noinit,
- section .bss,
- section .dmac_link_mode*,
- section .shared_noncache_buffer*,
- section .noncache_buffer*,
- rw section HEAP,
- rw section .stack*,
- rw section .sys_stack,
- rw section .svc_stack,
- rw section .irq_stack,
- rw section .fiq_stack,
- rw section .und_stack,
- rw section .abt_stack };
-
-place at address mem: __ICFEDIT_intvec_start__ { block VECTOR_WBLOCK };
-
-place in LDR_PARAM_region { readonly section .loader_param };
-place at start of S_LOADER_STACK_region { block LDR_PRG_RBLOCK };
-place in S_LOADER_STACK_region { section LDR_DATA_RBLOCK, block LDR_DATA_RBLOCK };
-place in S_intvec_region { block VECTOR_RBLOCK };
-place in ROM_region { block USER_PRG_RBLOCK, readonly };
-place in S_RAM_region { block USER_DATA_RBLOCK, block USER_DATA_NONCACHE_RBLOCK };
-
-place at start of D_LOADER_STACK_region { block LDR_PRG_WBLOCK };
-place in D_LOADER_STACK_region { section LDR_DATA_WBLOCK, block LDR_DATA_WBLOCK,
- section LDR_DATA_ZBLOCK, block LDR_DATA_ZBLOCK };
-place in D_LOADER_STACK_region { section SYS_STACK, block SYS_STACK,
- section SVC_STACK, block SVC_STACK,
- section IRQ_STACK, block IRQ_STACK,
- section FIQ_STACK, block FIQ_STACK,
- section UND_STACK, block UND_STACK,
- section ABT_STACK, block ABT_STACK };
-place in RAM_region { block USER_PRG_WBLOCK };
-place in RAM_region { readwrite, last block CSTACK };
-place in RAM_region { block USER_DATA_WBLOCK,
- block USER_DATA_ZBLOCK };
-place in RAM_region { section HEAP_BLOCK, block HEAP_BLOCK,
- section THREAD_STACK, block THREAD_STACK };
-
-place in DATA_NONCACHE_region { block USER_DATA_NONCACHE_WBLOCK };
-place in DMAC_LINK_MODE_region { block DMAC_LINK_MODE_ZBLOCK };
-place in SHARED_NONCACHE_BUFFER_region { block SHARED_NONCACHE_BUFFER_ZBLOCK };
-place in NONCACHE_BUFFER_region { block NONCACHE_BUFFER_ZBLOCK };
-place in ATCM_region { };
-place in BTCM_region { };
-place in SYSTEM_RAM_region { };
-place in SYSTEM_RAM_MIRROR_region { };
-place in XSPI0_CS0_MIRROR_region { };
-place in XSPI0_CS1_MIRROR_region { };
-place in XSPI1_CS0_MIRROR_region { };
-place in XSPI1_CS1_MIRROR_region { };
-place in CS0_MIRROR_region { };
-place in CS2_MIRROR_region { };
-place in CS3_MIRROR_region { };
-place in CS5_MIRROR_region { };
-place in XSPI0_CS0_region { };
-place in XSPI0_CS1_region { };
-place in XSPI1_CS0_region { };
-place in XSPI1_CS1_region { };
-place in CS0_region { };
-place in CS2_region { };
-place in CS3_region { };
-place in CS5_region { };
diff --git a/bsp/renesas/rzn2l_rsk/script/memory_regions.ld b/bsp/renesas/rzn2l_rsk/script/memory_regions.ld
deleted file mode 100644
index 227ab3ebb1..0000000000
--- a/bsp/renesas/rzn2l_rsk/script/memory_regions.ld
+++ /dev/null
@@ -1,38 +0,0 @@
-
- /* generated memory regions file - do not edit */
- ATCM_START = 0x00000000;
- ATCM_LENGTH = 0x20000;
- BTCM_START = 0x00100000;
- BTCM_LENGTH = 0x20000;
- SYSTEM_RAM_START = 0x10000000;
- SYSTEM_RAM_LENGTH = 0x180000;
- SYSTEM_RAM_MIRROR_START = 0x30000000;
- SYSTEM_RAM_MIRROR_LENGTH = 0x180000;
- xSPI0_CS0_SPACE_MIRROR_START = 0x40000000;
- xSPI0_CS0_SPACE_MIRROR_LENGTH = 0x4000000;
- xSPI0_CS1_SPACE_MIRROR_START = 0x44000000;
- xSPI0_CS1_SPACE_MIRROR_LENGTH = 0x4000000;
- xSPI1_CS0_SPACE_MIRROR_START = 0x48000000;
- xSPI1_CS0_SPACE_MIRROR_LENGTH = 0x4000000;
- CS0_SPACE_MIRROR_START = 0x50000000;
- CS0_SPACE_MIRROR_LENGTH = 0x4000000;
- CS2_SPACE_MIRROR_START = 0x54000000;
- CS2_SPACE_MIRROR_LENGTH = 0x4000000;
- CS3_SPACE_MIRROR_START = 0x58000000;
- CS3_SPACE_MIRROR_LENGTH = 0x4000000;
- CS5_SPACE_MIRROR_START = 0x5C000000;
- CS5_SPACE_MIRROR_LENGTH = 0x4000000;
- xSPI0_CS0_SPACE_START = 0x60000000;
- xSPI0_CS0_SPACE_LENGTH = 0x4000000;
- xSPI0_CS1_SPACE_START = 0x64000000;
- xSPI0_CS1_SPACE_LENGTH = 0x4000000;
- xSPI1_CS0_SPACE_START = 0x68000000;
- xSPI1_CS0_SPACE_LENGTH = 0x4000000;
- CS0_SPACE_START = 0x70000000;
- CS0_SPACE_LENGTH = 0x4000000;
- CS2_SPACE_START = 0x74000000;
- CS2_SPACE_LENGTH = 0x4000000;
- CS3_SPACE_START = 0x78000000;
- CS3_SPACE_LENGTH = 0x4000000;
- CS5_SPACE_START = 0x7C000000;
- CS5_SPACE_LENGTH = 0x4000000;
diff --git a/libcpu/arm/cortex-r52/context_gcc.S b/libcpu/arm/cortex-r52/context_gcc.S
index e95c631eef..1bd581e9ee 100644
--- a/libcpu/arm/cortex-r52/context_gcc.S
+++ b/libcpu/arm/cortex-r52/context_gcc.S
@@ -8,7 +8,6 @@
* 2024-03-01 Wangyuqiang first version
*/
-#include "rtconfig.h"
.syntax unified
.text