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?

UIAPduinoをMacで使う。With WCH-LINKE

Posted at

はじめに

Switch Science の 第二回スイッチサイエンス大感謝祭 に参加した際 UIAPduinoを頂いた。
教育機関向けに安価で提供とのことで素晴らしいのですが、macで使えないとか、色々問題もありそう。

UIAPduinoとは

CH32V003を調べると、どうもハードとしてのUSBは備えていないらしいと言うことで、USBをソフトでエミュレートしているみたいです。

設定

Arduino

Preferenceの"Additional Boards Manager Urls"に以下を加える。
https://github.com/openwch/board_manager_files/raw/main/package_ch32v_index.json

Boards Managerで”CH32"と検索し、"CH32 MCU EVT Boards by WCH"をインストールする。

WCH-LinkE

RISC-Vモードに接続する必要があります。下記の内容が参考になりました。
自分はケースが簡単に開かなかったのでWindowsで変更しました。

接続

UIAPduinoは標準が5Vらしいので5Vで接続します。
5V->5V,GND->GND,SWDIO->UIAPduinoの”PD1/11”に接続します。

メモ

以下のエラーが発生した場合
dyld[17459]: Library not loaded: /usr/local/opt/libusb/lib/libusb-1.0.0.dylib
ターミナルで下記のように入力します。
2025/03/23現在ではx86_64用のlibusbが必要みたいです。

> arch -x86_64 /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" 
> arch -x86_64 /usr/local/bin/brew install libusb
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?