You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Now, you can download and start wolfBoot program by e2Studio debugger. After starting the program, you can see the partition information as follows. If the boot program succeeds integrity and authenticity check, it initiate the application V1.
199
+
Now, you can download and start wolfBoot program by e2Studio debugger. After starting the program, you can see the partition information as follows. If the boot program succeeds integrity and authenticity check, it initiate the application V1. To initially run `wolfBoot` project,
The boot program checks integrity and authenticity of V2, swap the partition safely and initiates V2. You will see following message after the partition
229
-
information.
270
+
information. You can also see flashing each LED light in 5 second.
+ Add `g_flash0 Flash(r_falsh_hp)` stack from `New Stack` -> `Storage`
90
+
91
+
Modify `g_flash0 Flash(r_flash_hp)` properites as follows:
92
+
|Property|Value|
93
+
|:--|:--|
94
+
|Data Flash Background Operation|Disabled|
95
+
96
+
+ Save `dummy_library` FSP configuration
97
+
+ Copy <u>configuration.xml</u> and pincfg under `dummy_library` to `wolfBoot`
98
+
+ Open Smart Configurator by clicking copied configuration.xml
99
+
+ Click `Generate Project Content` on Smart Configurator
100
+
+ Set `BSP_FEATURE_FLASH_SUPPORTS_ACCESS_WINDOW` to 1)
101
+
+ Build `wolfBoot` projet
77
102
### 3) Compile the sample application
78
103
79
-
Open project under IDE/Renesas/e2studio/RA6M4/app_RA with e2Studio. Open `script` folder and copy orignal `fsp.ld` to `fsp.ld.org`. Copy `fsp_wsce.ld` to `fsp.ld`, and then build the project. Project properties are preset for the demo.
104
+
Open project under IDE/Renesas/e2studio/RA6M4/app_RA with e2Studio.
80
105
81
106
#### 3-1). Prepare SEGGER_RTT for logging
82
107
+ Download J-Link software from [Segger](https://www.segger.com/downloads/jlink)
@@ -102,12 +127,30 @@ Open project under IDE/Renesas/e2studio/RA6M4/app_RA with e2Studio. Open `script
102
127
OR
103
128
you can specify "RTT control block" to 0x20000000 0x1000 by Search Range
104
129
130
+
131
+
#### 3-2). Create `dummy_application`
132
+
+ Click File->New->`RA C/C++ Project`.
133
+
+ Select `EK-RA6M4` from Drop-down list.
134
+
+ Check `Executable`.
135
+
+ Select `No RTOS` from RTOS selection. Click Next.
136
+
+ Check `Bare Metal Minimal`. Click Finish.
137
+
+ Go to `BSP` tab and Add `g_flash0 Flash(r_falsh_hp)` stack from `New Stack` -> `Storage`
138
+
139
+
Modify `g_flash0 Flash(r_flash_hp)` properites as follows:
+ Copy <u>configuration.xml</u> and pincfg under `dummy_application` to `app_RA`
146
+
+ Open Smart Configurator by clicking copied configuration.xml
147
+
+ Click `Generate Project Content` on Smart Configurator
148
+
+ Set `BSP_FEATURE_FLASH_SUPPORTS_ACCESS_WINDOW` to 1)
149
+
+ Linker option update, Click project->`Properties`->`C/C++ Build`->`Settings`->`GNU Arm Cross Linker`->`Miscellaneous`. Modify `--defsym=FLASH_IMAGE_START=0x10200` to `--defsym=FLASH_IMAGE_START=0x10200`
150
+
+ Build `app_RA` projet
108
151
109
-
Code Origin and entry point is "0x00010200". app_RA.elf is generated under Debug.
110
152
153
+
Code Origin and entry point is "0x00020200". app_RA.elf is gnerated under Debug.
111
154
### 4) Generate Wrapped Key for SCE
112
155
113
156
SCE needs to have a wrapped key for sign verification installed in advance. This section describes how to use wolfBoot with SCE. Current version supports RSA2048. SCE RSA Signature supports #PKCS 1, v1.5. You can generate a RSA key pair by wolfBoot "keygen" command along with Renesas Security Key Management Tool `skmt`. `skmt` command wraps the RAW key and generates C language initial data and a header file for an application program with SCE.
@@ -159,12 +202,14 @@ You can convert the binary file to hex format and download it to the board by Fl
The boot program checks integlity and authenticity of V2, swap the partition safely and initiates V2. You will see following message after the partition
233
-
information.
278
+
information. You can also see flashing each LED light in 5 second.
0 commit comments