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
Copy file name to clipboardExpand all lines: README.md
+26-5Lines changed: 26 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -107,6 +107,8 @@ you must do.
107
107
sudo apt-get update
108
108
sudo apt-get install gcc-arm-embedded
109
109
110
+
### With JLink
111
+
110
112
2. Install the JLink [software](https://www.segger.com/jlink-software.html)
111
113
for your platform. You want the "Software and documentation pack".
112
114
@@ -122,12 +124,31 @@ The "EDU" edition works fine.
122
124
123
125
make erase-all
124
126
125
-
See the [make](https://github.com/lab11/nrf5x-base/tree/master/make) folder
126
-
for a complete list of commands.
127
+
### With STLink/v2
128
+
129
+
2. Install [openocd](http://openocd.org/), an On-Chip Debugging / In-System Programming tool.
130
+
131
+
On Ubuntu:
132
+
133
+
sudo apt-get install openocd
134
+
135
+
3. Get a [STLink/v2 programmer](http://www.st.com/en/development-tools/st-link-v2.html).
136
+
There are also popular unofficial versions described [here](http://wiki.sgmk-ssam.ch/wiki/STM32_dev#ST-Link_V2_Programmer) in more detail.
137
+
138
+
4. Program an app! With the STLink attached to the target board:
139
+
140
+
make flash-softdevice # only necessary the first time, after erase of if you change the softdevice
141
+
make flash
142
+
143
+
will write the app and softdevice to the nRF51822. You can erase
144
+
a chip with:
145
+
146
+
make erase-all
147
+
148
+
149
+
See the [make](https://github.com/lab11/nrf5x-base/tree/master/make) folder for a complete list of commands.
127
150
128
-
Most of our boards use a [TagConnect header](http://www.tag-connect.com/TC2030-IDC-NL)
129
-
instead of the way-too-large ARM JTAG header. We use [our own](https://github.com/lab11/jtag-tagconnect)
130
-
adapter, but Segger also makes [one](https://www.segger.com/jlink-6-pin-needle-adapter.html).
151
+
Most of our boards use a [TagConnect header](http://www.tag-connect.com/TC2030-IDC-NL) instead of the way-too-large ARM JTAG header. We use [our own](https://github.com/lab11/jtag-tagconnect) adapter, but Segger also makes [one](https://www.segger.com/jlink-6-pin-needle-adapter.html).
0 commit comments