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?

Raspberry Pi5 (bookworm)でpulseviewをインストールするメモ

Posted at

はじめに

Raspberry Pi5でロジックアナライザのGUIであるPulseViewをインストールしようとしましたが、最初はうまく動作しなかったので、動作するインストール手順を記録しておきます。

前提

以下の環境を用意しました。OSイメージの状態によって動作が変わる可能性がありますので、ご留意下さい。

事前準備

  1. microSD cardにRaspberry Pi Imagerなどを使ってRaspberry Pi OS (other)の中にあるRaspberry Pi OS (Legacy, 64bit) (bookworm)を書き込みます。
  2. microSD cardをRaspberry Pi5にセットしてブートします。
  3. GUIからターミナルを開いて初期設定をします。
    • raspi-configからロケール関係の設定を日本語にする。Imagerでのロケールの設定が反映されていないようなので、起動後に確認する必要があります。
    • パッケージを最新にする。sudo apt update && sudo apt -y upgrade

最新のRaspbian OSであるTrixieを選ばなかったのは、設定周りで色々不具合があったためです。

インストール

  1. ロジックアナライザをRaspberry Pi5から外す。
  2. 関連パッケージをインストールする sudo apt install pulseview sigrok sigrok-cli

pulseviewだけでなく、sigrok, sigrok-cliもインストールすること。

動作確認

  1. ロジックアナライザをRaspberry Pi5に接続する。
  2. sigrok-cli --scanを実行して以下のような表示になれば正常動作しています。
    $ sigrok-cli --scan
    The following devices were found:
    demo - Demo device with 13 channels: D0 D1 D2 D3 D4 D5 D6 D7 A0 A1 A2 A3 A4
    fx2lafw:conn=3.8 - Saleae Logic [S/N: Saleae Logic] with 8 channels: D0 D1 D2 D3 D4 D5 D6 D7
    
  3. pulseviewを起動します。以下のウィンドウが表示されます。
    image.png
  4. 上部中央のSaleae Logicと書かれた部分をクリックします。Connect to Deviceのウィンドウが表示されます。
  • Step 1: Choose the driverはfx2lafwをプルダウンメニューから選びます。(Sparkfunのロジアナの場合異)
  • Step 2: Choose the interfaceでUSBを選びます。
  • Step 3: Scan for devicesですぐ下の"Scan for devices using driver above"のボタンをクリックします。
  • Step 4: Select the deviceで"Saleae Logic with 8 channels"を選択します。
    image.png
  • ここまで設定したら右下のOKボタンをクリックします。

これで使える状態になりました。以下の通り、信号解析が出来るようになります。

image.png

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?