0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

fota (nrf52840DK)

Last updated at Posted at 2022-11-14

ncs(嘘)zephyr(正)でfotaを動かすてっとり速いサンプル(smp_svr)

  • ubuntu 18.04
  • Zephyr version: 3.1.99
  • zephyr-sdk-0.15.1

1ビルドする

hoge@hoge-pc:~/ncs/zephyr/samples/subsys/mgmt/mcumgr/smp_svr$ west build -b nrf52840dk_nrf52840 -- -DOVERLAY_CONFIG=overlay-bt.conf
...
~~ ビルドの進捗が色々でてくる ~~
...
Enabling pin reset.
Applying pin reset.
-- runners.nrfjprog: Board with serial number 683499054 flashed successfully.

2フラッシュする

hoge@hoge-pc:~/ncs/zephyr/samples/subsys/mgmt/mcumgr/smp_svr$ west flash
-- west flash: rebuilding
...
~~進捗が色々でてくる~~
...
Parsing image file.
Applying system reset.
Verifying programming.
Verified OK.
Enabling pin reset.
Applying pin reset.
-- runners.nrfjprog: Board with serial number 683499054 flashed successfully.

準備OK

nRF Connect Device Managerで動作確認

スマホから、ビルド済みのバイナリをble経由でアップデートする手順↓

IMG_3881.PNG

デフォルトで、コンプリートローカルネームは"Zephyr"なので、選択する
IMG_3882.PNG

エコーサーバーを備えているので、適当に文字を送って動作チェックできる。
IMG_3883.PNG

  • 下のメニューから、イメージをアップデートする。(イメージは予め用意しておいたもの)
  • ここではzephyr/samples/basic/threadをmcuboot向けにビルドしたものをスマホにいれています。
IMG_3884.PNG

アップデートしてみます
IMG_3886.PNG

以上で、nrf52840dkのLEDがチカチカして、無事アップデート完了したことがわかります。

取り急ぎ。細かいことはきりがないのですが、ぱっと動く手順です。
ubuntuの話ですが、コンソールから操作する場合はmcumgrコマンドが使えます。

参考

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?