{"id":1681,"date":"2016-01-08T17:29:36","date_gmt":"2016-01-08T08:29:36","guid":{"rendered":"http:\/\/morecatlab.akiba.coocan.jp\/lab\/?p=1681"},"modified":"2016-03-13T18:08:38","modified_gmt":"2016-03-13T09:08:38","slug":"arduino_stm32","status":"publish","type":"post","link":"http:\/\/morecatlab.akiba.coocan.jp\/lab\/index.php\/2016\/01\/arduino_stm32\/","title":{"rendered":"<!--:ja-->Arduino_STM32\u3092\u8a66\u3059<!--:--><!--:en-->Arduino_STM32<!--:-->"},"content":{"rendered":"<p><!--:ja-->\u958b\u767a\u4e2d\u306eArduino STM32\u3092\u8a66\u3057\u307e\u3057\u305f\u3002ARM (STM32)\u304c\u642d\u8f09\u3055\u308c\u3066\u3044\u308b\u30dc\u30fc\u30c9\u3092Arduino\u3067\u958b\u767a\u3059\u308b\u3053\u3068\u304c\u51fa\u6765\u307e\u3059\u3002<\/p>\n<p><a href=\"http:\/\/morecatlab.akiba.coocan.jp\/lab\/wp-content\/uploads\/2016\/01\/STBee.jpg\"><img loading=\"lazy\" class=\"aligncenter size-medium wp-image-1755\" title=\"STBee\" src=\"http:\/\/morecatlab.akiba.coocan.jp\/lab\/wp-content\/uploads\/2016\/01\/STBee-400x300.jpg\" alt=\"STBee\" width=\"400\" height=\"300\" srcset=\"http:\/\/morecatlab.akiba.coocan.jp\/lab\/wp-content\/uploads\/2016\/01\/STBee-400x300.jpg 400w, http:\/\/morecatlab.akiba.coocan.jp\/lab\/wp-content\/uploads\/2016\/01\/STBee.jpg 1024w\" sizes=\"(max-width: 400px) 100vw, 400px\" \/><\/a><\/p>\n<p>\u307e\u3060\u65e5\u672c\u8a9e\u306b\u3088\u308b\u60c5\u5831\u304c\u5c11\u306a\u3044\u306e\u3067\u3001\u4e00\u4f8b\u3092\u7d39\u4ecb\u3057\u307e\u3059\u3002<\/p>\n<p><!--:--><!--more--><!--:ja--><\/p>\n<h2>1. \u306f\u3058\u3081\u306b<\/h2>\n<p>\u5df7\u3067\u5927\u6d41\u884c\u308a\u306eArduino\u3067\u3059\u304c\u3001\u6700\u8fd1\u8907\u6570\u306e\u30d7\u30e9\u30c3\u30c8\u30d5\u30a9\u30fc\u30e0\u3092\u540c\u6642\u306b\u30b5\u30dd\u30fc\u30c8\u3059\u308b\u4ed5\u7d44\u307f\u304c\u5c0e\u5165\u3055\u308c\u307e\u3057\u305f\u3002<\/p>\n<p>ARM Coretex-M3\u5411\u3051\u306e\u62e1\u5f35\u3067\u3001Arduino STM32\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3082\u305d\u306e\u4e00\u3064\u3067\u3059\u3002\u958b\u767a\u3092\u7d42\u3048\u3066\u3057\u307e\u3063\u305fleaflab Maple\u306e\u8cc7\u7523\u3092\u6d3b\u7528\u3057\u3066\u3001\u958b\u767a\u304c\u9032\u3081\u3089\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u73fe\u5728\u306e\u3068\u3053\u308d\u3001STM32\u30a2\u30fc\u30ad\u30c6\u30af\u30c1\u30e3\u306eCPU\u306e\u3046\u3061\u3001STM32F1\u30b7\u30ea\u30fc\u30ba\u3068\u3001GD32F1\u30b7\u30ea\u30fc\u30ba\u304c\u5bfe\u8c61\u3067\u3059\u3002<\/p>\n<p>\u307e\u305f\u3001\u958b\u767a\u4e2d\u306e\u305f\u3081\u30e9\u30a4\u30d6\u30e9\u30ea\u306e\u52d5\u4f5c\u691c\u8a3c\u304c\u6e08\u3093\u3067\u3044\u306a\u3044\u3082\u306e\u304c\u591a\u3044\u3088\u3046\u3067\u3059\u3002\u30b3\u30a2\u306b\u542b\u307e\u308c\u3066\u3044\u308b\u90e8\u5206\u306f\u52d5\u4f5c\u3057\u3066\u3044\u308b\u3088\u3046\u3067\u3059\u3002<\/p>\n<h2>2. \u60c5\u5831\u6e90<\/h2>\n<p>Arduino STM32\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306e\u4e3b\u306a\u60c5\u5831\u6e90\u306f\u6b21\u306e\u901a\u308a\u3067\u3059\u3002<\/p>\n<ul>\n<li><a href=\"https:\/\/github.com\/rogerclarkmelbourne\/Arduino_STM32\">Arduino_STM32\u00a0 (github)<\/a><\/li>\n<li><a href=\"https:\/\/github.com\/rogerclarkmelbourne\/Arduino_STM32\/wiki\">Arduino_STM32\u00a0 (Wiki)<\/a><\/li>\n<li><a href=\"http:\/\/www.stm32duino.com\/\">\u30b5\u30dd\u30fc\u30c8\u30d5\u30a9\u30fc\u30e9\u30e0<\/a><\/li>\n<li><a href=\"http:\/\/www.rogerclark.net\/\">\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u4e3b\u50ac\u8005Roger Clark\u6c0f\u306e\u30db\u30fc\u30e0\u30da\u30fc\u30b8<\/a><\/li>\n<li><a href=\"https:\/\/github.com\/rogerclarkmelbourne\/STM32duino-bootloader\">STM32duino-bootloader (github)<\/a><\/li>\n<\/ul>\n<h2>3. \u5bfe\u5fdc\u3059\u308b\u30cf\u30fc\u30c9\u30a6\u30a7\u30a2<\/h2>\n<p><a href=\"http:\/\/www.stm32duino.com\/\">\u30b5\u30dd\u30fc\u30c8\u30d5\u30a9\u30fc\u30e9\u30e0<\/a>\u3067<a href=\"http:\/\/www.stm32duino.com\/viewtopic.php?f=2&amp;t=94\">\u30cf\u30fc\u30c9\u30a6\u30a8\u30a2\u30ac\u30a4\u30c9<\/a>\u304c\u516c\u958b\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>Arduino STM32\u5bfe\u5fdc\u306e\u30cf\u30fc\u30c9\u30a6\u30a7\u30a2\u3068\u3057\u3066\u306f\u3001\u4ee5\u4e0b\u304c\u3042\u3052\u3089\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<table style=\"width: 580px; height: 224px;\" border=\"0\">\n<tbody>\n<tr>\n<td style=\"background-color: #ffffcc;\">\u30dc\u30fc\u30c9<\/td>\n<td style=\"background-color: #ffffcc;\">\u7279\u5fb4<\/td>\n<td style=\"background-color: #ffffcc;\">\u4fa1\u683c<\/td>\n<td style=\"background-color: #ffffcc;\">\u5099\u8003<\/td>\n<\/tr>\n<tr>\n<td>leaflabs Maple \/ Maple mini \u30af\u30ed\u30fc\u30f3<\/td>\n<td>Arduino STM32\u306e\u6a19\u6e96\u7684\u306a\u30dc\u30fc\u30c9<\/td>\n<td>$5.00\u524d\u5f8c<\/td>\n<td>ebay\u3084aliexpress\u3067\u5b89\u4fa1\u306b\u5165\u624b\u53ef\u80fd<\/td>\n<\/tr>\n<tr>\n<td>Nucleo-F103RB<\/td>\n<td>\u30c9\u30e9\u30c3\u30b0\uff06\u30c9\u30ed\u30c3\u30d7\u3067\u30d7\u30ed\u30b0\u30e9\u30e0\u3067\u304d\u308b\u30c7\u30d0\u30c3\u30ab\u304c\u4ed8\u3044\u3066\u3044\u308b<\/td>\n<td>1500\u5186\u7a0b\u5ea6<\/td>\n<td>\u4e00\u679a\u3067Arduino \/ mbed\u304c\u4f7f\u3048\u308b\u30e6\u30cb\u30d0\u30fc\u30b5\u30eb\u306a\u30dc\u30fc\u30c9<\/td>\n<\/tr>\n<tr>\n<td>\u4e00\u822c\u7684\u306aSTM32\u30b3\u30a2\u306eCPU\u30dc\u30fc\u30c9<\/td>\n<td>\u30d4\u30f3\u914d\u7f6e\u306a\u3069\u5343\u5dee\u4e07\u5225<\/td>\n<td>&#8211;<\/td>\n<td>\u30b9\u30a4\u30c3\u30c1\u53ca\u3073LED\u30d4\u30f3\u306e\u5b9a\u7fa9\u306e\u3042\u3063\u305f\u30d6\u30fc\u30c8\u30ed\u30fc\u30c0\u3092\u5c0e\u5165\u3059\u308b\u3053\u3068<\/td>\n<\/tr>\n<tr>\n<td>STBee<\/td>\n<td>\u30d5\u30e9\u30c3\u30b7\u30e5\u304c\u5927\u304d\u306a\u5272\u306b\u306f\u5b89\u4fa1<\/p>\n<p>JTAG\u30b3\u30cd\u30af\u30bf\u304c\u3064\u3044\u3066\u3044\u308b<\/td>\n<td>3000\u5186<\/td>\n<td>12MHz\u306e\u30af\u30ea\u30b9\u30bf\u30eb\u304c\u4ed8\u3044\u3066\u3044\u308b<\/p>\n<p>\uff08\u30af\u30ed\u30c3\u30af\u306e\u9055\u3044\u306f\u30d6\u30fc\u30c8\u30ed\u30fc\u30c0\u3067\u5438\u53ce\uff09<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p style=\"padding-left: 30px;\">\n<h2>4. \u5c0e\u5165\u65b9\u6cd5(STBee\u306e\u4f8b)<\/h2>\n<p>\u3053\u3053\u3067\u306f\u3001STBee\u3092Arduini STM32\u304b\u3089\u4f7f\u7528\u3059\u308b\u65b9\u6cd5\u3092\u8a18\u8f09\u3057\u307e\u3059\u3002<\/p>\n<h3>4.1 Arduino\u00a0 IDE\u306e\u6e96\u5099<\/h3>\n<p>Arduino IDE 1.6.4\u307e\u305f\u306f1.6.5\u3092\u5229\u7528\u3057\u307e\u3059\u3002\uff08\u91cd\u8981\uff09<\/p>\n<p><div class=\"note\"><div class=\"noteimportant\"><\/p>\n<p>\u5fc5\u305aArduino 1.6.5\u7cfb\u3092\u5229\u7528\u3057\u3066\u4e0b\u3055\u3044\u3002<\/p>\n<p>Arduino 1.6.6\u306f\u30b5\u30dd\u30fc\u30c8\u3055\u308c\u3066\u3044\u307e\u305b\u3093\uff082016\u5e741\u6708\uff09<\/p>\n<p><\/div><\/div><\/p>\n<p>Arduino STM32\u306e\u5c0e\u5165\u65b9\u6cd5\u306b\u3064\u3044\u3066\u306f\u3001<a href=\"https:\/\/github.com\/rogerclarkmelbourne\/Arduino_STM32\/wiki\/Installation\">Wiki\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u65b9\u6cd5\u8aac\u660e<\/a>\u306b\u8a18\u8f09\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u4e3b\u306a\u3001\u624b\u9806\u306f\u6b21\u306e\u901a\u308a\u3067\u3059\u3002<\/p>\n<h4>(1) Arduino IDE\u306bCortex-M3\u74b0\u5883(Arduino SAM Boards)\u3092\u5c0e\u5165\u3059\u308b\u3002<\/h4>\n<p>\u30b3\u30f3\u30d1\u30a4\u30e9\u306a\u3069\u306f\u3053\u306e\u30d1\u30c3\u30b1\u30fc\u30b8\u306e\u3082\u306e\u3092\u5229\u7528\u3059\u308b\u305f\u3081\u3001\u3053\u306e\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u5165\u308c\u3066\u304a\u304d\u307e\u3059\u3002<\/p>\n<p>\u5c0e\u5165\u624b\u9806\u306f\u6b21\u306e\u901a\u308a\u3067\u3059\u3002<\/p>\n<ol>\n<li>\u30c4\u30fc\u30eb -&gt; \u30dc\u30fc\u30c9 -&gt; Board Manager\u3092\u9078\u629e<\/li>\n<li>Arduino SAM Boards (32-bits ARM Coretex-M3) by Arduino\u3092\u9078\u629e<\/li>\n<li>Install\u30dc\u30bf\u30f3\u3092\u62bc\u4e0b<\/li>\n<\/ol>\n<h4>(2) Arduino-STM32\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u624b\u52d5\u3067\u5c0e\u5165\u3059\u308b\u3002<\/h4>\n<ol>\n<li><a href=\"https:\/\/github.com\/rogerclarkmelbourne\/Arduino_STM32\/archive\/master.zip\">Arduino-STM32\u30d1\u30c3\u30b1\u30fc\u30b8<\/a>\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u3066\u5c55\u958b\u3059\u308b\u3002<\/li>\n<li>\u5c55\u958b\u3057\u305f\u30d5\u30a9\u30eb\u30c0\u30fc\u3092Arduino\u306e\u30d5\u30a9\u30eb\u30c0\u30fc\u914d\u4e0b\u306b\u79fb\u52d5\u3059\u308b\u3002<\/li>\n<\/ol>\n<pre class=\"brush: bash; light: true; title: ; notranslate\" title=\"\">\r\n       ~\/Documents\/Arduino\/hardware (MacOSX\u306e\u5834\u5408)\r\n<\/pre>\n<h3>4.2 \u30bf\u30fc\u30b2\u30c3\u30c8\u30dc\u30fc\u30c9\u306e\u6e96\u5099<\/h3>\n<p>JTAG\u3084\u30b7\u30ea\u30a2\u30eb\u7d4c\u7531\u3067\u30d6\u30fc\u30c8\u30ed\u30fc\u30c0(<a href=\"https:\/\/github.com\/rogerclarkmelbourne\/STM32duino-bootloader\">STM32duino-bootloader<\/a>)\u3092\u30dc\u30fc\u30c9\u306b\u66f8\u304d\u8fbc\u307f\u307e\u3059\u3002<\/p>\n<p>\u4e00\u5ea6\u3060\u3051\u5b9f\u65bd\u3059\u308c\u3070\u3001\u3042\u3068\u306fUSB\u7d4c\u7531\u3067Arduino IDE\u304b\u3089\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u66f8\u304d\u8fbc\u3081\u307e\u3059\u3002<\/p>\n<p>\u3053\u3053\u3067\u306f\uff12\u3064\u306e\u65b9\u6cd5\u3092\u7d39\u4ecb\u3057\u307e\u3059\u3002<\/p>\n<ul>\n<li>\u30b7\u30ea\u30a2\u30eb\u30a4\u30f3\u30bf\u30d5\u30a7\u30fc\u30b9\u7d4c\u7531\u3067\u66f8\u304d\u8fbc\u3080<\/li>\n<\/ul>\n<p style=\"padding-left: 30px;\">\u5185\u8535\u30d6\u30fc\u30c8\u30ed\u30fc\u30c0\u3092\u4f7f\u3063\u3066\u3001\u30b7\u30ea\u30a2\u30eb\u30a4\u30f3\u30bf\u30d5\u30a7\u30fc\u30b9\u7d4c\u7531\u3067\u66f8\u304d\u8fbc\u307f\u307e\u3059\u3002<\/p>\n<p style=\"padding-left: 30px;\">USB-\u30b7\u30ea\u30a2\u30eb\u5909\u63db\u30a2\u30c0\u30d7\u30bf\uff08FTDI\u30a2\u30c0\u30d7\u30bf\u7b49\uff09\u3092\u7528\u610f\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p><div class=\"note\"><div class=\"noteclassic\"><\/p>\n<p>MacOSX\u3067\u30b7\u30ea\u30a2\u30eb\u7d4c\u7531\u3067\u30bf\u30fc\u30b2\u30c3\u30c8\u30dc\u30fc\u30c9\u306b\u30d6\u30fc\u30c8\u30ed\u30fc\u30c0\u3092\u66f8\u304d\u8fbc\u3080<\/p>\n<p>1. stm32flash\u3092\u5c0e\u5165\u3059\u308b\uff08MacOSX\u3067\u306fArduino_STM32\u306b\u542b\u307e\u308c\u308b\u30d0\u30fc\u30b8\u30e7\u30f3\u304c\u5fc5\u8981\u3067\u3059\uff09<\/p>\n<pre class=\"brush: bash; light: true; title: ; notranslate\" title=\"\">\r\nhttps:\/\/github.com\/rogerclarkmelbourne\/Arduino_STM32\/tree\/master\/tools\/src\/stm32flash_serial\/src\r\n\r\n<\/pre>\n<p>2. FTDI\u30a2\u30c0\u30d7\u30bf\u3092\u7d4c\u7531\u3057\u3066\u3001\u30bf\u30fc\u30b2\u30c3\u30c8\u30dc\u30fc\u30c9\u306e\u30b7\u30ea\u30a2\u30eb\u3068\u63a5\u7d9a\u3059\u308b<\/p>\n<p>\u5404RX\u3068TX\u3092\u30af\u30ed\u30b9\u3067\u3064\u306a\u304e\u307e\u3059\u3002<\/p>\n<p>3. \u30bf\u30fc\u30b2\u30c3\u30c8\u30dc\u30fc\u30c9\u3092\u5185\u8535\u30d6\u30fc\u30c8\u30ed\u30fc\u30c0\u3092\u8d77\u52d5\u3059\u308b\u3088\u3046\u306b\u8a2d\u5b9a\u3059\u308b<\/p>\n<p>BOOT0\u30b8\u30e3\u30f3\u30d1\u30fc\u3092H(1)\u306b\u8a2d\u5b9a\u3059\u308b\u3002BOOT1\u30b8\u30e3\u30f3\u30d1\u30fc\u3092L(0)\u306b\u8a2d\u5b9a\u3059\u308b<\/p>\n<p>4. stm32flash\u3067\u5bfe\u5fdc\u3059\u308b\u30d6\u30fc\u30c8\u30ed\u30fc\u30c0\u3092\u66f8\u304d\u8fbc\u3080<\/p>\n<pre class=\"brush: bash; light: true; title: ; notranslate\" title=\"\">\r\n$ stm32flash -w stbee_boot20.bin \/dev\/cu.usbserial-XXXXXX\r\nstm32flash Arduino_STM32_0.9\r\n\r\nhttp:\/\/github.com\/rogerclarkmelbourne\/arduino_stm32\r\n\r\nUsing Parser : Raw BINARY\r\nInterface serial_posix: 57600 8E1\r\nVersion\u00a0\u00a0\u00a0\u00a0\u00a0 : 0x22\r\nOption 1\u00a0\u00a0\u00a0\u00a0 : 0x00\r\nOption 2\u00a0\u00a0\u00a0\u00a0 : 0x00\r\nDevice ID\u00a0\u00a0\u00a0 : 0x0410 (Medium-density)\r\n- RAM\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 : 20KiB\u00a0 (512b reserved by bootloader)\r\n- Flash\u00a0\u00a0\u00a0\u00a0\u00a0 : 128KiB (sector size: 4x1024)\r\n- Option RAM : 16b\r\n- System RAM : 2KiB\r\nWrite to memory\r\nErasing memory\r\nWrote address 0x08001b7c (100.00%) Done.\r\n\r\n<\/pre>\n<p>5. \u30bf\u30fc\u30b2\u30c3\u30c8\u30dc\u30fc\u30c9\u306e\u30b8\u30e3\u30f3\u30d1\u30fcBOOT0\u3092L(0)\u306b\u5909\u66f4\u3057\u3066USB\u3067\u63a5\u7d9a\u3059\u308b\u3002<\/p>\n<p><\/div><\/div><\/p>\n<ul>\n<li>JTAG\u7d4c\u7531\u3067\u66f8\u304d\u8fbc\u3080<\/li>\n<\/ul>\n<p style=\"padding-left: 30px;\">JTAG\u30b3\u30cd\u30af\u30bf\u3092\u7d4c\u7531\u3057\u3066\u3001OpenOCD\u3092\u4f7f\u3063\u3066\u66f8\u304d\u8fbc\u307f\u307e\u3059\u3002<\/p>\n<p><div class=\"note\"><div class=\"noteclassic\"><\/p>\n<p>MacOSX\u3067ARM-USB-OCD JTAG\u30a2\u30c0\u30d7\u30bf\u7d4c\u7531\u3067OpenOCD\u3092\u4f7f\u3063\u3066\u30d6\u30fc\u30c8\u30ed\u30fc\u30c0\u3092\u66f8\u304d\u8fbc\u3080<\/p>\n<p>1. mac ports\u306a\u3069\u3067OpenOCD\u3092\u5165\u308b<\/p>\n<pre class=\"brush: bash; light: true; title: ; notranslate\" title=\"\">\r\n$ sudo port install openocd\r\n<\/pre>\n<p>2. FTDI\u30c9\u30e9\u30a4\u30d0\u30fc\u306e\u30a2\u30f3\u30ed\u30fc\u30c9<\/p>\n<pre class=\"brush: bash; light: true; title: ; notranslate\" title=\"\">\r\n$ sudo kextunload \/System\/Library\/Extensions\/FTDIUSBSerialDriver.kext\r\n<\/pre>\n<p>3. \u66f8\u304d\u8fbc\u307f<\/p>\n<pre class=\"brush: bash; light: true; title: ; notranslate\" title=\"\">\r\n$ openocd -f flash.cfg\r\n<\/pre>\n<p>\u66f8\u304d\u8fbc\u307f\u30b9\u30af\u30ea\u30d7\u30c8\u4f8b(<a href=\"http:\/\/morecatlab.akiba.coocan.jp\/lab\/?attachment_id=1828\">flash.cfg<\/a>)<\/p>\n<p><\/div><\/div><\/p>\n<p><a href=\"http:\/\/morecatlab.akiba.coocan.jp\/lab\/wp-content\/uploads\/2016\/01\/IMG_1780.jpg\"><img loading=\"lazy\" class=\"aligncenter size-medium wp-image-1859\" title=\"StBEE with ARM-USB-JTAG\" src=\"http:\/\/morecatlab.akiba.coocan.jp\/lab\/wp-content\/uploads\/2016\/01\/IMG_1780-400x267.jpg\" alt=\"StBEE with ARM-USB-JTAG\" width=\"400\" height=\"267\" srcset=\"http:\/\/morecatlab.akiba.coocan.jp\/lab\/wp-content\/uploads\/2016\/01\/IMG_1780-400x267.jpg 400w, http:\/\/morecatlab.akiba.coocan.jp\/lab\/wp-content\/uploads\/2016\/01\/IMG_1780.jpg 1024w\" sizes=\"(max-width: 400px) 100vw, 400px\" \/><\/a><\/p>\n<p>\u306a\u304a\u3001Arduino_STM32\u30d6\u30fc\u30c8\u30ed\u30fc\u30c0\u3092StBEE\u7528\u306b\u6539\u9020\u3057\u305f\u3082\u306e\u306f\u3001\u65e2\u306b\u672c\u5bb6github\u306b\u53cd\u6620\u3055\u305b\u3066\u3044\u307e\u3059\u3002<\/p>\n<h3>4.3 IDE\u304b\u3089\u306e\u30b9\u30b1\u30c3\u30c1\u306e\u66f8\u304d\u8fbc\u307f\u65b9\u6cd5<\/h3>\n<h4>(1) IDE\u3067\u30dc\u30fc\u30c9\u3092\u9078\u629e\u3059\u308b<\/h4>\n<ol>\n<li>\u30c4\u30fc\u30eb -&gt; \u30dc\u30fc\u30c9 -&gt; Generic STM32F103V Series\u3092\u9078\u629e<\/li>\n<li>\u30c4\u30fc\u30eb -&gt; Variant -&gt; STM32F103VE\u3092\u9078\u629e<\/li>\n<li>\u30c4\u30fc\u30eb -&gt; Upload Method -&gt; STM32duino bootloader\u3092\u9078\u629e<\/li>\n<\/ol>\n<h4>(2) \u30dc\u30fc\u30c9\u3092DFU\u30e2\u30fc\u30c9\u306b\u8a2d\u5b9a\u3059\u308b<\/h4>\n<p>\u30dc\u30fc\u30c9\u4e0a\u306e\u300cUSR\u30b9\u30a4\u30c3\u30c1\u300d\u3092\u62bc\u3057\u306a\u304c\u3089\u30ea\u30bb\u30c3\u30c8\u3059\u308b\u3068\u3001\u30d1\u30bd\u30b3\u30f3\u304b\u3089\u306e\u66f8\u304d\u8fbc\u307f\u3092\u53d7\u3051\u4ed8\u3051\u308bDFU\u30e2\u30fc\u30c9\u306b\u5165\u308a\u307e\u3059\u3002<\/p>\n<ul>\n<li>\u6b63\u3057\u304fDFU\u30e2\u30fc\u30c9\u306b\u8a2d\u5b9a\u3055\u308c\u308b\u3068\u3001\u30aa\u30f3\u30dc\u30fc\u30c9LED\u304c\uff11\u79d2\u9593\u9694\u3067\u70b9\u6ec5\u3057\u307e\u3059\u3002<\/li>\n<li>USR\u30b9\u30a4\u30c3\u30c1\u3092\u62bc\u3055\u306a\u3044\u3067\u30ea\u30bb\u30c3\u30c8\u3059\u308b\u3068\u3001\u7d042-3\u79d2\u3060\u3051DFU\u30e2\u30fc\u30c9\u306b\u306a\u308a\u307e\u3059\u3002\u305d\u306e\u5f8c\u66f8\u304d\u8fbc\u307e\u308c\u3066\u3044\u308b\u30b9\u30b1\u30c3\u30c1\u304c\u52d5\u304d\u307e\u3059\u3002<\/li>\n<\/ul>\n<h4>(3) Blink\u306e\u66f8\u304d\u8fbc\u307f<\/h4>\n<p>Blink\u3067\u306fLED\u51fa\u529b\u30d4\u30f3\u3092\u6307\u5b9a\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002STBee\u306e\u5834\u5408\u306b\u306f\u3001LED\u306fPD4\u306b\u63a5\u7d9a\u3055\u308c\u3066\u3044\u3066\u3001L\u3067\u70b9\u706f\u3057H\u3067\u6d88\u706f\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: cpp; title: ; notranslate\" title=\"\">\r\n#define LED PD4\r\n\r\n\/\/ the setup function runs once when you press reset or power the board\r\nvoid setup() {\r\n \/\/ initialize digital pin LED as an output.\r\n pinMode(LED, OUTPUT);\r\n}\r\n\r\n\/\/ the loop function runs over and over again forever\r\nvoid loop() {\r\n digitalWrite(LED, HIGH);\u00a0\u00a0 \/\/ turn the LED on (HIGH is the voltage level)\r\n delay(500);\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 \/\/ wait for 1\/2 second\r\n digitalWrite(LED, LOW);\u00a0\u00a0\u00a0 \/\/ turn the LED off by making the voltage LOW\r\n delay(500);\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 \/\/ wait for 1\/2 second\r\n}\r\n<\/pre>\n<p>\u66f8\u304d\u8fbc\u307f\u304c\u3046\u307e\u304f\u3067\u304d\u308b\u3068\u6b21\u306e\u3088\u3046\u306a\u30e1\u30c3\u30bb\u30fc\u30b8\u304cArduino IDE\u306e\u30b3\u30f3\u30bd\u30fc\u30eb\u306b\u51fa\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\n\u30b9\u30b1\u30c3\u30c1\u304c \u30d7\u30ed\u30b0\u30e9\u30e0\u30b9\u30c8\u30ec\u30fc\u30b8\u9818\u57df\u306e 14,012\u30d0\u30a4\u30c8 (2%) \u3092\u4f7f\u7528\u3057\u3066\u3044\u307e\u3059\u3002\u6700\u5927\u306f 524,288\u30d0\u30a4\u30c8 \u3067\u3059\u3002\r\n\u30b0\u30ed\u30fc\u30d0\u30eb\u5909\u6570\u306f 2,936\u30d0\u30a4\u30c8\u306e\u52d5\u7684\u30e1\u30e2\u30ea\u3092\u4f7f\u7528\u3057\u3066\u3044\u307e\u3059\r\nFailed to open serial device.\r\ndfu-util: Invalid DFU suffix signature\r\ndfu-util: A valid DFU suffix will be required in a future dfu-util release!!!\r\n\r\ndfu-util 0.8\r\n\r\nCopyright 2005-2009 Weston Schmidt, Harald Welte and OpenMoko Inc.\r\nCopyright 2010-2014 Tormod Volden and Stefan Schmidt\r\nThis program is Free Software and has ABSOLUTELY NO WARRANTY\r\nPlease report bugs to dfu-util@lists.gnumonks.org\r\n\r\nDeducing device DFU version from functional descriptor length\r\nOpening DFU capable USB device...\r\nID 1eaf:0003\r\nRun-time device DFU version 0110\r\nClaiming USB DFU Interface...\r\nSetting Alternate Setting #2 ...\r\nDetermining device status: state = dfuIDLE, status = 0\r\ndfuIDLE, continuing\r\nDFU mode device DFU version 0110\r\nDevice returned transfer size 2048\r\nCopying data from PC to DFU device\r\n\r\nDownload\u00a0\u00a0 \u00a0&#x5B;\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 ]\u00a0\u00a0 0%\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 0 bytes\r\nDownload\u00a0\u00a0 \u00a0&#x5B;===\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 ]\u00a0 12%\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 2048 bytes\r\nDownload\u00a0\u00a0 \u00a0&#x5B;======\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 ]\u00a0 25%\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 4096 bytes\r\nDownload\u00a0\u00a0 \u00a0&#x5B;=========\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 ]\u00a0 38%\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 6144 bytes\r\nDownload\u00a0\u00a0 \u00a0&#x5B;============\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 ]\u00a0 51%\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 8192 bytes\r\nDownload\u00a0\u00a0 \u00a0&#x5B;===============\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 ]\u00a0 63%\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 10240 bytes\r\nDownload\u00a0\u00a0 \u00a0&#x5B;===================\u00a0\u00a0\u00a0\u00a0\u00a0 ]\u00a0 76%\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 12288 bytes\r\nDownload\u00a0\u00a0 \u00a0&#x5B;======================\u00a0\u00a0 ]\u00a0 89%\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 14012 bytes\r\nDownload\u00a0\u00a0 \u00a0&#x5B;=========================] 100%\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 14012 bytes\r\nDownload done.\r\nstate(8) = dfuMANIFEST-WAIT-RESET, status(0) = No error condition is present\r\nDone!\r\nResetting USB to switch back to runtime mode\r\n<\/pre>\n<p><span style=\"color: #ff0000;\">MacOSX El Capitan\u3067\u306f\u30aa\u30fc\u30c8\u30ea\u30bb\u30c3\u30c8\u304c\u6a5f\u80fd\u3057\u306a\u3044\u3088\u3046\u3067\u3059\u3002<\/span><\/p>\n<p><span style=\"color: #ff0000;\"><strong>\u66f8\u304d\u8fbc\u307f\u5f8c\u3001\u3046\u307e\u304f\u30ea\u30bb\u30c3\u30c8\u3055\u308c\u306a\u3044\u5834\u5408\u306b\u306f\u3001\u30dc\u30fc\u30c9\u4e0a\u306e\u30ea\u30bb\u30c3\u30c8\u30dc\u30bf\u30f3\u3092\u62bc\u4e0b\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/strong><\/span><\/p>\n<p>\u30e9\u30a4\u30d6\u30e9\u30ea\u306e\u5229\u7528\u65b9\u6cd5\u306b\u3064\u3044\u3066\u3082\u3001\u6a5f\u4f1a\u304c\u3042\u308c\u3070\u66f8\u304d\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<p>\uff08\u4e86\uff09<!--:--><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u958b\u767a\u4e2d\u306eArduino STM32\u3092\u8a66\u3057\u307e\u3057\u305f\u3002ARM (STM32)\u304c\u642d\u8f09\u3055\u308c\u3066\u3044\u308b\u30dc\u30fc\u30c9\u3092Arduino\u3067\u958b\u767a\u3059\u308b\u3053\u3068\u304c\u51fa\u6765\u307e\u3059\u3002 \u307e\u3060\u65e5\u672c\u8a9e\u306b\u3088\u308b\u60c5\u5831\u304c\u5c11\u306a\u3044\u306e\u3067\u3001\u4e00\u4f8b\u3092\u7d39\u4ecb\u3057\u307e\u3059\u3002<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[3,17],"tags":[],"_links":{"self":[{"href":"http:\/\/morecatlab.akiba.coocan.jp\/lab\/index.php\/wp-json\/wp\/v2\/posts\/1681"}],"collection":[{"href":"http:\/\/morecatlab.akiba.coocan.jp\/lab\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/morecatlab.akiba.coocan.jp\/lab\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/morecatlab.akiba.coocan.jp\/lab\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/morecatlab.akiba.coocan.jp\/lab\/index.php\/wp-json\/wp\/v2\/comments?post=1681"}],"version-history":[{"count":143,"href":"http:\/\/morecatlab.akiba.coocan.jp\/lab\/index.php\/wp-json\/wp\/v2\/posts\/1681\/revisions"}],"predecessor-version":[{"id":2103,"href":"http:\/\/morecatlab.akiba.coocan.jp\/lab\/index.php\/wp-json\/wp\/v2\/posts\/1681\/revisions\/2103"}],"wp:attachment":[{"href":"http:\/\/morecatlab.akiba.coocan.jp\/lab\/index.php\/wp-json\/wp\/v2\/media?parent=1681"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/morecatlab.akiba.coocan.jp\/lab\/index.php\/wp-json\/wp\/v2\/categories?post=1681"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/morecatlab.akiba.coocan.jp\/lab\/index.php\/wp-json\/wp\/v2\/tags?post=1681"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}