{"id":3055,"date":"2018-01-02T20:14:57","date_gmt":"2018-01-02T11:14:57","guid":{"rendered":"http:\/\/oohito.com\/nqthm\/?p=3055"},"modified":"2018-01-02T20:14:57","modified_gmt":"2018-01-02T11:14:57","slug":"microbit-%e3%81%ae%e3%82%aa%e3%83%95%e3%83%a9%e3%82%a4%e3%83%b3%e9%96%8b%e7%99%ba%e7%92%b0%e5%a2%83%e3%81%ae%e6%a7%8b%e7%af%89","status":"publish","type":"post","link":"https:\/\/oohito.com\/nqthm\/archives\/3055","title":{"rendered":"micro:bit \u306e\u30aa\u30d5\u30e9\u30a4\u30f3\u958b\u767a\u74b0\u5883\u306e\u69cb\u7bc9"},"content":{"rendered":"<p>micro:bit \u3067\u306f\u3055\u307e\u3056\u307e\u306a\u30a6\u30a7\u30d6\u30d9\u30fc\u30b9\u306e\u958b\u767a\u74b0\u5883\u304c\u63d0\u4f9b\u3055\u308c\u3066\u3044\u308b\u3002<br \/>\n\u3053\u306e\u8a18\u4e8b\u3067\u306f\u30aa\u30d5\u30e9\u30a4\u30f3\u3067\u306e\u958b\u767a\u74b0\u5883\u306e\u69cb\u7bc9\u65b9\u6cd5\uff08\u305f\u3060\u3057 Ubuntu Linux \u306e\u307f\uff09\u306b\u3064\u3044\u3066\u8aac\u660e\u3059\u308b\u3002<br \/>\n\u53c2\u8003\u306b\u3057\u305f\u306e\u306f\u4ee5\u4e0b\u306e\u30b5\u30a4\u30c8\u3067\u3042\u308b\u3002<br \/>\n<a href=\"https:\/\/lancaster-university.github.io\/microbit-docs\/offline-toolchains\/\">https:\/\/lancaster-university.github.io\/microbit-docs\/offline-toolchains\/<\/a><br \/>\n<!--more--><\/p>\n<h2>yotta \u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h2>\n<p>\u6700\u521d\u306b\u3059\u308b\u306e\u306f yotta \u3068\u3044\u3046\u30d3\u30eb\u30c9\u30c4\u30fc\u30eb\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3067\u3042\u308b\u3002 yotta \u306f Python \u3067\u8a18\u8ff0\u3055\u308c\u3066\u3044\u308b\u305f\u3081\u3001Python \u95a2\u4fc2\u306e\u958b\u767a\u30c4\u30fc\u30eb\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305f\u3042\u3068\u3067 yotta \u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3002<\/p>\n<pre>sudo apt-get install python-setuptools cmake build-essential ninja-build python-dev libffi-dev libssl-dev\nsudo easy_install pip\npip install yotta<\/pre>\n<p>\u30e2\u30b8\u30e5\u30fc\u30eb\u306e\u4f9d\u5b58\u95a2\u4fc2\u3092\u66f4\u65b0\u3067\u304d\u308b\u3088\u3046\u306b\u3059\u308b\u305f\u3081\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306e\u30d1\u30fc\u30df\u30c3\u30b7\u30e7\u30f3\u3092\u5909\u66f4\u3057\u3066\u304a\u304f\u3002<\/p>\n<pre>sudo mkdir -p \/usr\/local\/lib\/yotta_modules\nsudo chown $USER \/usr\/local\/lib\/yotta_modules\nchmod 755 \/usr\/local\/lib\/yotta_modules<\/pre>\n<h2>gcc \u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h2>\n<p>gcc-arm-none-eabi \u3067\u306f\u306a\u304f\u3001ARM\u304c\u30e1\u30f3\u30c6\u3057\u3066\u3044\u308b gcc \u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3002\u305d\u306e\u305f\u3081\u306b apt \u306e\u30ec\u30dd\u30b8\u30c8\u30ea\u3092\u8ffd\u52a0\u3059\u308b\u3002<\/p>\n<pre>sudo add-apt-repository ppa:team-gcc-arm-embedded\/ppa\nsudo apt-get update<\/pre>\n<p>gcc \u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3002<\/p>\n<pre>sudo apt-get install gcc-arm-embedded<\/pre>\n<p>\u3064\u3044\u3067\u306b srecord \u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3002<\/p>\n<pre>sudo apt-get install srecord<\/pre>\n<h2>\u30b5\u30f3\u30d7\u30eb\u30d5\u30a1\u30a4\u30eb\u306e\u30d3\u30eb\u30c9<\/h2>\n<p>\u30b5\u30f3\u30d7\u30eb\u306e\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3092\u5165\u624b\u3057\u3066\u30d3\u30eb\u30c9\u3059\u308b\u3002<\/p>\n<pre>git clone https:\/\/github.com\/lancaster-university\/microbit-samples\ncd microbit-samples\nyt target bbc-microbit-classic-gcc\nyt build<\/pre>\n<p>\u30d3\u30eb\u30c9\u304c\u6210\u529f\u3059\u308b\u3068 .\/build\/bbc-microbit-classic-gcc\/source\/microbit-samples-combined.hex \u304c\u3067\u304d\u308b\u306e\u3067\u3001\u30de\u30a6\u30f3\u30c8\u3057\u305f micro:bit \u306b\u30b3\u30d4\u30fc\u3059\u308b\u3002<\/p>\n<pre>cp .\/build\/bbc-microbit-classic-gcc\/source\/microbit-samples-combined.hex \/media\/MICROBIT<\/pre>\n<h2>\u30c8\u30e9\u30d6\u30eb\u30b7\u30e5\u30fc\u30c6\u30a3\u30f3\u30b0<\/h2>\n<p>micro:bit \u306e\u74b0\u5883\u69cb\u7bc9\u306f\u306a\u305c\u304b 64bit \u74b0\u5883\u3067\u3046\u307e\u304f\u3044\u304b\u306a\u304b\u3063\u305f\u3002 yt build \u3092\u884c\u3046\u3068\u30a8\u30e9\u30fc\u304c\u51fa\u3066\u3057\u307e\u3046\u3002<\/p>\n<pre>% yt build\ninfo: get versions for microbit\nerror: 'NoneType' object has no attribute 'rfind'<\/pre>\n<p>\u3044\u308d\u3044\u308d\u8abf\u3079\u305f\u304c\u89e3\u6c7a\u7b56\u304c\u898b\u3064\u304b\u3089\u306a\u304b\u3063\u305f\u306e\u3067\u3001 ubuntu-server 16.04 \u306ei386\u7248\u3092\u65b0\u898f\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u8a66\u3057\u3066\u307f\u305f\u3089\u3046\u307e\u304f\u3044\u3063\u305f\u3002<br \/>\n\u307e\u305f\u3001 yt target \u3067\u3082\u30a8\u30e9\u30fc\u304c\u767a\u751f\u3057\u305f\u3002\u3053\u308c\u306f \u4ee5\u4e0b\u306e\u3088\u3046\u306b pyopenssl \u3092\u518d\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3053\u3068\u3067\u56de\u907f\u3067\u304d\u305f\u3002<\/p>\n<pre>sudo pip uninstall pyopenssl\nsudo pip install pyopenssl<\/pre>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>micro:bit \u3067\u306f\u3055\u307e\u3056\u307e\u306a\u30a6\u30a7\u30d6\u30d9\u30fc\u30b9\u306e\u958b\u767a\u74b0\u5883\u304c\u63d0\u4f9b\u3055\u308c\u3066\u3044\u308b\u3002 \u3053\u306e\u8a18\u4e8b\u3067\u306f\u30aa\u30d5\u30e9\u30a4\u30f3\u3067\u306e\u958b\u767a\u74b0\u5883\u306e\u69cb\u7bc9\u65b9\u6cd5\uff08\u305f\u3060\u3057 Ubuntu Linux \u306e\u307f\uff09\u306b\u3064\u3044\u3066\u8aac\u660e\u3059\u308b\u3002 \u53c2\u8003\u306b\u3057\u305f\u306e\u306f\u4ee5\u4e0b\u306e\u30b5\u30a4\u30c8\u3067\u3042\u308b\u3002 h&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[37],"tags":[],"class_list":["post-3055","post","type-post","status-publish","format-standard","hentry","category-microbit"],"_links":{"self":[{"href":"https:\/\/oohito.com\/nqthm\/wp-json\/wp\/v2\/posts\/3055","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=3055"}],"version-history":[{"count":0,"href":"https:\/\/oohito.com\/nqthm\/wp-json\/wp\/v2\/posts\/3055\/revisions"}],"wp:attachment":[{"href":"https:\/\/oohito.com\/nqthm\/wp-json\/wp\/v2\/media?parent=3055"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/oohito.com\/nqthm\/wp-json\/wp\/v2\/categories?post=3055"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/oohito.com\/nqthm\/wp-json\/wp\/v2\/tags?post=3055"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}