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 Pi 5用UART - USB変換を使ってみた

Last updated at Posted at 2024-06-01

Raspberry Pi 5には、基板上にUARTコネクタが用意されているので、UART-USB変換/デバッグアダプターを購入して使ってみました。

Raspberry Pi 5用UART - USB変換/デバッグアダプター

ラズパイの以下の赤い矩形の部分がUARTコネクタになります。
image.png

今回ホストPCは、Windows PCを使用しました。
OSはWindows11です。
アダプタをPCに挿した後は、ドライバをインストールすこともなくサクッと使えました。
下の画像のようにCOM3に割り当てられています。

image.png

デバイスとして認識したのを確認したので実際に使ってみます。

ターミナルエミュレータとしては、TeraTeamを利用しています。
シリアルポートの設定は、以下の画面のようにしています。
デフォルトではスピードが9600だと思いますので、115200に変更します。
それ以外の値は変更しません。

シリアル設定.png

接続後、エンターキーを叩くと、ログインプロンプトが表示されると思います。

接続しておくと、以下のようにreboot時のシャットダウン→起動の出力メッセージがみられます。

他のコンソールからrebootを実行
raspberrypi5 login: [ 2440.301805] watchdog: watchdog0: watchdog did not stop!
[ 2440.700543] watchdog: watchdog0: watchdog did not stop!
[ 2440.744714] reboot: Restarting system

RPi: BOOTSYS release VERSION:d1744d21 DATE: 2024/04/20 TIME: 11:53:30
BOOTMODE: 0x06 partition 0 build-ts BUILD_TIMESTAMP=1713610410 serial aa3efd1c boardrev d04170 stc 836090
AON_RESET: 00000003 PM_RSTS 00000020
RP1_BOOT chip ID: 0x20001927
PM_RSTS: 0x00000020
part 00000000 reset_info 00000000
PMIC reset-event 00000000 rtc 665c0422 alarm 00000000 enabled 0
uSD voltage 3.3V
Initialising SDRAM 'Micron' 32Gb x2 total-size: 64 Gbit 4267
DDR 4267 1 0 64 152
OTP boardrev d04170 bootrom a a
Customer key hash 0000000000000000000000000000000000000000000000000000000000000000
VC-JTAG unlocked
RP1_BOOT chip ID: 0x20001927

RP1_BOOT chip ID: 0x20001927
RP1_BOOT: fw size 25992
PCI2 init
PCI2 reset
PCIe scan 00001de4:00000001
RP1_CHIP_INFO 20001927

RPi: BOOTLOADER release VERSION:d1744d21 DATE: 2024/04/20 TIME: 11:53:30
BOOTMODE: 0x06 partition 0 build-ts BUILD_TIMESTAMP=1713610410 serial aa3efd1c boardrev d04170 stc 3834529
AON_RESET: 00000003 PM_RSTS 00000020
PCIEx1: PWR 0 DET_WAKE 0
M.2 PCIe HAT not detected.
usb_pd_init status 3
USB_PD CONFIG 0 43
XHCI-STOP
xHC0 ver: 272 HCS: 03000440 140000f1 07ff000a HCC: 0240fe6d
USBSTS 1
xHC0 ver: 272 HCS: 03000440 140000f1 07ff000a HCC: 0240fe6d
xHC0 ports 3 slots 64 intrs 4
XHCI-STOP
xHC1 ver: 272 HCS: 03000440 140000f1 07ff000a HCC: 0240fe6d
USBSTS 1
xHC1 ver: 272 HCS: 03000440 140000f1 07ff000a HCC: 0240fe6d
xHC1 ports 3 slots 64 intrs 4
USB-PD: src-cap PDO object1 0x080191f4
Current 5000 mA
Voltage 5000 mV
USB-PD: src-cap PDO object2 0x0002d12c
Current 3000 mA
Voltage 9000 mV
USB-PD: src-cap PDO object3 0x0003c0e1
Current 2250 mA
Voltage 12000 mV
USB-PD: src-cap PDO object4 0x0004b0b4
Current 1800 mA
Voltage 15000 mV
Boot mode: SD (01) order f4
SD HOST: 200000000 CTL0: 0x00800000 BUS: 400000 Hz actual: 390625 HZ div: 512 (256) status: 0x1fff0000 delay: 276
SD HOST: 200000000 CTL0: 0x00800f00 BUS: 400000 Hz actual: 390625 HZ div: 512 (256) status: 0x1fff0000 delay: 276
OCR c0ff8000 [101]
CID: 0002544d5341363447792b51bde00178
CSD: 400e00325b590001cdd37f800a400000
SD: bus-width: 4 spec: 2 SCR: 0x02058083 0x01000000
SD HOST: 200000000 CTL0: 0x00800f04 BUS: 50000000 Hz actual: 50000000 HZ div: 4 (2) status: 0x1fff0000 delay: 2
MBR: 0x00002000, 1048576 type: 0x0c
MBR: 0x00102000,120008704 type: 0x83
MBR: 0x00000000,       0 type: 0x00
MBR: 0x00000000,       0 type: 0x00
Trying partition: 0
type: 32 lba: 8192 'mkfs.fat' ' bootfs     ' clusters 261116 (4)
rsc 32 fat-sectors 2040 root dir cluster 2 sectors 0 entries 0
FAT32 clusters 261116
[sdcard] autoboot.txt not found
Select partition rsts 0 C(boot_partition) 0 EEPROM config 0 result 0
Trying partition: 0
type: 32 lba: 8192 'mkfs.fat' ' bootfs     ' clusters 261115 (4)
rsc 32 fat-sectors 2040 root dir cluster 2 sectors 0 entries 0
FAT32 clusters 261115
Read config.txt bytes     1213 hnd 0x199
[sdcard] pieeprom.upd not found
usb_max_current_enable default 0 max-current 5000
Read bcm2712-rpi-5-b.dtb bytes    80218 hnd 0xb5ba
dt-match: compatible: raspberrypi,5-model-b match: brcm,bcm2712
dt-match: compatible: brcm,bcm2712 match: brcm,bcm2712

NOTICE:  BL31: v2.6(release):v2.6-239-g2a9ede0bd
NOTICE:  BL31: Built : 14:26:57, Jun 22 2023

Debian GNU/Linux 12 raspberrypi5 ttyAMA10

raspberrypi5 login:
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?