diff options
| author | JF <jf@codingfield.com> | 2020-06-16 19:15:16 (GMT) |
|---|---|---|
| committer | Gitea <gitea@fake.local> | 2020-06-16 19:15:16 (GMT) |
| commit | 3a49bbbae48a62d5252fee0cb6d04002d917c820 (patch) | |
| tree | 800c2ab76a4609382865ba9fd8b16b9732e5eb03 /README.md | |
| parent | a0e73f5c1a1e652aa6270b7e42a73aee3d12ded6 (diff) | |
| parent | 9a89ff7f7764df085a59c8a24fe578228a22fc6c (diff) | |
Merge branch 'develop' of JF/PineTime into master
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 12 |
1 files changed, 10 insertions, 2 deletions
@@ -92,16 +92,24 @@ GDB (Back Magic Probe) ``` $ mkdir build $ cd build -$ cmake -DARM_NONE_EABI_TOOLCHAIN_PATH=... -DNRF5_SDK_PATH=... -DUSE_GDB_CLIENT=1 -DGDB_CLIENT_BIN_PATH=... -DGDB_CLIENT_TARGET_REMOTE=... -DMERGEHEX=... ../ +$ cmake -DARM_NONE_EABI_TOOLCHAIN_PATH=... -DNRF5_SDK_PATH=... -DUSE_GDB_CLIENT=1 -DGDB_CLIENT_BIN_PATH=... -DGDB_CLIENT_TARGET_REMOTE=... ../ ``` 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=... ../ +$ cmake -DARM_NONE_EABI_TOOLCHAIN_PATH=... -DNRF5_SDK_PATH=... -DUSE_OPENOCD=1 -DGDB_CLIENT_BIN_PATH=[optional] ../ ``` + +**Note** : By default, the build configuration *Release* is applied. It means that the code is built with optimisations enabled (-O3). If you wanto to compile in *Debug* mode to ease debugging and step-by-step debugging, specify the CMake variable `CMAKE_BUILD_TYPE` in the CMake command line: + +``` +-DCMAKE_BUILD_TYPE=Debug +``` + + * Make ``` $ make -j pinetime-app |
