1
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 3 years have passed since last update.

AKBONE 2019年版 開発環境設定

Last updated at Posted at 2019-11-23

STM32やESP32を使って、教育用コンテンツを作っていますが、Arduino開発環境としてポータブル環境化したAKBONEを使うことにしました

AKBONEについて

AKBONEは、日本Androidの会秋葉原支部ロボット部が開発しているトレーニングキットです。
オリジナルバージョンの Ardublock http://blog.ardublock.comを使い、Portable環境として配布しています。

ほぼ毎年毎に使用ボードを更新していて、2019年版は以下の構成になっています。

AKBONE Release7 (ターゲットボード:STM32 Cleaner/STM32F103VBT6 + ST-LinkV2)

この記事では、AKBONE 2019 年版である Release7 の開発環境について説明します。

インストールしたもの

  • Arduino 1.8.10
  • STM32-Arduino

ライブラリ

  • Adafruit GFX Library
  • GxEPD2 (GoodDisplay e-Ink ディスプレイ用ライブラリ)

USBCompositeはしなくてもいいみたい。

設定方法

Arduino 1.8.10版
以下からダウンロード。
https://www.arduino.cc/en/Main/Software
Windows/Mac/Linux のいずれか。なお、Wndows要ははZIP版を用いる。

ダウンロードしたものを展開する。
フォルダ名 Arduino−1.8.10_AKBONE に格納する。
このフォルダの中に以下のようなものがあるようにする。


 lib        revisions.txt
arduino                  hardware    libraries  tools
arduino-builder          install.sh  tools-builder
...

portable設定

portableフォルダをArduino−1.8.10_AKBONE内に作成。
Macの人は巻末の「Macでポータブル環境設定」を参照してください

起動する

Arduino−1.8.10_AKBONEフォルダ内 Arduinoをダブルクリックして起動

STM32_Arduino を設定

ライブラリを設定

おまけ1 トラブルシュート

これをしようとしたらいろいろエラーになった。

image.png


![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/139524/15e53d2f-54b7-8b02-209d-93810c84fe8d.png)
/home/nanbuwks/Downloads/ardublock/arduino/linux64/arduino-1.8.10_AKBONE/libraries/TFT/src/utility/Adafruit_ST7735.h:30:26: fatal error: avr/pgmspace.h: No such file or directory
compilation terminated.

と出る。


https://github.com/SodaqMoja/Sodaq_DS3231/issues/5

これを参考にして、


# if (defined(__AVR__))
# include <avr\pgmspace.h>
# else
# include <pgmspace.h>
# endif

と設定した。


/home/nanbuwks/Downloads/ardublock/arduino/linux64/arduino-1.8.10_AKBONE/libraries/TFT/src/utility/glcdfont.c:3:20: fatal error: avr/io.h: No such file or directory
compilation terminated.

更にエラーが続くので同様に直していくこと。

おまけ2 Macでポータブル環境設定

(以下のようにしましたがうまくいきませんでした。以下デバッグのために残しておきます)

``

cd ~/...(フォルダを作った場所に移動).../arduino-1.8.10_AKBONE
cp -r /usr/local/arduino ./


次に、以下のシェルスクリプトを作成、実行する

touch arduinoportable.command
chmod arduinoportable.command



!/bin/bash

export PATH_Backup=$PATH
export PATH=(...):$PATH
~/...(フォルダを作った場所に移動).../arduino-1.8.10_AKBONE
./arduino

1
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
1
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?