ファームウェアのアップデート
This section provides instructions on how to update the firmware. We support many ways, such as via SEGGER J-Link, OpenOCD or Serial-COM.
注釈
Stay connected during the update process and use the correct Device and Interface.
The LEAPS UWBS also support firmware update over the BLE, refer Firmware Update over BLE for more detail information.
詳細については、以下から使用する方法を選択してください。
セットアップの準備
少なくともデバイスがあります。
更新するバイナリファイル。(.hex または .bin)
SEGGER J-Link <https://www.segger.com/downloads/jlink/#J-LinkSoftwareAndDocumentationPack>`_ をインストールしました。
** SEGGER J-Linkを使ったアップデート方法のステップバイステップの説明**
SEGGER J-Linkをインストールします。
Windows用のダウンロードファイル
JLink_Windows_V766_x86_64.exe
を探してください。
ファイルをダブルクリックしてインストールを開始します。
プロンプトが表示されたら、管理者パスワードを入力してください。
ライセンス条項を読み、同意してください。
デフォルトのインストール先フォルダは、通常
C:∕Program Files (x86)∕SEGGERJLink
にあります。デフォルトのUSBドライバを承認してください。
インストールが完了すると、システムフォルダにフォルダとドライバファイル一式がインストールされます。新しくインストールするたびに、これらのファイルは上書きされますのでご注意ください。
JLink_MacOSX_V766_x86_64.pkg`` という名前の macOS ダウンロードファイルを探してください。
ファイルをダブルクリックしてインストールを開始します。
ライセンス条項を読み、同意してください。
プロンプトが表示されたら、管理者パスワードを入力してください。このパスワードはアプリケーションフォルダに書き込むのに必要です。
インストール後、次の場所にフォルダができます:
/Applications/SEGGER/JLink_V766/
. バージョンごとにフォルダが異なることを覚えておいてください。このフォルダにはアプリケーションに関連するすべての実行ファイルとライブラリが保存されます。GNU/Linux用のSEGGERダウンロードサイトにアクセスし、目的のパッケージを見つけてください。32/64ビット版から選択してください。
.tgzファイルをダウンロードし、コンピュータに保存してください。
ターミナルウィンドウを開きます。
例えば、Ubuntu (Linux) で64ビットの .tgz ファイルをインストールするには、以下のコマンドを使ってください:
mkdir -p ~/opt/SEGGER cd ~/opt/SEGGER tar xf ~/Downloads/JLink_Linux_V766_x86_64.tgz chmod a-w ~/opt/SEGGER/JLink_Linux_V766_x86_64 ls -l ~/opt/SEGGER/JLink_Linux_V766_x86_64上記のコマンドを実行した後:
~/opt/SEGGER にフォルダが作成されます。
ダウンロードした .tgz ファイルの内容が ~/opt/SEGGER フォルダに展開されます。
JLink_Linux_V766_x86_64` ファイルのパーミッションが変更されます。
~/opt/SEGGER/JLink_Linux_V766_x86_64 フォルダの内容をチェックすることでインストールを確認できます。
新規インストール時にシステムフォルダ内の既存のファイルを上書きすることに注意してください。
Open the SEGGER J-Link then flash the binary file.
最新の J-Link ソフトウェア&ドキュメントパックがインストールされていることを確認してください。
J-LinkをPCに接続してください。
ターゲットシステムをJ-Linkに接続
J-Flash Liteの起動
![]()
デバイス、デバッグインターフェイス、通信速度の選択
ファイルを選択し、[デバイスをプログラム]をクリックするか、[チップを消去]をクリックします。
J-Flash Liteは要求された操作を実行します
![]()
最新の J-Link ソフトウェア&ドキュメントパックがインストールされていることを確認してください。
J-LinkをPCに接続します。
ターゲットシステムをJ-Linkに接続
J-Link Commanderを起動してください。
以下のコマンドを入力してください:
J-Link> device <devicename> // 既知のデバイスのリストについては、ここを参照してください。
J-Link> r
J-Link> h
J-Link> loadbin <PathToBinFile>, <programmingaddress>
J-Link Commander はフラッシュダウンロードを実行し、成功したら時間統計を出力します。
更新が完了すると、ボードは自動的にリセットされます。
セットアップの準備
少なくとも 1 つのデバイス。
パッケージには、アップデート用のスクリプトとバイナリが含まれています。
Installed OpenOCD.
Step-by-step instructions on how to update via OpenOCD (Open On-Chip Debugger)
Install the OpenOCD Debugger
Download the xPack OpenOCD package for Windows.
C:\xpack-openocd-0.11.0-1
フォルダーに解凍します。Add the path:
C:\xpack-openocd-0.11.0-1\bin
to your Windows User Path environment variable.
Download the xPack OpenOCD package for macOS.
tarball を解凍してローカルにインストールします。
For example, to install the xpack-openocd-0.11.0-1-linux-arm.tar.gz file, use the following commands:
mkdir -p ~/.local/xPacks/openocd cd ~/.local/xPacks/openocd tar -zxvf ~/Downloads/xpack-openocd-0.11.0-1-linux-arm.tar.gz (with PC’s AMD core, using … linux-x64.tar.gz with PC’s Intel core) .... sudo chmod -R -w xpack-openocd-0.11.0-1/ ~/.local/xPacks/openocd/xpack-openocd-0.11.0-1/bin/openocd --version export PATH="~/.local/xPacks/openocd/xpack-openocd-0.11.0-1/bin/:$PATH" cd ~ source .bashrc
Download the xPack OpenOCD package for GNU/Linux.
tarball を解凍してローカルにインストールします。
For example, on Ubuntu (Linux), to install the xpack-openocd-0.11.0-1-linux-arm.tar.gz file, use the following commands:
mkdir -p ~/.local/xPacks/openocd cd ~/.local/xPacks/openocd tar -zxvf ~/Downloads/xpack-openocd-0.11.0-1-linux-arm.tar.gz (with PC’s AMD core, using … linux-x64.tar.gz with PC’s Intel core) .... sudo chmod -R -w xpack-openocd-0.11.0-1/ ~/.local/xPacks/openocd/xpack-openocd-0.11.0-1/bin/openocd --version export PATH="~/.local/xPacks/openocd/xpack-openocd-0.11.0-1/bin/:$PATH" cd ~ source .bashrc
Check the OpenOCD version
openocd --version xPack OpenOCD, x86_64 Open On-Chip Debugger 0.11.0-00155-ge392e485e (2021-03-15-16:43) Licensed under GNU GPL v2 For bug reports, read http://openocd.org/doc/doxygen/bugs.html
Download and Extract the package to your PC.
Example with the UDK1 board: Use a program like WinZip or 7-Zip to extract the downloaded to be defined file.
お気に入りのターミナル アプリケーションを開きます。
Linux または macOS では、ターミナル アプリケーションのように。
Windowsでは Powershell アプリケーションのようなものです。
抽出されたパッケージが含まれるフォルダーに移動します。
cd から /path/to/LEAPS-UWBS-Firmware-OpenOCD
Use the cable to connect the device to your PC.
Example with the UDK1 board: Use a USB-C Data Cable to connect the USB-C Data Port 2 of devices to your PC.
スクリプトを実行して、ファームウェアを自動的に更新します。
Windows では、reflash-leaps-rtls-2ab.bat コマンドを使用します。
On macOS, Use the reflash-leaps-rtls-2ab.sh command.
On GNU/Linux, Use the reflash-leaps-rtls-2ab.sh command.
たとえば、Ubuntu (Linux) の場合:
./reflash-leaps-rtls-2ab.sh xPack OpenOCD, x86_64 Open On-Chip Debugger 0.11.0-00155-ge392e485e (2021-03-15-16:43) Licensed under GNU GPL v2 For bug reports, read http://openocd.org/doc/doxygen/bugs.html DEPRECATED! use 'adapter speed' not 'adapter_khz' set_test_mode Info : Using CMSIS-DAPv2 interface with VID:PID=0x0d28:0x0204, serial=01100E003602002e003f4146570120313238 Info : CMSIS-DAP: SWD Supported Info : CMSIS-DAP: FW Version = 2.1.0 Info : CMSIS-DAP: Serial# = 01100E003602002e003f4146570120313238 Info : CMSIS-DAP: Interface Initialised (SWD) Info : SWCLK/TCK = 1 SWDIO/TMS = 1 TDI = 0 TDO = 0 nTRST = 0 nRESET = 1 Info : CMSIS-DAP: Interface ready Info : high-speed (adapter speed 10000) may be limited by adapter firmware. Info : clock speed 10000 kHz Info : SWD DPIDR 0x2ba01477 Info : nrf52.cpu: hardware has 6 breakpoints, 4 watchpoints Info : starting gdb server for nrf52.cpu on 3333 Info : Listening on port 3333 for gdb connections target halted due to debug-request, current mode: Thread xPSR: 0x01000000 pc: 0x000031ec msp: 0x20003488 target halted due to debug-request, current mode: Thread xPSR: 0x01000000 pc: 0xfffffffe msp: 0xfffffffc Info : nRF52840-CKAA(build code: D0) 1024kB Flash, 256kB RAM auto erase enabled wrote 1048576 bytes from file leaps-rtls-all-2ab-v0.14-rc25.hex in 38.776192s (26.408 KiB/s)
更新が完了すると、ボードは自動的にリセットされます。
セットアップの準備
少なくとも 1 つのデバイス。
パッケージには、アップデート用のスクリプトとバイナリが含まれています。
Installed python3.
Step-by-step instructions on how to update via Serial-COM
Download and Extract the package to your PC.
Example with the UDK1 board: Use a program like WinZip or 7-Zip to extract the downloaded to be defined file.
お気に入りのターミナル アプリケーションを開きます。
Linux または macOS では、ターミナル アプリケーションのように。
Windowsでは Powershell アプリケーションのようなものです。
抽出されたパッケージが含まれるフォルダーに移動します。
cd to /path/to/LEAPS-UWBS-Firmware-Serial-COM
Install Dependencies. If it's your first time, you will need to install some Python binaries like:
serial (pip install serial)
libusb (pip install libusb
tqdm (pip install tqdm)
...
Can choose to use one of two ports to perform updates.
Example with the UDK1 board: If using USB-C Data Port 1, you can update eldr binaries and main binaries independently. On the contrary, if you use USB-C Data Port 2, you can update multiple devices continuously at the same time.
Use a USB-C Data Cable to connect the USB-C Data Port 1 of devices to your PC.
Run the following command to perform the update eldr and main: sudo python3 ./udk1-leaps-uwbs-serial-com.py --main ./main_binaries.bin --eldr ./eldr_binaries.bin
~/LEAPS-UWBS-Firmware-Serial-COM$ sudo python3 ./udk1-leaps-uwbs-serial-com.py --main ./udk1-leaps-uwbs-fira-v0.15.0-rc8.bin --eldr ./udk1-leaps-uwbs-eldr-v0.15.0-rc8.bin 03:11:55 Device 01/02 (SerialNumber=3DB15A2CCB8053C8): Reset 03:11:55 Device 02/02 (SerialNumber=904AD29FD29D2452): Reset 15:12:15 Device 01/02 (SerialNumber=904AD29FD29D2452): Uploading MAIN: 100%|████████████████████████████| 716192/716192 [00:16<00:00, 44623.94it/s] 15:12:15 Device 02/02 (SerialNumber=3DB15A2CCB8053C8): Uploading MAIN: 100%|████████████████████████████| 716192/716192 [00:16<00:00, 44630.31it/s] 15:12:37 Device 01/02 (SerialNumber=904AD29FD29D2452): Uploading ELDR: 100%|████████████████████████████| 235748/235748 [00:05<00:00, 42419.44it/s] 15:12:37 Device 02/02 (SerialNumber=3DB15A2CCB8053C8): Uploading ELDR: 100%|████████████████████████████| 235748/235748 [00:05<00:00, 42498.01it/s] 03:12:43 Resetting devices
Use a USB-C Data Cable to connect the USB-C Data Port 2 of devices to your PC. Run the following command to perform the update eldr or main:
python3 ./leaps-serial-com.py -d serial_port_of_device --eldr ./eldr_binaries.bin
python3 ./leaps-serial-com.py -d serial_port_of_device --main ./main_binaries.bin
~/LEAPS-UWBS-Firmware-Serial-COM$ python3 ./udk1-leaps-uwbs-serial-com.py -d /dev/ttyACM0 --eldr ./udk1-leaps-uwbs-eldr-v0.15.0-rc8.bin 02:54:30 Resetting device 02:54:33 Uploading file /home/leaps/LEAPS-UWBS-Firmware-v0.15.0/LEAPS-UWBS-Firmware-Serial-COM/udk1-leaps-uwbs-eldr-v0.15.0-rc8.bin (235748 bytes) 100%|████████████████████████████| 235748/235748 [00:28<00:00, 8129.43it/s] 02:55:07 Ok (upload time = 34.70 seconds) 02:55:10 Resetting device ~/LEAPS-UWBS-Firmware-Serial-COM$ python3 ./udk1-leaps-uwbs-serial-com.py -d /dev/ttyACM0 --main ./udk1-leaps-uwbs-fira-v0.15.0-rc8.bin 02:56:25 Resetting device 02:56:28 Uploading file /home/leaps/LEAPS-UWBS-Firmware-v0.15.0/LEAPS-UWBS-Firmware-Serial-COM/udk1-leaps-uwbs-fira-v0.15.0-rc8.bin (716192 bytes) 100%|████████████████████████████| 716192/716192 [01:27<00:00, 8175.81it/s] 02:58:11 Ok (upload time = 102.74 seconds) 02:58:14 Resetting device
アプリは、更新の進行状況を示す視覚的なインジケーターまたは進行状況バーを提供します。アップデートプロセスが完了するまで、辛抱強く待ってください。
更新が完了すると、ボードは自動的にリセットされます。
ファームウェアを確認し、成功を確認してください
For the connection, let’s first take a look at an overview of the main components of DWM1001-DEV and DWM3001CDK development kit.
注釈
For the UDK1 Kit, please refer to the detailed information in the ハードウェアインターフェイス section.

