You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .devcontainer/Dockerfile
+7-7Lines changed: 7 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -13,7 +13,7 @@ RUN apt-get update -qq \
13
13
python3-pip \
14
14
tar \
15
15
unzip \
16
-
wget \
16
+
wget \
17
17
curl \
18
18
dos2unix \
19
19
clang-format-12 \
@@ -23,15 +23,15 @@ RUN apt-get update -qq \
23
23
# aarch64 packages
24
24
libffi-dev \
25
25
libssl-dev \
26
-
python3-dev \
26
+
python3-dev \
27
27
rustc \
28
28
&& rm -rf /var/cache/apt/* /var/lib/apt/lists/*;
29
-
30
-
#SET LOCALE
29
+
30
+
#SET LOCALE
31
31
RUN locale-gen en_US.UTF-8
32
32
ENV LANG en_US.UTF-8
33
33
ENV LANGUAGE en_US:en
34
-
ENV LC_ALL en_US.UTF-8
34
+
ENV LC_ALL en_US.UTF-8
35
35
36
36
RUN pip3 install adafruit-nrfutil
37
37
# required for McuBoot
@@ -47,7 +47,7 @@ RUN chmod +x create_build_openocd.sh
47
47
# Lets get each in a separate docker layer for better downloads
48
48
# GCC
49
49
# RUN bash -c "source /opt/build.sh; GetGcc;"
50
-
RUN wget https://developer.arm.com/-/media/Files/downloads/gnu-rm/9-2020q2/gcc-arm-none-eabi-9-2020-q2-update-x86_64-linux.tar.bz2 -O - | tar -xj -C /opt
50
+
RUN wget https://developer.arm.com/-/media/Files/downloads/gnu-rm/9-2020q2/gcc-arm-none-eabi-10.3-2021.10-x86_64-linux.tar.bz2 -O - | tar -xj -C /opt
51
51
# NrfSdk
52
52
# RUN bash -c "source /opt/build.sh; GetNrfSdk;"
53
53
RUN wget -q "https://developer.nordicsemi.com/nRF5_SDK/nRF5_SDK_v15.x.x/nRF5_SDK_15.3.0_59ac345.zip" -O /tmp/nRF5_SDK_15.3.0_59ac345
@@ -61,5 +61,5 @@ RUN pip3 install -r ./mcuboot/scripts/requirements.txt
Copy file name to clipboardExpand all lines: doc/buildAndProgram.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -27,12 +27,12 @@ CMake configures the project according to variables you specify the command line
27
27
28
28
Variable | Description | Example|
29
29
----------|-------------|--------|
30
-
**ARM_NONE_EABI_TOOLCHAIN_PATH**|path to the toolchain directory|`-DARM_NONE_EABI_TOOLCHAIN_PATH=/home/jf/nrf52/gcc-arm-none-eabi-9-2020-q2-update/`|
30
+
**ARM_NONE_EABI_TOOLCHAIN_PATH**|path to the toolchain directory|`-DARM_NONE_EABI_TOOLCHAIN_PATH=/home/jf/nrf52/gcc-arm-none-eabi-10.3-2021.10/`|
31
31
**NRF5_SDK_PATH**|path to the NRF52 SDK|`-DNRF5_SDK_PATH=/home/jf/nrf52/Pinetime/sdk`|
32
32
**USE_JLINK, USE_GDB_CLIENT and USE_OPENOCD**|Enable *JLink* mode, *GDB Client* (Black Magic Probe) mode or *OpenOCD* mode (set the one you want to use to `1`)|`-DUSE_JLINK=1`
33
33
**CMAKE_BUILD_TYPE (\*)**| Build type (Release or Debug). Release is applied by default if this variable is not specified.|`-DCMAKE_BUILD_TYPE=Debug`
34
34
**NRFJPROG**|Path to the NRFJProg executable. Used only if `USE_JLINK` is 1.|`-DNRFJPROG=/opt/nrfjprog/nrfjprog`
35
-
**GDB_CLIENT_BIN_PATH**|Path to arm-none-eabi-gdb executable. Used only if `USE_GDB_CLIENT` is 1.|`-DGDB_CLIENT_BIN_PATH=/home/jf/nrf52/gcc-arm-none-eabi-9-2019-q4-major/bin/arm-none-eabi-gdb`
35
+
**GDB_CLIENT_BIN_PATH**|Path to arm-none-eabi-gdb executable. Used only if `USE_GDB_CLIENT` is 1.|`-DGDB_CLIENT_BIN_PATH=/home/jf/nrf52/gcc-arm-none-eabi-10.3-2021.10/bin/arm-none-eabi-gdb`
36
36
**GDB_CLIENT_TARGET_REMOTE**|Target remote connection string. Used only if `USE_GDB_CLIENT` is 1.|`-DGDB_CLIENT_TARGET_REMOTE=/dev/ttyACM0`
37
37
**BUILD_DFU (\*\*)**|Build DFU files while building (needs [adafruit-nrfutil](https://github.com/adafruit/Adafruit_nRF52_nrfutil)).|`-DBUILD_DFU=1`
38
38
**WATCH_COLMI_P8**|Use pin configuration for Colmi P8 watch|`-DWATCH_COLMI_P8=1`
Copy file name to clipboardExpand all lines: doc/buildWithVScode.md
+2-5Lines changed: 2 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,9 +6,9 @@ The .VS Code folder contains configuration files for developing InfiniTime with
6
6
7
7
To support as many setups as possible the VS Code configuration files expect there to be certain environment variables to be set.
8
8
9
-
Variable | Description | Example
9
+
Variable | Description | Example
10
10
----------|-------------|--------
11
-
**ARM_NONE_EABI_TOOLCHAIN_PATH**|path to the toolchain directory|`export ARM_NONE_EABI_TOOLCHAIN_PATH=/opt/gcc-arm-none-eabi-9-2020-q2-update`
11
+
**ARM_NONE_EABI_TOOLCHAIN_PATH**|path to the toolchain directory|`export ARM_NONE_EABI_TOOLCHAIN_PATH=/opt/gcc-arm-none-eabi-10.3-2021.10`
12
12
**NRF5_SDK_PATH**|path to the NRF52 SDK|`export NRF5_SDK_PATH=/opt/nRF5_SDK_15.3.0_59ac345`
13
13
14
14
## VS Code Extensions
@@ -47,6 +47,3 @@ To use the DevContainer configuration on Ubuntu based systems two changes need t
47
47
3. To start debugging launch openocd on your host system with the appropriate configuration, for example with a stlink-v2 the command is:
48
48
``openocd -f interface/stlink.cfg -f target/nrf52.cfg``. This launches openocd with the default ports ``3333``, ``4444`` and ``6666``.
49
49
4. In VsCode go to the Debug pane on the left of the screen and select the configuration ``Debug - Openocd docker Remote`` and hit the play button on the left.
0 commit comments