summaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorJF <jf@codingfield.com>2020-01-26 18:30:27 (GMT)
committerJF <jf@codingfield.com>2020-01-26 18:30:27 (GMT)
commitdff0d747c4252c17be182d4b25c4342b778ca65a (patch)
treebb696fb7709e5ff9e0ad961f5ced86882fef4ac3 /README.md
parent7c03810f46ff1f7accd2f5adb7404b4f2cb723d9 (diff)
parenta956ed1e61533854d460385336ace6f37c277a87 (diff)
Merge branch 'luben93-messing-with-openocd'
Diffstat (limited to 'README.md')
-rw-r--r--README.md27
1 files changed, 23 insertions, 4 deletions
diff --git a/README.md b/README.md
index d45f7ab..dc0ef39 100644
--- a/README.md
+++ b/README.md
@@ -44,10 +44,10 @@ See [this page](./doc/PinetimeStubWithNrf52DK.md)
* Clone this repo
* **[JLINK]** Call CMake with the following command line argument
- - -DARM_NONE_EABI_TOOLCHAIN_PATH=[Path to the toolchain directory]
- - -DNRF5_SDK_PATH=[Path to the SDK directory]
- - -DUSE_JLINK=1
- - -DNRFJPROG=[Path to NRFJProg executable]
+ - -DARM_NONE_EABI_TOOLCHAIN_PATH=[Path to the toolchain directory]
+ - -DNRF5_SDK_PATH=[Path to the SDK directory]
+ - -DUSE_JLINK=1
+ - -DNRFJPROG=[Path to NRFJProg executable]
* OR
* **[GDB CLIENT (if you use a BlackMagicProbe, for example)]** Call CMake with the following command line argument
@@ -58,6 +58,18 @@ See [this page](./doc/PinetimeStubWithNrf52DK.md)
- -DGDB_CLIENT_BIN_PATH=[Path to arm-none-eabi-gdb executable]
- -DGDB_CLIENT_TARGET_REMOTE=[Target remote connetion string. Ex : /dev/ttyACM0]
+ * OR
+ * **[OPENOCD (if you use a STlink v2 clone, for example)]** Call CMake with the following command line argument
+
+ - -DARM_NONE_EABI_TOOLCHAIN_PATH=[Path to the toolchain directory]
+ - -DNRF5_SDK_PATH=[Path to the SDK directory]
+ - -DUSE_OPENOCD=1
+
+ * Optionally, if you want to use a another version then whats on your path
+
+ - -DOPENOCD_BIN_PATH=[path to openocd]
+
+
* Optionally, you can define MERGEHEX with the path to the ```mergehex``` tool from [NRF5X Command Line Tools](https://infocenter.nordicsemi.com/index.jsp?topic=%2Fug_nrf5x_cltools%2FUG%2Fcltools%2Fnrf5x_command_line_tools_lpage.html&cp=6_1) to be able to merge the application and softdevice into one HEX file. In this case the merged file is generated in src/pinetime-app-full.hex
- -DMERGEHEX=[Path to the mergehex executable]
@@ -76,6 +88,13 @@ $ cd build
$ cmake -DARM_NONE_EABI_TOOLCHAIN_PATH=... -DNRF5_SDK_PATH=... -DUSE_GDB_CLIENT=1 -DGDB_CLIENT_BIN_PATH=... -DGDB_CLIENT_TARGET_REMOTE=... -DMERGEHEX=... ../
```
+OpenOCD (STlink v2 clones)
+```
+$ mkdir build
+$ cd build
+$ cmake -DARM_NONE_EABI_TOOLCHAIN_PATH=... -DNRF5_SDK_PATH=... -DUSE_OPENOCD=1 -DGDB_CLIENT_BIN_PATH=[optional] -DMERGEHEX=... ../
+```
+
* Make
```
$ make -j pinetime-app