Arduino UNO R4 を動かしてみた
以前、Arduino UNO R4 について書きました。
今回、Arduino UNO R4 を購入して、動かしてみました。
〔IDE 環境の構築〕
IDE 環境をアップデート(またはインストール)します。

完了すると、メッセージが出ます。

Board Manager で Arduino UNO R4 Board を追加します。

USB ドライバーのインストールが出ます。

Arduino UNO R4 が追加されています。

ここで Arduino UNO R4 を接続します。
デバイスマネージャーでポートを確認します。

Arduino IDE にポートを設定します。

〔Blink の実行〕
定番の Blink の実行です。
まずはコンパイル。

ロードします。

その時のメッセージです。いろいろ出ました。
ーーーー ここから ーーーー
最大262144バイトのフラッシュメモリのうち、スケッチが39008バイト(14%)を使っています。
最大32768バイトのRAMのうち、グローバル変数が3940バイト(12%)を使っていて、ローカル変数で28828バイト使うことができます。
dfu-util 0.11-arduino4
Copyright 2005-2009 Weston Schmidt, Harald Welte and OpenMoko Inc.
Copyright 2010-2021 Tormod Volden and Stefan Schmidt
This program is Free Software and has ABSOLUTELY NO WARRANTY
Please report bugs to http://sourceforge.net/p/dfu-util/tickets/
Opening DFU capable USB device...
Device ID 2341:0069
Run-Time device DFU version 0101
Claiming USB DFU (Run-Time) Interface...
Setting Alternate Interface zero...
Determining device status...
DFU state(0) = appIDLE, status(0) = No error condition is present
Device really in Run-Time Mode, send DFU detach request...
Device will detach and reattach...
Opening DFU USB Device...
Claiming USB DFU Interface...
Setting Alternate Interface #0 ...
Determining device status...
DFU state(2) = dfuIDLE, status(0) = No error condition is present
DFU mode device DFU version 0101
Device returned transfer size 64
Copying data from PC to DFU device
Download [ ] 0% 0 bytes
Download [= ] 4% 1600 bytes
Download [== ] 8% 3136 bytes
Download [=== ] 12% 4736 bytes
Download [==== ] 16% 6272 bytes
Download [===== ] 20% 7872 bytes
Download [====== ] 24% 9408 bytes
Download [======= ] 28% 10944 bytes
Download [======== ] 32% 12544 bytes
Download [========= ] 36% 14080 bytes
Download [========== ] 40% 15680 bytes
Download [=========== ] 44% 17216 bytes
Download [============ ] 48% 18816 bytes
Download [============= ] 52% 20352 bytes
Download [============= ] 52% 20416 bytes
Download [============== ] 56% 21888 bytes
Download [=============== ] 60% 23488 bytes
Download [================ ] 64% 25024 bytes
Download [================= ] 68% 26624 bytes
Download [================== ] 72% 28160 bytes
Download [=================== ] 76% 29760 bytes
Download [==================== ] 80% 31296 bytes
Download [===================== ] 84% 32832 bytes
Download [====================== ] 88% 34432 bytes
Download [======================= ] 92% 35968 bytes
Download [======================== ] 96% 37568 bytes
Download [=========================] 100% 39016 bytes
Download done.
DFU state(7) = dfuMANIFEST, status(0) = No error condition is present
DFU state(2) = dfuIDLE, status(0) = No error condition is present
Done!
次は、幾つかサンプルを動かしてみようと思います。
今回、Arduino UNO R4 を購入して、動かしてみました。
〔IDE 環境の構築〕
IDE 環境をアップデート(またはインストール)します。
完了すると、メッセージが出ます。
Board Manager で Arduino UNO R4 Board を追加します。
USB ドライバーのインストールが出ます。
Arduino UNO R4 が追加されています。
ここで Arduino UNO R4 を接続します。
デバイスマネージャーでポートを確認します。
Arduino IDE にポートを設定します。
〔Blink の実行〕
定番の Blink の実行です。
まずはコンパイル。
ロードします。
その時のメッセージです。いろいろ出ました。
ーーーー ここから ーーーー
最大262144バイトのフラッシュメモリのうち、スケッチが39008バイト(14%)を使っています。
最大32768バイトのRAMのうち、グローバル変数が3940バイト(12%)を使っていて、ローカル変数で28828バイト使うことができます。
dfu-util 0.11-arduino4
Copyright 2005-2009 Weston Schmidt, Harald Welte and OpenMoko Inc.
Copyright 2010-2021 Tormod Volden and Stefan Schmidt
This program is Free Software and has ABSOLUTELY NO WARRANTY
Please report bugs to http://sourceforge.net/p/dfu-util/tickets/
Opening DFU capable USB device...
Device ID 2341:0069
Run-Time device DFU version 0101
Claiming USB DFU (Run-Time) Interface...
Setting Alternate Interface zero...
Determining device status...
DFU state(0) = appIDLE, status(0) = No error condition is present
Device really in Run-Time Mode, send DFU detach request...
Device will detach and reattach...
Opening DFU USB Device...
Claiming USB DFU Interface...
Setting Alternate Interface #0 ...
Determining device status...
DFU state(2) = dfuIDLE, status(0) = No error condition is present
DFU mode device DFU version 0101
Device returned transfer size 64
Copying data from PC to DFU device
Download [ ] 0% 0 bytes
Download [= ] 4% 1600 bytes
Download [== ] 8% 3136 bytes
Download [=== ] 12% 4736 bytes
Download [==== ] 16% 6272 bytes
Download [===== ] 20% 7872 bytes
Download [====== ] 24% 9408 bytes
Download [======= ] 28% 10944 bytes
Download [======== ] 32% 12544 bytes
Download [========= ] 36% 14080 bytes
Download [========== ] 40% 15680 bytes
Download [=========== ] 44% 17216 bytes
Download [============ ] 48% 18816 bytes
Download [============= ] 52% 20352 bytes
Download [============= ] 52% 20416 bytes
Download [============== ] 56% 21888 bytes
Download [=============== ] 60% 23488 bytes
Download [================ ] 64% 25024 bytes
Download [================= ] 68% 26624 bytes
Download [================== ] 72% 28160 bytes
Download [=================== ] 76% 29760 bytes
Download [==================== ] 80% 31296 bytes
Download [===================== ] 84% 32832 bytes
Download [====================== ] 88% 34432 bytes
Download [======================= ] 92% 35968 bytes
Download [======================== ] 96% 37568 bytes
Download [=========================] 100% 39016 bytes
Download done.
DFU state(7) = dfuMANIFEST, status(0) = No error condition is present
DFU state(2) = dfuIDLE, status(0) = No error condition is present
Done!
次は、幾つかサンプルを動かしてみようと思います。
この記事へのコメント
以前と比べてボード価格も開発環境も大幅に良くなっているのを実感しました。
NECに居た頃に某顧客の依頼で日立SHシリーズへLinux移植に格闘していた頃と比べると雲泥の差です。
引き続き、ご訪問いただき、どうも有り難うございます。
そうなんです。昔に比べて開発環境、価格、どれをとっても格段に良くなっています。
Arduino も 8bit から 32bit になっていますし、処理能力も格段に進んでいます。
問題は年齢とともに自分の記憶力、処理能力、意欲が低下している事です。(´;ω;`)