Skip to content

Commit 0ddde6f

Browse files
authored
Merge pull request #444 from miyazakh/renesas_rz_rsip
Add RSIP use to Renesas RZ support
2 parents 027c684 + 21ce30f commit 0ddde6f

File tree

20 files changed

+1035
-47
lines changed

20 files changed

+1035
-47
lines changed

.gitignore

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,8 @@ IDE/Renesas/e2studio/RZN2L/app_RZ/.api_xml
160160
IDE/Renesas/e2studio/RZN2L/app_RZ/.secure_azone
161161
IDE/Renesas/e2studio/RZN2L/app_RZ/.secure_xml
162162
IDE/Renesas/e2studio/RZN2L/app_RZ/configuration.xml
163+
IDE/Renesas/e2studio/RZN2L/app_RZ/rzn_cfg.txt
164+
IDE/Release/e2Studio/RZN2L/app_RZ/JLinkLog.log
163165
IDE/Renesas/e2studio/RZN2L/flash_app/Debug
164166
IDE/Renesas/e2studio/RZN2L/flash_app/rzn
165167
IDE/Renesas/e2studio/RZN2L/flash_app/rzn_gen
@@ -169,6 +171,10 @@ IDE/Renesas/e2studio/RZN2L/flash_app/.api_xml
169171
IDE/Renesas/e2studio/RZN2L/flash_app/.secure_azone
170172
IDE/Renesas/e2studio/RZN2L/flash_app/.secure_xml
171173
IDE/Renesas/e2studio/RZN2L/flash_app/configuration.xml
174+
IDE/Renesas/e2studio/RZN2L/flash_app/rzn_cfg.txt
175+
IDE/Release/e2Studio/RZN2L/flash_app/JLinkLog.log
176+
IDE/Renesas/e2studio/RZN2L/flash_app/flash_simple_loader.elf.jlink
177+
IDE/Renesas/e2studio/RZN2L/flash_app/flash_simple_loader.elf.launch
172178
IDE/Renesas/e2studio/RZN2L/wolfboot/Debug
173179
IDE/Renesas/e2studio/RZN2L/wolfboot/rzn
174180
IDE/Renesas/e2studio/RZN2L/wolfboot/rzn_gen
@@ -178,6 +184,13 @@ IDE/Renesas/e2studio/RZN2L/wolfboot/.api_xml
178184
IDE/Renesas/e2studio/RZN2L/wolfboot/.secure_azone
179185
IDE/Renesas/e2studio/RZN2L/wolfboot/.secure_xml
180186
IDE/Renesas/e2studio/RZN2L/wolfboot/configuration.xml
187+
IDE/Renesas/e2studio/RZN2L/wolfboot/rzn_cfg.txt
188+
IDE/Release/e2Studio/RZN2L/wolfboot/JLinkLog.log
189+
IDE/Renesas/e2studio/RZN2L/wolfboot/wolfBoot_RZ.elf.jlink
190+
IDE/Renesas/e2studio/RZN2L/wolfboot/wolfBoot_RZ.elf.launch
191+
IDE/Renesas/e2studio/RZN2L/wolfboot/.cache/*
192+
IDE/Renesas/e2studio/RZN2L/flash_app/.cache/*
193+
IDE/Release/e2studio/RZN2L/app_RZ/.cache/*
181194

182195

183196
tpm_seal_key.key

IDE/Renesas/e2studio/RZN2L/Readme.md

Lines changed: 36 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -17,24 +17,27 @@ You can download and execute wolfBoot by e2Studio debugger. Use a USB connection
1717
|Item|Name/Version|Note|
1818
|:--|:--|:--|
1919
|Board|Renesas RZN2L RSK||
20-
|Device|R9A07G084M04GBG||
20+
|Device|R9A07G084M08GBG||
2121
|Toolchain|GCC ARM Embedded 10.3.1.20210824|Included in GCC for Renesas RZ|
2222
|FSP Version|1.3.0|Download from Renesas site|
2323
|IDE|e2studio 2024-01.1 (24.1.1)|Download from Renesas site|
2424
|SEGGER J-Link|J-Link Commander V7.94j |Download from J-Link|
2525
|Key tool|keygen and sign|Included in wolfBoot|
2626

2727

28-
|FIT Components|Version|
29-
|:--|:--|
30-
|Board Support Package Common Files|v1.3.0|
31-
|I/O Port|v1.3.0|
32-
|Arm CMSIS Version 5 - Core (M)|v5.7.0+renesas.1|
33-
|Board support package for R9A07G084M04GBG|v1.3.0|
34-
|Board support package for RZN2L|v1.3.0|
35-
|Board support package for RZN2L - FSP Data|v1.3.0|
36-
|RSK+RZN2L Board Support Files (xSPI0 x1 boot mode)|v1.3.0|
37-
|SDRAM on Bus State Controller|v1.3.0|
28+
|FIT Components|Version|Note|
29+
|:--|:--|:--|
30+
|Board Support Package Common Files|v1.3.0||
31+
|I/O Port|v1.3.0||
32+
|Arm CMSIS Version 5 - Core (M)|v5.7.0+renesas.1||
33+
|Board support package for R9A07G084M04GBG|v1.3.0|Note1|
34+
|Board support package for RZN2L|v1.3.0||
35+
|Board support package for RZN2L - FSP Data|v1.3.0||
36+
|RSK+RZN2L Board Support Files (xSPI0 x1 boot mode)|v1.3.0||
37+
|SDRAM on Bus State Controller|v1.3.0||
38+
39+
Note1:\
40+
To use RSIP drive, a devvice type should be `R9A07G084M04GBG`. However, choosing `R9A07G084M04GBG` won't allow to select `RSK+RZN2L` board. This example uses LED and external flash memory on `RSK + RZN2L` board. Therefore, the example temporary `R9A07G084M04GBG` for the device type. Updating e2studio or fsp could resolve the issue.
3841

3942

4043
### 2-2. Project folders
@@ -147,15 +150,23 @@ ORIGINAL
147150
BSP_TARGET_ARM void mpu_cache_init (void)
148151
{
149152
...
150-
#if BSP_CFG_C_RUNTIME_INIT
153+
#if BSP_CFG_C_RUNTIME_INIT && !defined(EXTERNAL_LOADER)
151154
152155
/* Copy the loader data from external Flash to internal RAM. */
153156
bsp_loader_data_init();
157+
158+
/* Clear loader bss section in internal RAM. */
159+
bsp_loader_bss_init();
160+
#endif
154161
...
155162
#if !(BSP_CFG_RAM_EXECUTION)
156163
157164
/* Copy the application program from external Flash to internal RAM. */
158165
bsp_copy_to_ram();
166+
167+
/* Clear bss section in internal RAM. */
168+
bsp_application_bss_init();
169+
#endif
159170
...
160171
}
161172
```
@@ -171,12 +182,19 @@ if BSP_CFG_C_RUNTIME_INIT && !defined(EXTERNAL_LOADER)
171182
172183
/* Copy the loader data from external Flash to internal RAM. */
173184
bsp_loader_data_init();
174-
....
175185
176-
#if !(BSP_CFG_RAM_EXECUTION) && !defined(EXTERNAL_LOADER)
186+
/* Clear loader bss section in internal RAM. */
187+
bsp_loader_bss_init();
188+
#endif
189+
...
190+
#if !(BSP_CFG_RAM_EXECUTION)
177191
178192
/* Copy the application program from external Flash to internal RAM. */
179-
bsp_copy_to_ram();
193+
/* bsp_copy_to_ram(); */
194+
195+
/* Clear bss section in internal RAM. */
196+
bsp_application_bss_init();
197+
#endif
180198
...
181199
}
182200
```
@@ -324,7 +342,7 @@ To run the application,
324342
+ Select `J-Link ARM`. Click OK.
325343
+ Select `R9A07G084M04`. Click OK.
326344

327-
This simple application just downloads binary files defined in `Flash_section.s` and `Flash_update.s` through J-Link Flash Downloader. `Flash_update.s` doesn't includes `the app v2` initially.
345+
This simple application just downloads binary files defined in `Flash_section.s` and `Flash_update.s` through J-Link Flash Downloader. `Flash_update.s` doesn't include `the app v2` initially.
328346

329347
Flash_update.s
330348

@@ -394,15 +412,15 @@ Type "connect" to establish a target connection, '?' for help
394412
J-Link>connect
395413
Please specify device / core. <Default>: R9A07G084M04
396414
Type '?' for selection dialog
397-
Device>R9A07G084M04GBG
415+
Device>R9A07G084M08GBG
398416
Please specify target interface:
399417
J) JTAG (Default)
400418
S) SWD
401419
T) cJTAG
402420
TIF>S
403421
Specify target interface speed [kHz]. <Default>: 4000 kHz
404422
Speed>
405-
Device "R9A07G084M04" selected.
423+
Device "R9A07G084M08" selected.
406424
...
407425
J-Link>exec EnableEraseAllFlashBanks
408426
```

0 commit comments

Comments
 (0)