Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #9407 from aabadie/pr/board/nrf52dk_openocd
boards/nrf52: add openocd as programmer option
- Loading branch information
Showing
11 changed files
with
94 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
boards/nrf52840-mdk/dist/openocd.cfg → boards/common/nrf52/dist/openocd.cfg
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
transport select swd | ||
|
||
source [find target/nrf52.cfg] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
/** | ||
@defgroup boards_common_nrf52 nRF52 common | ||
@ingroup boards_common | ||
@brief Common files and configuration for nRF52 boards. | ||
|
||
## Flashing nrf52 boards | ||
|
||
By default, nrf52 boards are flashed using Jlink. @ref boards_nrf52840-mdk | ||
uses PyOCD by default. | ||
|
||
To flash the board, use `BOARD=<nrf52 board>` with the `make` command.<br/> | ||
Example with `hello-world` application: | ||
``` | ||
make BOARD=<nrf52 board> -C examples/hello-world flash | ||
``` | ||
|
||
OpenOCD can also be used to flash nrf52 boards (except thingy52 and ruuvitag | ||
because they are hardly coupled with JLink segger_rtt stdio). | ||
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: | ||
``` | ||
PROGRAMMER=openocd make BOARD=<nrf52 board> -C examples/hello-world flash | ||
``` | ||
|
||
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters