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
@@ -31,18 +53,10 @@ From wolfBoot root directory, copy the example configuration:
31
53
cp config/examples/rp2350.config .config
32
54
```
33
55
34
-
By default, the config file indicates the following partition layout:
35
-
36
-
```
37
-
wolfBoot partition: 256 KB, at address 0x10000000 to 0x1003FFFF
38
-
Boot partition: 768 KB, at address 0x10040000 to 0x1007FFFF
39
-
Update partition: 768 KB, at address 0x10100000 to 0x1013FFFF
40
-
Swap space: 4 KB, at address 0x101C0000 to 0x101C0FFF
41
-
Unused flash space: 252 KB, at address 0x101C1000 to 0x101FFFFF
42
-
```
43
-
44
56
You can now edit the .config file to change partition sizes/offsets, algorithms,
45
-
add/remove features, etc.
57
+
disable trustzone, add/remove features, etc.
58
+
59
+
When TZEN=0, the application will run in the Secure domain.
46
60
47
61
When the configuration is complete, run `make`. This will:
48
62
@@ -61,6 +75,7 @@ return to this directory and run:
61
75
62
76
```
63
77
cd wolfboot
78
+
export PICO_SDK_PATH=...
64
79
./build-wolfboot.sh
65
80
```
66
81
@@ -69,7 +84,8 @@ This version of wolfboot incorporates the `.boot2` sequence needed to enable
69
84
the QSPI device, provided by the pico-sdk and always embedded in all
70
85
applications.
71
86
72
-
wolfboot.bin contains the bootloader, configured as follows:
87
+
wolfboot.bin contains the bootloader, and can be loaded into the RP2350, starting at address 0x10000000.
88
+
The script will automatically upload the binary if a JLink debugger is connected.
73
89
74
90
### Building and uploading the application
75
91
@@ -85,6 +101,13 @@ The linker script included is modified to change the application entry point
85
101
from 0x10000000 to 0x10040400, which is the start of the application code,
86
102
taking into account the wolfBoot header size.
87
103
104
+
The application is signed with the wolfBoot private key, and the signature is
105
+
stored in the manifest header of the application binary.
106
+
107
+
The output file `build/blink_v1_signed.bin` is automatically uploaded to the RP2350 if a JLink debugger is connected.
108
+
The application image is stored in the boot partition, starting at address 0x10040000.
109
+
The entry point of the application (0x10040400), set in the linker script `hal/rp2350-app.ld`, is the start of the application code, taking into account the wolfBoot header size.
110
+
88
111
89
112
### Testing the application
90
113
@@ -93,3 +116,5 @@ every 500ms.
93
116
94
117
If the above steps are successful, the LED on the board should start blinking.
95
118
119
+
The code has been tested on a Seeed studio XIAO RP2350 board.
0 commit comments