Skip to content

Commit 3c781df

Browse files
committed
[bsp][renesas]add EK-RA2E2 mdk support
1 parent f184e03 commit 3c781df

37 files changed

+5525
-49
lines changed

bsp/renesas/ra2e2-ek/.api_xml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
2+
<ddscApi/>

bsp/renesas/ra2e2-ek/.config

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ CONFIG_RT_THREAD_PRIORITY_32=y
121121
# CONFIG_RT_THREAD_PRIORITY_256 is not set
122122
CONFIG_RT_THREAD_PRIORITY_MAX=32
123123
CONFIG_RT_TICK_PER_SECOND=1000
124-
# CONFIG_RT_USING_OVERFLOW_CHECK is not set
124+
CONFIG_RT_USING_OVERFLOW_CHECK=y
125125
# CONFIG_RT_USING_HOOK is not set
126126
# CONFIG_RT_USING_HOOKLIST is not set
127127
# CONFIG_RT_USING_IDLE_HOOK is not set
@@ -135,7 +135,11 @@ CONFIG_IDLE_THREAD_STACK_SIZE=256
135135
# CONFIG_RT_USING_TINY_FFS is not set
136136
# end of kservice options
137137

138-
# CONFIG_RT_USING_DEBUG is not set
138+
CONFIG_RT_USING_DEBUG=y
139+
CONFIG_RT_DEBUGING_ASSERT=y
140+
CONFIG_RT_DEBUGING_COLOR=y
141+
CONFIG_RT_DEBUGING_CONTEXT=y
142+
# CONFIG_RT_DEBUGING_AUTO_INIT is not set
139143
# CONFIG_RT_USING_CI_ACTION is not set
140144

141145
#

bsp/renesas/ra2e2-ek/.secure_azone

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
2+
<azone>
3+
<rzone name="R7FA2E2A72DNK.rzone"/>
4+
<partition>
5+
<peripheral name="PORT0.CM23" group="PORT">
6+
<slot name="P015.CM23" secure="false"/>
7+
</peripheral>
8+
<peripheral name="PORT1.CM23" group="PORT">
9+
<slot name="P100.CM23" secure="false"/>
10+
<slot name="P101.CM23" secure="false"/>
11+
<slot name="P108.CM23" secure="false"/>
12+
<slot name="P111.CM23" secure="false"/>
13+
<slot name="P112.CM23" secure="false"/>
14+
</peripheral>
15+
<peripheral name="PORT2.CM23" group="PORT">
16+
<slot name="P205.CM23" secure="false"/>
17+
</peripheral>
18+
<peripheral name="PORT3.CM23" group="PORT">
19+
<slot name="P300.CM23" secure="false"/>
20+
</peripheral>
21+
<peripheral name="PORT4.CM23" group="PORT">
22+
<slot name="P400.CM23" secure="false"/>
23+
<slot name="P401.CM23" secure="false"/>
24+
</peripheral>
25+
<peripheral name="PORT9.CM23" group="PORT">
26+
<slot name="P914.CM23" secure="false"/>
27+
</peripheral>
28+
<peripheral name="SCI9.CM23" group="SCI" security=""/>
29+
<peripheral name="ICU.CM23">
30+
<slot name="IRQ4.CM23" secure="false"/>
31+
<slot name="IRQ5.CM23" secure="false"/>
32+
<slot name="IRQ6.CM23" secure="false"/>
33+
<slot name="IRQ7.CM23" secure="false"/>
34+
</peripheral>
35+
</partition>
36+
</azone>

bsp/renesas/ra2e2-ek/.secure_rzone

Lines changed: 163 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,163 @@
1+
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
2+
<rzone>
3+
<device Dvendor="Renesas" Dname="R7FA2E2">
4+
<processor Pname="CM23" Dcore="Cortex-M23" Dfpu="0" Dmpu="1" Dtz="NO_TZ" Ddsp="1" Dendian="Little-endian" Dclock="48000000" DcoreVersion="r1p0" DnumInterrupts="32" DnumSauRegions="0"/>
5+
</device>
6+
<resources>
7+
<memories>
8+
<memory name="RAM" type="RAM" start="0x20004000" size="0x00002000" access="rwx" security="" info="On chip RAM memory"/>
9+
<memory name="FLASH" type="ROM" start="0x00000000" size="0x00010000" access="rx" security="" info="On chip flash memory"/>
10+
<memory name="DATA_FLASH" type="ROM" start="0x40100000" size="0x00000800" access="rx" security="" info="On chip data flash memory"/>
11+
<memory name="OPTION_SETTING_OFS0" type="ROM" start="0x00000400" size="0x00000004" access="r" security="" info="Option Function Select Register 0"/>
12+
<memory name="OPTION_SETTING_OFS1" type="ROM" start="0x00000404" size="0x00000004" access="r" security="" info="Option Function Select Register 1"/>
13+
<memory name="OPTION_SETTING_SECMPU" type="ROM" start="0x00000408" size="0x00000034" access="r" security="" info="Security MPU Registers"/>
14+
<memory name="OPTION_SETTING_OSIS" type="ROM" start="0x01010018" size="0x00000020" access="r" security="" info="OCD/Serial Programmer ID setting register"/>
15+
</memories>
16+
<peripherals>
17+
<group name="ADC" start="0x4005c000" size="0x00000200" info="A/D Converter">
18+
<peripheral name="ADC0" start="0x4005c000" size="0x00000200"/>
19+
</group>
20+
<group name="AGT" start="0x40084000" size="0x00000100" info="Asynchronous General Purpose Timer">
21+
<peripheral name="AGT0" start="0x40084000" size="0x00000100"/>
22+
<peripheral name="AGT1" start="0x40084100" size="0x00000100"/>
23+
</group>
24+
<peripheral name="CAC" start="0x40044600" size="0x00000100" info="Clock Frequency Accuracy Measurement Circuit"/>
25+
<peripheral name="CGC" start="0x00000000" size="0x00000000" info="Clock Generation Circuit"/>
26+
<peripheral name="CRC" start="0x40074000" size="0x00000100" info="Cyclic Redundancy Check (CRC) Calculator"/>
27+
<peripheral name="DOC" start="0x40054100" size="0x00000010" info="Data Operation Circuit"/>
28+
<peripheral name="DTC" start="0x40005400" size="0x00000100" info="Data Transfer Controller"/>
29+
<peripheral name="ELC" start="0x40041000" size="0x00000100" info="Event Link Controller">
30+
<slot name="GPT_A"/>
31+
<slot name="GPT_B"/>
32+
<slot name="GPT_C"/>
33+
<slot name="GPT_D"/>
34+
<slot name="ADC0"/>
35+
<slot name="ADC0_B"/>
36+
<slot name="IOPORT1"/>
37+
<slot name="IOPORT2"/>
38+
</peripheral>
39+
<peripheral name="FLASH" start="0x407ec000" size="0x00000100" info="Flash"/>
40+
<peripheral name="FLASH_LP" start="0x00000000" size="0x00000100" info="Low Power Flash"/>
41+
<group name="GPT" start="0x40078400" size="0x00000100" info="General PWM Timer">
42+
<peripheral name="GPT4" start="0x40078400" size="0x00000100"/>
43+
<peripheral name="GPT5" start="0x40078500" size="0x00000100"/>
44+
<peripheral name="GPT6" start="0x40078600" size="0x00000100"/>
45+
<peripheral name="GPT7" start="0x40078700" size="0x00000100"/>
46+
<peripheral name="GPT8" start="0x40078800" size="0x00000100"/>
47+
<peripheral name="GPT9" start="0x40078900" size="0x00000100"/>
48+
</group>
49+
<peripheral name="GPT_OPS" start="0x40078ff0" size="0x00000010" info="Output Phase Switching Controller"/>
50+
<group name="GPT_POEG" start="0x40042000" size="0x00000100" info="Port Output Enable for GPT">
51+
<peripheral name="GPT_POEG0" start="0x40042000" size="0x00000100"/>
52+
<peripheral name="GPT_POEG1" start="0x40042100" size="0x00000100"/>
53+
</group>
54+
<group name="I3C" start="0x40083000" size="0x00000400" info="I3C Bus Interface">
55+
<peripheral name="I3C0" start="0x40083000" size="0x00000400"/>
56+
</group>
57+
<peripheral name="ICU" start="0x40006000" size="0x00000100" info="Interrupt Controller Unit">
58+
<slot name="IRQ0"/>
59+
<slot name="IRQ1"/>
60+
<slot name="IRQ2"/>
61+
<slot name="IRQ3"/>
62+
<slot name="IRQ4"/>
63+
<slot name="IRQ5"/>
64+
<slot name="IRQ6"/>
65+
<slot name="IRQ7"/>
66+
<slot name="IRQ8"/>
67+
<slot name="IRQ9"/>
68+
<slot name="IRQ10"/>
69+
<slot name="IRQ11"/>
70+
<slot name="IRQ12"/>
71+
<slot name="IRQ13"/>
72+
<slot name="IRQ14"/>
73+
<slot name="IRQ15"/>
74+
<slot name="IRQ16"/>
75+
<slot name="IRQ17"/>
76+
<slot name="IRQ18"/>
77+
<slot name="IRQ19"/>
78+
<slot name="IRQ20"/>
79+
<slot name="IRQ21"/>
80+
<slot name="IRQ22"/>
81+
<slot name="IRQ23"/>
82+
<slot name="IRQ24"/>
83+
<slot name="IRQ25"/>
84+
<slot name="IRQ26"/>
85+
<slot name="IRQ27"/>
86+
<slot name="IRQ28"/>
87+
<slot name="IRQ29"/>
88+
<slot name="IRQ30"/>
89+
<slot name="IRQ31"/>
90+
</peripheral>
91+
<peripheral name="ICU_EXT_IRQ" start="0x40006000" size="0x00000001" info="Interrupt Controller Unit (External Pins Only)">
92+
<slot name="ICU_EXT_IRQ0"/>
93+
<slot name="ICU_EXT_IRQ1"/>
94+
<slot name="ICU_EXT_IRQ2"/>
95+
<slot name="ICU_EXT_IRQ3"/>
96+
<slot name="ICU_EXT_IRQ4"/>
97+
<slot name="ICU_EXT_IRQ5"/>
98+
<slot name="ICU_EXT_IRQ6"/>
99+
<slot name="ICU_EXT_IRQ7"/>
100+
<slot name="ICU_EXT_SNZCANCEL"/>
101+
</peripheral>
102+
<group name="IIC_B" start="0x40083000" size="0x00000400" info="I2C Bus Interface">
103+
<peripheral name="IIC_B0" start="0x40083000" size="0x00000400"/>
104+
</group>
105+
<peripheral name="IWDT" start="0x40044400" size="0x00000100" info="Independent Watchdog Timer"/>
106+
<group name="KINT" start="0x40080000" size="0x00000010" info="Key Interrupt Function">
107+
<peripheral name="KINT0" start="0x40080000" size="0x00000010"/>
108+
</group>
109+
<group name="MPU" start="0x40000000" size="0x00001000" info="Memory Protection Unit">
110+
<peripheral name="MPU0" start="0x40000000" size="0x00001000"/>
111+
</group>
112+
<peripheral name="MSTP" start="0x40047000" size="0x00000000" info="System-Module Stop"/>
113+
<peripheral name="PFS" start="0x40040800" size="0x00000004" info="Pin Function Control Register"/>
114+
<group name="PORT" start="0x40040000" size="0x00000020" info="I/O Ports">
115+
<peripheral name="PORT0" start="0x40040000" size="0x00000020">
116+
<slot name="P010"/>
117+
<slot name="P011"/>
118+
<slot name="P014"/>
119+
<slot name="P015"/>
120+
</peripheral>
121+
<peripheral name="PORT1" start="0x40040020" size="0x00000020">
122+
<slot name="P100"/>
123+
<slot name="P101"/>
124+
<slot name="P102"/>
125+
<slot name="P103"/>
126+
<slot name="P108"/>
127+
<slot name="P109"/>
128+
<slot name="P110"/>
129+
<slot name="P111"/>
130+
<slot name="P112"/>
131+
</peripheral>
132+
<peripheral name="PORT2" start="0x40040040" size="0x00000020">
133+
<slot name="P200"/>
134+
<slot name="P201"/>
135+
<slot name="P205"/>
136+
</peripheral>
137+
<peripheral name="PORT3" start="0x40040060" size="0x00000020">
138+
<slot name="P300"/>
139+
</peripheral>
140+
<peripheral name="PORT4" start="0x40040080" size="0x00000020">
141+
<slot name="P400"/>
142+
<slot name="P401"/>
143+
</peripheral>
144+
<peripheral name="PORT9" start="0x40040120" size="0x00000020">
145+
<slot name="P914"/>
146+
</peripheral>
147+
</group>
148+
<peripheral name="RSIP" start="0x00000000" size="0x00000000" info="Renesas Secure IP"/>
149+
<group name="SCI" start="0x40070120" size="0x00000020" info="Serial Communications Interface">
150+
<peripheral name="SCI9" start="0x40070120" size="0x00000020"/>
151+
</group>
152+
<group name="SPI" start="0x40072000" size="0x00000100" info="Serial Peripheral Interface">
153+
<peripheral name="SPI0" start="0x40072000" size="0x00000100"/>
154+
</group>
155+
<peripheral name="SRAM" start="0x40002000" size="0x00000008" info="SRAM Control"/>
156+
<peripheral name="SYSTEM" start="0x4001e000" size="0x00001000" info="System Pins"/>
157+
<peripheral name="TRNG" start="0x00000000" size="0x00000000" info="True Random Number Generator"/>
158+
<group name="WDT" start="0x40044200" size="0x00000100" info="Watchdog Timer">
159+
<peripheral name="WDT0" start="0x40044200" size="0x00000100"/>
160+
</group>
161+
</peripherals>
162+
</resources>
163+
</rzone>

bsp/renesas/ra2e2-ek/.secure_xml

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
2+
<raConfiguration version="11">
3+
<generalSettings>
4+
<option key="#Board#" value="board.ra2e2_ek"/>
5+
<option key="CPU" value="RA2E2"/>
6+
<option key="Core" value="CM23"/>
7+
<option key="#TargetName#" value="R7FA2E2A72DNK"/>
8+
<option key="#TargetARCHITECTURE#" value="cortex-m23"/>
9+
<option key="#DeviceCommand#" value="R7FA2E2A7"/>
10+
<option key="#RTOS#" value="_none"/>
11+
<option key="#pinconfiguration#" value="R7FA2E2A72DNK.pincfg"/>
12+
<option key="#FSPVersion#" value="6.0.0"/>
13+
<option key="#ConfigurationFragments#" value="Renesas##BSP##Board##ra2e2_ek##"/>
14+
<option key="#SELECTED_TOOLCHAIN#" value="com.arm.toolchain"/>
15+
</generalSettings>
16+
<raBspConfiguration/>
17+
<raClockConfiguration>
18+
<node id="board.clock.hoco.freq" option="board.clock.hoco.freq.48m"/>
19+
<node id="board.clock.loco.freq" option="board.clock.loco.freq.32768"/>
20+
<node id="board.clock.moco.freq" option="board.clock.moco.freq.8m"/>
21+
<node id="board.clock.clock.source" option="board.clock.clock.source.hoco"/>
22+
<node id="board.clock.iclk.div" option="board.clock.iclk.div.1"/>
23+
<node id="board.clock.iclk.display" option="board.clock.iclk.display.value"/>
24+
<node id="board.clock.pclkb.div" option="board.clock.pclkb.div.2"/>
25+
<node id="board.clock.pclkb.display" option="board.clock.pclkb.display.value"/>
26+
<node id="board.clock.pclkd.div" option="board.clock.pclkd.div.1"/>
27+
<node id="board.clock.pclkd.display" option="board.clock.pclkd.display.value"/>
28+
<node id="board.clock.clkout.source" option="board.clock.clkout.source.disabled"/>
29+
<node id="board.clock.clkout.div" option="board.clock.clkout.div.1"/>
30+
<node id="board.clock.clkout.display" option="board.clock.clkout.display.value"/>
31+
</raClockConfiguration>
32+
<raPinConfiguration>
33+
<pincfg active="true" name="" symbol="">
34+
<configSetting altId="i3c0.scl0.p400" configurationId="i3c0.scl0" peripheral="I3C0"/>
35+
<configSetting altId="i3c0.sda0.p401" configurationId="i3c0.sda0" peripheral="I3C0"/>
36+
<configSetting altId="jtag_fslash_swd.swclk.p300" configurationId="jtag_fslash_swd.swclk" peripheral="JTAG/SWD"/>
37+
<configSetting altId="jtag_fslash_swd.swdio.p108" configurationId="jtag_fslash_swd.swdio" peripheral="JTAG/SWD"/>
38+
<configSetting altId="p015.output.low" configurationId="p015"/>
39+
<configSetting altId="p111.input" configurationId="p111"/>
40+
<configSetting altId="p112.output.low" configurationId="p112"/>
41+
<configSetting altId="p205.input" configurationId="p205"/>
42+
<configSetting altId="p914.output.low" configurationId="p914"/>
43+
<configSetting altId="sci9.rxd9.p100" configurationId="sci9.rxd9" isUsedByDriver="true" peripheral="SCI9"/>
44+
<configSetting altId="sci9.txd9.p101" configurationId="sci9.txd9" isUsedByDriver="true" peripheral="SCI9"/>
45+
</pincfg>
46+
</raPinConfiguration>
47+
</raConfiguration>

0 commit comments

Comments
 (0)