単精度の浮動小数点演算回路を持つARMマイコンSTM32F4の評価キット、STM32F4 DISCOVERY。
秋月電子などで扱っている。Cortex-M4、FLASH 1MB、RAM192KBも搭載して1650円という驚きの安さ。
STM32F4-DISCOVERY


STM32F4DISCOVERYDiscovery kit for STM32 F4 series - with STM32F407 MCU

キットには基板のみ。開発用に使うPCと接続するUSBケーブル(mini-B)が必要。
以下、説明書より:
Getting started
1.Check jumper position on the board,JP1 on,CN3 on(Discovery selected).
2.Connect the STM32F4-Discovery board to a PC with a USB cable 'tye A to mini-B' through USB connector CN1 to power the board. Red LED LD2(PWR) then lights up.
3.Four LEDs between B1 and B2 buttons are blinking.
4.Press user button B1,then MEMS sensor is enabled.Move the board and observe the four LEDs blinking according to the motion direction and speed.
5.To study or modify the Discover project related to this demo,visit www.st.com/stm32f4-discovery and follow the tutorial.
6.Discover the STM32F4 features,download and execute programs proposed the list of projects.
7.Develop your own applications using available examples.

 USBケーブルを接続すると基板上のLED3,4,5,6(橙、緑、赤、青)が回転するように点滅する。
青色のボタンを押すと基板の傾きによりLEDが点滅する。もう一度青色のボタンを押すと最初に戻る。
黒いボタンはリセット。

 USBケーブルを挿すとデバイスドライバが見つからない旨のエラーがでるが、このマイコンはST-LINK/V2相当のデバッガで接続されているので対応するデバイスドライバをインストールする。
以下からダウンロード。
ST-LINK/V2 in-circuit debugger/programmer for STM8 and STM32

 開発用のIDEは他社提供のものを使うらしい。説明書にあったのは
Altium,TASKING VX-Toolset
Atollic,TrueSTUDIO
IAR,EWARM
Keil,MDK-ARM

 今回はAtillic TrueSTUDIOをインストールしてみた。
無償のLiteバージョンを使用する。
Atollic TrueSTUDIO® for ARM® Lite v3.0.0

インストーラを起動すると、ブラウザが開いてRegister Lite Version ID登録の画面がでる。ここのcomputer ID欄にインストーラ画面に表示されている文字列をコピペする。
登録情報を送信すると、記入したメールアドレスに登録用のキーが送られてくるので、それをインストーラ画面にコピペして続行するとインストール完了。

とりあえずここまで。