Skip to content
Snippets Groups Projects
Unverified Commit 7a5d2ad2 authored by Alexandre Abadie's avatar Alexandre Abadie
Browse files

boards/nrf52: thingy52 and ruuvitag don't work with openocd

parent a2cfa526
No related branches found
No related tags found
No related merge requests found
...@@ -27,6 +27,10 @@ ifeq (jlink,$(PROGRAMMER)) ...@@ -27,6 +27,10 @@ ifeq (jlink,$(PROGRAMMER))
endif endif
include $(RIOTMAKE)/tools/jlink.inc.mk include $(RIOTMAKE)/tools/jlink.inc.mk
else ifeq (openocd,$(PROGRAMMER)) else ifeq (openocd,$(PROGRAMMER))
ifneq (,$(filter $(BOARD),ruuvitag thingy52))
# openocd doesn't fully work with ruuvitag and thingy52
$(error Cannot use OpenOCD with $(BOARD) board)
endif
# setup OpenOCD for flashing. Version 0.10 of OpenOCD doesn't contain support # setup OpenOCD for flashing. Version 0.10 of OpenOCD doesn't contain support
# for nrf52dk and nrf52840dk boards. To use OpenOCD with these a version # for nrf52dk and nrf52840dk boards. To use OpenOCD with these a version
# build from source (master > 2018, August the 13rd) is required. # build from source (master > 2018, August the 13rd) is required.
......
...@@ -14,9 +14,11 @@ Example with `hello-world` application: ...@@ -14,9 +14,11 @@ Example with `hello-world` application:
make BOARD=<nrf52 board> -C examples/hello-world flash make BOARD=<nrf52 board> -C examples/hello-world flash
``` ```
OpenOCD can also be used to flash nrf52 boards. For the moment, the latest OpenOCD can also be used to flash nrf52 boards (except thingy52 and ruuvitag
stable version of OpenOCD (0.10) doesn't contain any support for nrf52 but because they are hardly coupled with JLink segger_rtt stdio).
versions built against the current development version can be used. For the moment, the latest stable version of OpenOCD (0.10) doesn't contain any
support for nrf52 but versions built against the current development version
can be used.
To flash the board with OpenOCD, use the `PROGRAMMER` variable: To flash the board with OpenOCD, use the `PROGRAMMER` variable:
``` ```
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment