{"id":2201,"date":"2014-03-05T11:06:49","date_gmt":"2014-03-05T02:06:49","guid":{"rendered":"http:\/\/oohito.com\/nqthm\/?p=2201"},"modified":"2014-03-05T11:06:49","modified_gmt":"2014-03-05T02:06:49","slug":"maverics-stm32f4discovery","status":"publish","type":"post","link":"https:\/\/oohito.com\/nqthm\/archives\/2201","title":{"rendered":"OS X(Mavericks)\u306bSTM32F4DISCOVERY\u7528\u306e\u958b\u767a\u74b0\u5883\u3092\u69cb\u7bc9\u3059\u308b\uff08\u6e96\u5099\u7de8\uff09"},"content":{"rendered":"<p>\u79cb\u6708\u96fb\u5b50\u3067<a href=\"http:\/\/akizukidenshi.com\/catalog\/g\/gM-05313\/\">STM32F4DISCOVERY<\/a>\u3092\u8cb7\u3063\u305f\u306e\u3067\u3001Mac OS X(Maverics)\u4e0a\u306b\u958b\u767a\u74b0\u5883\u3092\u69cb\u7bc9\u3057\u3066\u307f\u305f\u3002<br \/>\nSTM32F4DISCOVERY\u306fCPU\u3068\u3057\u3066ARM Cortex-M4\u3092\u30b3\u30a2\u306b\u6301\u3063\u305fSTM42F407VGT6\u3092\u3082\u3063\u305f\u30ef\u30f3\u30dc\u30fc\u30c9\u30de\u30a4\u30b3\u30f3\u3067\u3042\u308b\u30021MB Flash ROM\u3068192KB\u306eRAM\u3092\u7a4d\u3093\u3067\\1,650\u3068\u3044\u3046\u306e\u306f\u5b89\u3044\u8cb7\u3044\u7269\u3067\u3042\u308b\u3002<br \/>\n\u958b\u767a\u74b0\u5883\u69cb\u7bc9\u306e\u6d41\u308c\u306f\u3001<a href=\"http:\/\/strobo.hatenablog.com\/entry\/2013\/06\/30\/155220\">Mac\u3067STM32F4-Discovery\u306e\u958b\u767a\u74b0\u5883\u3092\u69cb\u7bc9\u3057\u3066ChibiOS\/RT\u3092\u52d5\u304b\u3059<\/a>\u306e\u30b5\u30a4\u30c8\u3092\u53c2\u8003\u306b\u3057\u305f\u3002\u3053\u306e\u30b5\u30a4\u30c8\u306b\u5f93\u3063\u3066\u3001arm-none-eabi-gcc, arm-none-eabi-gdb, openocd\u3092\u9806\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u3044\u304f\u3002<br \/>\n<!--more--><\/p>\n<h2>arm-none-eabi-gcc<\/h2>\n<p><a href=\"https:\/\/launchpad.net\/gcc-arm-embedded\">GNU Tools for ARM Embedded Processors<\/a>\u3088\u308a\u3001ARM\u30b3\u30f3\u30d1\u30a4\u30e9\u3068\u3057\u3066arm-none-eabi-gcc\u3092\u5165\u624b\u3059\u308b\u3002\u53f3\u30b5\u30a4\u30c9\u30d0\u30fc\u304b\u3089gcc-arm-none-eabi-4_8-2013q4-20131218-mac.tar.bz2\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u305f\u3002<br \/>\n\u9069\u5f53\u306a\u30d5\u30a9\u30eb\u30c0\u3092\u4f5c\u3063\u3066\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u305f\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u5c55\u958b\u3059\u308b\u3002\u3053\u3053\u3067\u306f\u5148\u306e\u30b5\u30a4\u30c8\u306e\u3068\u304a\u308a\u3001~\/local\u4ee5\u4e0b\u306b\u74b0\u5883\u3092\u4f5c\u308b\u3002\uff08\u4e0b\u306e\u65b9\u6cd5\u3060\u3068\u65e2\u306b~\/local\u30d5\u30a9\u30eb\u30c0\u304c\u3042\u308b\u5834\u5408\u306b\u5143\u306e\u30d5\u30a9\u30eb\u30c0\u3092\u6d88\u3057\u3066\u3057\u307e\u3046\u306e\u3067\u6ce8\u610f\uff09<\/p>\n<pre>cd\ntar xjf ~\/Downloads\/gcc-arm-none-eabi-4_8-2013q4-20131218-mac.tar.bz2\nmv gcc-arm-none-eabi-4_8-2013q4 local<\/pre>\n<h2>arm-none-eabi-gdb (MacPorts)<\/h2>\n<p><a href=\"http:\/\/www.macports.org\/\">MacPorts<\/a>\u7d4c\u7531\u3067\u30c7\u30d0\u30c3\u30ac\u3067\u3042\u308barm-none-eabi-gdb\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3002\u4eca\u307e\u3067MacPorts\u3092\u4f7f\u3063\u3066\u3044\u306a\u304b\u3063\u305f\u306e\u3067\u3001\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u304b\u3089\u884c\u3063\u305f\u3002<br \/>\nMacPorts\u306e\u30c8\u30c3\u30d7\u30da\u30fc\u30b8\u306e\u5de6\u30b5\u30a4\u30c9\u30d0\u30fc\u306b\u3042\u308bInstalling MacPorts\u3092\u30af\u30ea\u30c3\u30af\u3057\u305f\u5f8c\u3001Quickstart\u304b\u3089OS X 10.9 Mavericks\u306e\u30ea\u30f3\u30af\u3092\u30af\u30ea\u30c3\u30af\u3057\u3066\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3059\u308b\u3002\u5f8c\u306f\u3044\u3064\u3082\u306e\u901a\u308a\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308c\u3070\u826f\u3044\u3002\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u304c\u5b8c\u4e86\u3057\u305f\u3089\u30d1\u30c3\u30b1\u30fc\u30b8\u60c5\u5831\u3092\u6700\u65b0\u306e\u3082\u306e\u306b\u3057\u3066\u304a\u304f\u3002<\/p>\n<pre>sudo port selfupdate\nport upgrade outdated<\/pre>\n<p>\u7d9a\u3044\u3066arm-none-eabi-gdb\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3002<\/p>\n<pre>sudo port install arm-none-eabi-gdb<\/pre>\n<p>\u5f8c\u306f\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u5b8c\u4e86\u307e\u3067\u653e\u3063\u3066\u304a\u3051\u3070\u826f\u3044\u306e\u3060\u304c\u3001\u9014\u4e2d\u306earm-none-eabi-binutils\u3067\u300c&#8212;>  Attempting to fetch binutils-2.23.1.tar.bz2 from http:\/\/cjj.kr.distfiles.macports.org\/binutils\u300d\u3068\u8a00\u3063\u305f\u307e\u307e\u30a6\u30f3\u3068\u3082\u30b9\u30f3\u3068\u3082\u8a00\u308f\u306a\u304f\u306a\u3063\u305f\u306e\u3067\u3001\u696d\u3092\u716e\u3084\u3057\u3066\u6b62\u3081\u3066\u3057\u307e\u3063\u305f\u3002<br \/>\n\u4ed5\u65b9\u304c\u306a\u3044\u306e\u3067\u6b21\u306eopenocd\u306e\u30d3\u30eb\u30c9\u4e2d\u306b\u4e0d\u8db3\u3057\u305f\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u8ffd\u52a0\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u3044\u3063\u305f\u3002\u6700\u7d42\u7684\u306b\u8ffd\u52a0\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305f\u306e\u306f\u4ee5\u4e0b\u306e\u901a\u308a\u3002<\/p>\n<pre>libtool autotools automake autom4 autoconf pkgconfig libusb<\/pre>\n<p>(2014\/3\/5\u8ffd\u8a18: openocd\u306eREADME\u3092\u898b\u305f\u3089\u3001\u30d3\u30eb\u30c9\u306blibtool automake autoconf pkgconfig libusb\u304c\u5fc5\u8981\u3060\u3068\u66f8\u3044\u3066\u3042\u3063\u305f)<\/p>\n<h2>openocd<\/h2>\n<p>github\u3088\u308aopenocd\u306e\u30bd\u30fc\u30b9\u3092\u5165\u624b\u3059\u308b\u3002openocd\u306f\u30c7\u30d0\u30c3\u30b0\u6642\u306bSTM32\u3068gdb\u3068\u306e\u6a4b\u6e21\u3057\u3092\u884c\u3046\u3002<\/p>\n<pre>git clone git:\/\/git.code.sf.net\/p\/openocd\/code openocd-code<\/pre>\n<p>\u5165\u624b\u3057\u305f\u3089\u30d3\u30eb\u30c9\u3092\u884c\u3046\u3002\uff08~\u306e\u90e8\u5206\u306f\u30db\u30fc\u30e0\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306e\u7d76\u5bfe\u30d1\u30b9\u306b\u7f6e\u304d\u63db\u3048\u308b\u3088\u3046\u306b\u6c42\u3081\u3089\u308c\u308b\u304b\u3082\u3057\u308c\u306a\u3044\uff09<\/p>\n<pre>cd openocd-code\n.\/bootstrap\n.\/configure --enable-maintainer-mode --enable-stlink --prefix=~\/local\/ --datadir=~\/local\/share\/\nmake -j3\nmake install<\/pre>\n<h2>\u6b8b\u308a\u306e\u4f5c\u696d<\/h2>\n<p>\u5f8c\u306f\u3001~\/.bash_profile\u3092\u7de8\u96c6\u3057\u3066\u3001PATH\u306b~\/local\/bin\u3092\u8ffd\u52a0\u3059\u308b\u3002<\/p>\n<pre>PATH=~\/local\/bin:$PATH<\/pre>\n<p><a href=\"http:\/\/oohito.com\/nqthm\/archives\/2205\" title=\"OS X(Maverics)\u306bSTM32F4DISCOVERY\u7528\u306e\u958b\u767a\u74b0\u5883\u3092\u69cb\u7bc9\uff08\u30b5\u30f3\u30d7\u30eb\u30d3\u30eb\u30c9\u7de8\uff09\">\u6b21\u306e\u8a18\u4e8b<\/a>\u3067\u306fSTM32F4DISCOVERY\u306e\u30b5\u30f3\u30d7\u30eb\u30d3\u30eb\u30c9\u65b9\u6cd5\u306b\u3064\u3044\u3066\u8aac\u660e\u3059\u308b\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u79cb\u6708\u96fb\u5b50\u3067STM32F4DISCOVERY\u3092\u8cb7\u3063\u305f\u306e\u3067\u3001Mac OS X(Maverics)\u4e0a\u306b\u958b\u767a\u74b0\u5883\u3092\u69cb\u7bc9\u3057\u3066\u307f\u305f\u3002 STM32F4DISCOVERY\u306fCPU\u3068\u3057\u3066ARM Cortex-M4\u3092\u30b3\u30a2\u306b\u6301\u3063\u305fSTM42F&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[35,42],"tags":[],"class_list":["post-2201","post","type-post","status-publish","format-standard","hentry","category-mac","category-stm32"],"_links":{"self":[{"href":"https:\/\/oohito.com\/nqthm\/wp-json\/wp\/v2\/posts\/2201","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/oohito.com\/nqthm\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/oohito.com\/nqthm\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/oohito.com\/nqthm\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/oohito.com\/nqthm\/wp-json\/wp\/v2\/comments?post=2201"}],"version-history":[{"count":0,"href":"https:\/\/oohito.com\/nqthm\/wp-json\/wp\/v2\/posts\/2201\/revisions"}],"wp:attachment":[{"href":"https:\/\/oohito.com\/nqthm\/wp-json\/wp\/v2\/media?parent=2201"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/oohito.com\/nqthm\/wp-json\/wp\/v2\/categories?post=2201"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/oohito.com\/nqthm\/wp-json\/wp\/v2\/tags?post=2201"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}