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.

libopencm3をUbuntu 20.04 @ WSL2にインストール

Last updated at Posted at 2022-07-21

guides:stm32toolchain [UKHAS Wiki]を見つけて進めようとしたのだけど結局本家から直接ダウンロードする必要があった。

場所は
https://developer.arm.com/tools-and-software/open-source-software/developer-tools/gnu-toolchain/downloads
から。

$ cd /usr/local
$ sudo http --download https://developer.arm.com/-/media/Files/downloads/gnu-rm/10.3-2021.10/gcc-arm-none-eabi-10.3-2021.10-x86_64-linux.tar.bz2
$ sudo tar jxvf gcc-arm-none-eabi-10.3-2021.10-x86_64-linux.tar.bz2

すると/usr/local/gcc-arm-none-eabi-10.3-2021.10にいろいろ展開される。

.bashrcに

export PATH=/usr/local/gcc-arm-none-eabi-10.3-2021.10/bin:$PATH

を追加。

シェル再起動。

$ arm-none-eabi-gcc --version
arm-none-eabi-gcc (GNU Arm Embedded Toolchain 10.3-2021.10) 10.3.1 20210824 (release)
Copyright (C) 2020 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

$

動いたっぽい。
ncursesのことがなんか書いてあるけどとりあえず無視。

ファームを書き込んだりするのにstlink-toolsというのが必要らしい。これはaptで入った。

$ sudo apt install stlink-tools

Windowsで書き込むのはこっちも便利らしい。

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?