@@ -105,9 +105,7 @@ both bootloader and the Nordic SoftDevice, you can freely upgrade/downgrade to a
105
105
## How to compile and build
106
106
107
107
You should only continue if you are looking to develop bootloader for your own.
108
- You must have have a J-Link available to "unbrick" your device.
109
-
110
- ### Option 1: Build with Makefile
108
+ You must have have a J-Link available to "unbrick" your device.
111
109
112
110
Prerequisites
113
111
@@ -117,7 +115,7 @@ Prerequisites
117
115
To build:
118
116
119
117
```
120
- make BOARD=feather_nrf52840_express all combinehex
118
+ make BOARD=feather_nrf52840_express all
121
119
```
122
120
123
121
To flash the bootloader with JLink:
@@ -138,12 +136,6 @@ To flash SoftDevice (and chip erase):
138
136
make BOARD=feather_nrf52840_express sd
139
137
```
140
138
141
- To erase all of flash:
142
-
143
- ```
144
- make BOARD=feather_nrf52840_express erase
145
- ```
146
-
147
139
For the list of supported boards, run ` make ` without ` BOARD= ` :
148
140
149
141
```
@@ -167,13 +159,11 @@ make: *** [_build/main.o] Error 127
167
159
```
168
160
169
161
... you may need to pass the location of the GCC ARM toolchain binaries to ` make ` using
170
- the variable ` GNU_INSTALL_ROOT ` as below:
162
+ the variable ` CROSS_COMPILE ` as below:
171
163
```
172
- $ make GNU_INSTALL_ROOT =/opt/gcc-arm-none-eabi-9-2019-q4-major/bin/ BOARD=feather_nrf52832 all
164
+ $ make CROSS_COMPILE =/opt/gcc-arm-none-eabi-9-2019-q4-major/bin/arm-none-eabi- BOARD=feather_nrf52832 all
173
165
```
174
166
175
- _ Please note that the path needs a trailing path separator (a ` / ` )_
176
-
177
167
#### 2. ` mergehex: No such file or directory `
178
168
179
169
Make sure that ` mergehex ` is available from the command-line. This binary is
@@ -184,22 +174,3 @@ part of Nordic's nRF5x Command Line Tools.
184
174
Make sure that ` nrfjprog ` is available from the command-line. This binary is
185
175
part of Nordic's nRF5x Command Line Tools.
186
176
187
- On POSIX-type systems you can temporarily add the path to ` nrfjprog ` via a
188
- variation on the following command:
189
-
190
- ```
191
- $ export PATH=$PATH:/location/of/nRF5x-Command-Line-Tools_9_7_2_OSX/nrfjprog
192
- ```
193
-
194
- ### Option 2: Build using Segger Embedded Studio
195
-
196
- For easier debugging you can also use [ SES] ( https://www.segger.com/products/development-tools/embedded-studio/ ) .
197
- The project file is located at ` src/segger/Adafruit_nRF52_Bootloader.emProject ` .
198
-
199
- > ** Note** : SES only flashes the bootloader when you click download, not the SoftDevice.
200
- You need to flash the SoftDevice beforehand if you haven't already done so.
201
- As mentioned above do something like:
202
-
203
- ```
204
- make BOARD=feather_nrf52840_express sd
205
- ```
0 commit comments