{"id":67,"date":"2018-08-06T10:54:08","date_gmt":"2018-08-06T01:54:08","guid":{"rendered":"http:\/\/ada.jp\/?p=67"},"modified":"2018-08-06T10:54:08","modified_gmt":"2018-08-06T01:54:08","slug":"%e6%96%b0%e3%81%97%e3%81%84%e3%82%b3%e3%83%9f%e3%83%a5%e3%83%8b%e3%83%86%e3%82%a3%e3%83%90%e3%83%bc%e3%82%b8%e3%83%a7%e3%83%b3%e3%83%aa%e3%83%aa%e3%83%bc%e3%82%b9","status":"publish","type":"post","link":"https:\/\/ada.jp\/?p=67","title":{"rendered":"\u65b0\u3057\u3044\u30b3\u30df\u30e5\u30cb\u30c6\u30a3\u30d0\u30fc\u30b8\u30e7\u30f3\u30ea\u30ea\u30fc\u30b9"},"content":{"rendered":"AdaCore \u793e\u304b\u3089<a href=\"https:\/\/blog.adacore.com\/gnat-community-2018\">\u65b0\u3057\u3044\u30b3\u30df\u30e5\u30cb\u30c6\u30a3\u30d0\u30fc\u30b8\u30e7\u30f3<\/a>\u306e\u30ea\u30ea\u30fc\u30b9\u304c\u30a2\u30ca\u30a6\u30f3\u30b9\u3055\u308c\u3066\u3044\u307e\u3059\uff0e<\/p>\n<p>micro:bit\u304c\uff0c\u65b0\u305f\u306b\u6b63\u5f0f\u306e\u53c2\u7167\u30d7\u30e9\u30c3\u30c8\u30d5\u30a9\u30fc\u30e0\u306b\u306a\u3063\u3066\u3044\u307e\u3059\uff0e<\/p>\n<p>micro:bit\u3092\u4f7f\u7528\u3059\u308b\u305f\u3081\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u624b\u9806\u3092\u5c11\u3057\u88dc\u8db3\u3057\u3066\u304a\u304d\u307e\u3059\uff0eLinux\uff08Ubuntu 18.0.4\uff09\u306e\u5834\u5408\u3067\u3059\uff0e<\/p>\n<p>\u7d20\u306eUbuntu\u3060\u3068\uff0c\u6700\u521d\u306b\u6b21\u304c\u5fc5\u8981\u304b\u3082\u77e5\u308c\u307e\u305b\u3093\uff0e<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">$ sudo apt install make\r\n$ sudo apt install make-guile\r\n<\/pre>\n<ul style=\"list-style-type: disc;\">\n<li>Download and install <a href=\"https:\/\/www.adacore.com\/download\">GNAT arm-elf<\/a> hosted on your platform: Windows, Linux or MacOS. This package contains the ARM cross compiler as well the required Ada run-times<\/li>\n<\/ul>\n<p style=\"padding-left: 60px;\">\u30a4\u30f3\u30b9\u30c8\u30fc\u30e9\u65b9\u5f0f\u306b\u77e5\u3089\u306a\u3044\u9593\u306b\u5909\u308f\u3063\u3066\u3044\u307e\u3057\u305f\uff0e\u4e0a\u8a18\u304b\u3089gnat-community-2018-20180524-arm-elf-linux64-bin \u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\uff0c\u5b9f\u884c\u6a29\u3092\u4ed8\u52a0\u3057\u305f\u5f8c\uff0c\u5b9f\u884c\u3057\u307e\u3059\uff0e<\/p>\n<ul style=\"list-style-type: disc;\">\n<li>Download and install <a href=\"https:\/\/www.adacore.com\/download\">GNAT native <\/a>for your platform: Windows, Linux or MacOS. This package contains the GNAT Programming Studio IDE and an example to run on the micro:bit<\/li>\n<\/ul>\n<p style=\"padding-left: 60px;\">\u540c\u69d8\u306bgnat-community-2018-20180528-x86_64-linux-bin\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\uff0c\u5b9f\u884c\u6a29\u3092\u4ed8\u52a0\u3057\u305f\u5f8c\uff0c\u5b9f\u884c\u3057\u307e\u3059\uff0e\u6b21\u306e\u30b9\u30c6\u30c3\u30d7\u306b\u9032\u3080\u524d\u306b\uff0c\u30d1\u30b9\u306e\u8a2d\u5b9a\u3092\u3057\u3066\u304a\u304d\u307e\u3059\uff0e\u30c7\u30d5\u30a9\u30eb\u30c8\u3067\u3042\u308c\u3070\uff0c\u4ee5\u4e0b\u306b\u306a\u308a\u307e\u3059\uff0e<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"shell\">export PATH=\/opt\/GNAT\/2018-arm-elf\/bin:\/opt\/GNAT\/2018\/bin:$PATH<\/pre>\n<p style=\"padding-left: 60px;\">\u3082\u3046\u4e00\u3064\u6e96\u5099\u3092\u3057\u3066\u304a\u304d\u307e\u3059\uff0eUbuntu\u3067\u306f\uff0cmicro:bit \u306b bin\u30d5\u30a1\u30a4\u30eb \u3092\u8ee2\u9001\u3059\u308b\u305f\u3081\u306b\uff0cUSB\u306e\u8a2d\u5b9a\u3092\u884c\u3046\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\uff0e\/etc\/udev\/rules.d\/mbed.rules \u306e\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u308a\uff0c\u4ee5\u4e0b\u306e\u884c\u3060\u3051\u3092\u66f8\u304d\u8fbc\u307f\u307e\u3059\uff0e<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">SUBSYSTEM==\"usb\",MODE:=\"666\"<\/pre>\n<p style=\"padding-left: 60px;\">\u6b21\u306b\uff0c\u30b3\u30de\u30f3\u30c9\u30e9\u30a4\u30f3\u4e0a\u3067\uff0c\u4ee5\u4e0b\u3092\u5165\u529b\u3059\u308b\u3053\u3068\u3067\uff0c\u30ea\u30bb\u30c3\u30c8\u3055\u308c\u307e\u3059\uff0e<\/p>\n<pre class=\"EnlighterJSRAW\">$ sudo udevadm trigger<\/pre>\n<ul style=\"list-style-type: disc;\">\n<li>Start GNAT Programming Studio<\/li>\n<\/ul>\n<p style=\"padding-left: 30px;\">\u4f8b\u3048\u3070\uff0c\u30b3\u30de\u30f3\u30c9\u30e9\u30a4\u30f3\u4e0a\u3067\uff0cgps &amp; \u3068\u3057\u307e\u3059\uff0eIDE\u306e\u5b9f\u884c\u3067\u3059\uff0e\u4ee5\u4e0b\u306f\uff0cIDE\u4e0a\u3067\u306e\u64cd\u4f5c\u306b\u306a\u308a\u307e\u3059\uff0e\u3053\u308c\u307e\u3067\u306e\u64cd\u4f5c\u304c\u554f\u984c\u306a\u3051\u308c\u3070\uff0cmicro:bit \u306e LED \u306b\u201dMake with Ada!&#8221; \u306e\u6587\u5b57\u5217\u304c\u30b9\u30af\u30ed\u30fc\u30eb\u3055\u308c\u307e\u3059\uff0e\u3053\u306e\u6587\u5b57\u5217\u306f\uff0c\u30e1\u30a4\u30f3\u3092\u793a\u3059\u30dc\u30c7\u30a3\u90e8 main.adb \u3067\u5b9a\u7fa9\u3055\u308c\u3066\u3044\u307e\u3059\uff0e<\/p>\n<ul style=\"list-style-type: disc;\">\n<li>Click on \u201cCreate a new Project\u201d<\/li>\n<li>Select the \u201cScrolling Text\u201d project under \u201cBBC micro:bit\u201d and click Next<\/li>\n<li>Enter the directory where you want the project to be deployed and click Apply<\/li>\n<li>Plug your micro:bit board with a USB cable, and wait for the system to recognize it. This can take a few seconds<\/li>\n<li>Back in GNAT Programming Studio, click on the \u201cflash to board\u201d icon<\/li>\n<li>That\u2019s it!<\/li>\n<\/ul>\n<p>\u30b5\u30f3\u30d7\u30eb\u306f\uff0c\u4e00\u3064\u3060\u3051\u3067\u3059\uff0e\u305d\u306e\u4ed6\u306e\u4f8b\u306f\uff0c<a href=\"https:\/\/github.com\/AdaCore\/Ada_Drivers_Library.git\">\u3044\u3064\u3082\u306e\u5834\u6240<\/a>\u3092\u898b\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u304c\uff0c\u4ee5\u524d\u3068\u6bd4\u3079\u308b\u3068 micro:bit \u56de\u308a\u306f\u5145\u5b9f\u3057\u3066\u3044\u307e\u3059\uff0e\u3053\u308c\u3067\uff0c\u5c0f\u4e2d\u5b66\u751f\u3082\uff0cSPARK\uff0fAda\u3092\u5b66\u3073\u3084\u3059\u304f\u306a\u308a\u307e\u3059\u306d\uff0e<\/p>\n<p style=\"text-align: right;\"><em>(NIL)<\/em><\/p>","protected":false},"excerpt":{"rendered":"<p>AdaCore \u793e\u304b\u3089\u65b0\u3057\u3044\u30b3\u30df\u30e5\u30cb\u30c6\u30a3\u30d0\u30fc\u30b8\u30e7\u30f3\u306e\u30ea\u30ea\u30fc\u30b9\u304c\u30a2\u30ca\u30a6\u30f3\u30b9\u3055\u308c\u3066\u3044\u307e\u3059\uff0e micro:bit\u304c\uff0c\u65b0\u305f\u306b\u6b63\u5f0f\u306e\u53c2\u7167\u30d7\u30e9\u30c3\u30c8\u30d5\u30a9\u30fc\u30e0\u306b\u306a\u3063\u3066\u3044\u307e\u3059\uff0e micro:bit\u3092\u4f7f\u7528\u3059\u308b\u305f\u3081\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u624b\u9806\u3092\u5c11\u3057\u88dc\u8db3&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[4],"tags":[],"class_list":["post-67","post","type-post","status-publish","format-standard","hentry","category-news"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/pa1llS-15","_links":{"self":[{"href":"https:\/\/ada.jp\/index.php?rest_route=\/wp\/v2\/posts\/67","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ada.jp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ada.jp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ada.jp\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ada.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=67"}],"version-history":[{"count":14,"href":"https:\/\/ada.jp\/index.php?rest_route=\/wp\/v2\/posts\/67\/revisions"}],"predecessor-version":[{"id":85,"href":"https:\/\/ada.jp\/index.php?rest_route=\/wp\/v2\/posts\/67\/revisions\/85"}],"wp:attachment":[{"href":"https:\/\/ada.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=67"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ada.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=67"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ada.jp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=67"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}