File tree Expand file tree Collapse file tree 2 files changed +17
-3
lines changed Expand file tree Collapse file tree 2 files changed +17
-3
lines changed Original file line number Diff line number Diff line change @@ -87,16 +87,25 @@ you must do.
87
87
brew tap ArmMbed/homebrew-formulae
88
88
brew install arm-none-eabi-gcc
89
89
90
- 2 . Install the JLink [ software] ( https://www.segger.com/jlink-software.html )
90
+ 2 . Install Nordic's [ command line
91
+ tools] ( https://infocenter.nordicsemi.com/index.jsp?topic=%2Fug_nrf5x_cltools%2FUG%2Fcltools%2Fnrf5x_installation.html )
92
+ ` mergehex ` and ` nrfjprog ` . Ensure these tools are extracted and added to your path.
93
+
94
+ 3 . Install the JLink [ software] ( https://www.segger.com/jlink-software.html )
91
95
for your platform. You want the "Software and documentation pack".
92
96
93
- 3 . Acquire a [ JLink JTAG programmer] ( https://www.segger.com/jlink-general-info.html ) .
97
+ 4 . Acquire a [ JLink JTAG programmer] ( https://www.segger.com/jlink-general-info.html ) .
94
98
The "EDU" edition works fine.
95
99
96
- 4 . Program an app! With the JLink box attached to the target board:
100
+ 5 . Program an app! With the JLink box attached to the target board:
97
101
98
102
make flash
99
103
104
+ will write the app and softdevice to the device. You can erase
105
+ a chip with:
106
+
107
+ make erase-all
108
+
100
109
See the [ make] ( https://github.com/lab11/nrf5x-base/tree/master/make ) folder
101
110
for a complete list of commands.
102
111
Original file line number Diff line number Diff line change @@ -118,6 +118,11 @@ erase: $(BUILDDIR)
118
118
$(Q ) printf " w4 4001e504 2\nw4 4001e50c 1\nsleep 100\nr\nexit\n" > $(BUILDDIR ) erase.jlink
119
119
$(Q )$(JLINK ) $(JLINK_FLAGS ) $(BUILDDIR ) erase.jlink
120
120
121
+ .PHONY : erase-all
122
+ erase-all : $(BUILDDIR )
123
+ $(Q ) printf " erase\nsleep 100\nr\nexit\n" > $(BUILDDIR ) erase.jlink
124
+ $(Q )$(JLINK ) $(JLINK_FLAGS ) $(BUILDDIR ) erase.jlink
125
+
121
126
.PHONY : gdb
122
127
gdb :
123
128
ifeq ($(UNAME_S ) ,Darwin)
You can’t perform that action at this time.
0 commit comments