{"id":789,"date":"2012-02-18T23:53:42","date_gmt":"2012-02-18T14:53:42","guid":{"rendered":"http:\/\/unos.biz\/blog\/?p=789"},"modified":"2012-02-20T01:25:22","modified_gmt":"2012-02-19T16:25:22","slug":"lpc1114-lpc11u24%e3%81%a8yagarto%e3%81%a8osx%e3%81%a8%e8%aa%bf%e6%9f%bb%e4%b8%ad","status":"publish","type":"post","link":"http:\/\/unos.biz\/blog\/archives\/789","title":{"rendered":"lpc1114 -> lpc11u24\u3068YAGARTO\u3068OSX\u3068"},"content":{"rendered":"<p>mbed\u3092\u8cb7\u3063\u3066\u305d\u306e\u4fbf\u5229\u3055\u306b\u611f\u52d5\u3057\u305f\u3082\u306e\u306e\u3001\u305d\u308c\u304c\u975e\u5e38\u306bmbed\u3068\u3044\u3046\u67a0\u306b\u9589\u3058\u8fbc\u3081\u3089\u308c\u3066\u3044\u3066\u3044\u308b\u3068\u3044\u3046\u6c17\u304c\u3057\u3066\u3057\u307e\u3044\u3001\u7d50\u5c40LPCXpresso\u3092\u8cb7\u3044\u8db3\u3057\u3066\u304d\u305f\u3002\u3059\u3067\u306b\u6301\u3063\u3066\u3044\u308bLPC1769\u7248\u3068LPC1343\u7248\u3082\u3042\u308b\u306e\u3060\u304c\u3001\u3061\u3087\u3063\u3068\u76ee\u7684\u3082\u3042\u308b\u306e\u3067Cortex-M0\u306aLPC1114\u7248\u3002\u534a\u3070\u610f\u5730\u3067OSX\u74b0\u5883\u3067\u958b\u767a\u3057\u305f\u3044\u306e\u3067\u3001\u8cb7\u3063\u3066\u304d\u3066\u304a\u3082\u3080\u308d\u306b\u771f\u3093\u4e2d\u3067\u5207\u308a\u96e2\u3057\u305f\u3002<\/p>\n<p>\u305d\u3057\u3066\u30ce\u30ea\u30ce\u30ea\u3067USB\u3067\u7e4b\u3050\u3079\u304f\u3001MiniUSB\u306e\u30b3\u30cd\u30af\u30bf\u3092\u4ed8\u3051\u3001\u30d7\u30eb\u30a2\u30c3\u30d7\u62b5\u6297\u3092\u4ed8\u3051\u3001USB\u306e\u914d\u7dda\u3092\u3057\u3066LDO\u3092\u4ed8\u3051\u3066\u3002\u3053\u3053\u307e\u3067\u3084\u3063\u3066\u304b\u3089\u5927\u304d\u306a\u30df\u30b9\u306b\u6c17\u3065\u3044\u305f\u3002\u30b7\u30eb\u30af\u30b9\u30af\u30ea\u30fc\u30f3\u306bUSB_DP, USB_DM\u3068\u3044\u3046\u8a18\u8f09\u304c\u3042\u3063\u305f\u306e\u3067\u308d\u304f\u306b\u8abf\u3079\u305aUSB\u3067Mass Storage\u3067\u306e\u66f8\u304d\u8fbc\u307f\u304c\u51fa\u6765\u308b\u3060\u308d\u3046\u3001\u3068\u601d\u3063\u3066\u3044\u305f\u3089\u3001\u5b9f\u306f\u305d\u308c\u306f\u51fa\u6765\u306a\u304b\u3063\u305f\u306e\u3060\u3002\u3060\u304b\u3089MARY\u3082\u308f\u3056\u308f\u3056USB-Serial\u5909\u63db\u30c1\u30c3\u30d7\u304c\u8f09\u3063\u3066\u3044\u305f\u308f\u3051\u3067\u3002\u3088\u304f\u3088\u304fLPCXpresso\u306e\u30c7\u30fc\u30bf\u30b7\u30fc\u30c8\u3092\u898b\u3066\u307f\u305f\u3089\u3001<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" src=\"http:\/\/unos.biz\/blog\/wp-content\/uploads\/2012\/02\/Screen-Shot-2012-02-18-at-0-1.44.24-.png\" alt=\"\" title=\"lpcxpresso note\" width=\"254\" height=\"89\" class=\"alignnone size-full wp-image-790\" \/><\/p>\n<p>\u306a\u308b\u307b\u3069\u3002\u3082\u3061\u308d\u3093LPC1114\u306e\u30c7\u30fc\u30bf\u30b7\u30fc\u30c8\u306b\u3082USB\u306a\u3093\u3066\u6587\u5b57\u306f\u306a\u304f\u3001\u601d\u3044\u5207\u308a\u30a6\u30c3\u30ab\u30ea\u3057\u3066\u3044\u305f\u5f62\u306b\u306a\u3063\u305f\u3002<\/p>\n<p>\u3068\u3044\u3046\u3053\u3068\u3067\u3053\u308c\u3058\u3083USB\u304c\u4f7f\u3048\u306a\u3044\u306e\u3060\u304c\u3001\u305d\u308c\u3067\u306f\u8272\u3005\u9032\u307e\u306a\u3044\u306e\u3067\u3001\u30db\u30c3\u30c8\u30a8\u30a2\u3092\u6301\u3061\u51fa\u3057\u3066\u30c1\u30c3\u30d7\u306e\u5f35\u308a\u66ff\u3048\u3092\u3057\u3066\u3057\u307e\u3063\u305f\u3002\u3061\u3087\u3046\u3069\u77f3\u306f\u3061\u3087\u3063\u3068\u524d\u306bdigikey\u304b\u3089\u4ed5\u5165\u308c\u3066\u304a\u3044\u305fLPC11U24\u3067\u3001\u30d4\u30f3\u30a2\u30b5\u30a4\u30f3\u3082\u307b\u307c\u4e00\u7dd2(\u7d30\u304b\u3044\u3068\u3053\u308d\u306f\u9055\u3046\u304c\u809d\u5fc3\u306a\u30d4\u30f3\u306f\u540c\u3058)\u306a\u306e\u3067\u3001\u305d\u306e\u307e\u307e\u5265\u304c\u3057\u3066\u4ed8\u3051\u66ff\u3048\u305f\u3060\u3051\u3002<\/p>\n<p>\u3055\u3066\u3001\u4ed8\u3051\u66ff\u3048\u305f\u306f\u3044\u3044\u304c\u3001\u4eca\u5ea6\u306f\u3069\u3046\u3084\u3063\u3066\u4e2d\u8eab\u3092\u66f8\u304f\u304b\u3002\u307e\u305atoolchain\u3060\u304c\u3001MacPorts\u3060\u3051\u3067\u306a\u3093\u3068\u304b\u3057\u3088\u3046\u3068\u8a66\u884c\u932f\u8aa4\u3057\u305f\u306e\u3060\u304c\u3069\u3046\u3057\u3066\u3082\u99c4\u76ee(\u3053\u308c\u306f\u3055\u3089\u306b\u8ffd\u3063\u3066\u8abf\u67fb\u3059\u308b\u3064\u3082\u308a\u3060\u304c\u3001newlib\u306e\u65b0\u3057\u3044\u7248\u306e\u90fd\u5408\u3067arm-none-eabi-gcc\u304c\u3061\u3083\u3093\u3068\u30d3\u30eb\u30c9\u51fa\u6765\u306a\u3044)\u3067\u3001\u3068\u308a\u3042\u3048\u305a\u306f<a href=\"http:\/\/www.yagarto.de\/\" target=\"_blank\">YAGARTO toolchain<\/a>\u3092\u4f7f\u3046\u3053\u3068\u306b\u3057\u305f\u3002\u9802\u3044\u3066\u304d\u3066\u5c55\u958b\u3057\u3066\u30d1\u30b9\u3092\u901a\u3059\u3002<\/p>\n<p>\u6b21\u3001\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u3092\u66f8\u304f\u65b9\u3002CMSIS\u306a\u3093\u3066\u3044\u3046\u80e1\u6563\u81ed\u3044\u3082\u306e\u306b\u624b\u3092\u51fa\u3059\u306e\u306f\u7d50\u5c40mbed\u304b\u3089\u30a8\u30af\u30b9\u30dd\u30fc\u30c8\u3057\u3066\u304f\u308b\u306e\u3068\u6b86\u3069\u540c\u3058\u3067\u30d6\u30e9\u30c3\u30af\u30dc\u30c3\u30af\u30b9\u304c\u6b8b\u3063\u3066\u6c17\u6301\u3061\u60aa\u3044\u3057\u3001\u3068\u306f\u3044\u3048\u4e16\u306e\u4e2d\u306b\u306f\u4f55\u6545\u304b\u300c\u307e\u305a\u306f\u3069\u3053\u305d\u3053\u304b\u3089\u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u30b3\u30d4\u30fc\u3057\u3066\u304d\u3066\u5c55\u958b\u3057\u3066\u300d\u3060\u3068\u304b\u300cLPCXpresso\u3092\u4f7f\u3063\u3066\u300d\u3070\u304b\u308a\u3067\u3053\u308c\u3082\u843d\u3061\u7740\u304b\u306a\u3044\u300232k\u3057\u304b\u30d5\u30e9\u30c3\u30b7\u30e5\u304c\u306a\u3044M0\u30af\u30e9\u30b9\u3054\u3068\u304d\u3001\u672c\u5f53\u306a\u3089\u30a2\u30bb\u30f3\u30d6\u30e9\u3067\u66f8\u3044\u305f\u3063\u3066\u826f\u3044\u306f\u305a\u3002\u3068\u304a\u3082\u3063\u3066\u8abf\u3079\u3066\u3044\u305f\u3089\u3001\u540c\u3058\u3088\u3046\u306a\u610f\u56f3\u3067ChaN\u3055\u3093\u304c<a href=\"http:\/\/elm-chan.org\/junk\/32bit\/report.html\" target=\"_blank\">32bit\u3078\u306e\u8a98\u3044<\/a>\u3068\u3044\u3046\u30b3\u30f3\u30c6\u30f3\u30c4\u3067\u4f59\u8a08\u306a\u30e9\u30a4\u30d6\u30e9\u30ea\u306b\u89e6\u308c\u306a\u3044\u3067\u6e08\u3080\u751f\u3063\u307d\u3044\u30b3\u30fc\u30c9\u3092\u516c\u958b\u3057\u3066\u304f\u308c\u3066\u3044\u308b\u306e\u3092\u898b\u4ed8\u3051\u305f\u3002\u3053\u308c\u5e78\u3044\u3068\u3053\u308c\u3092\u9802\u3044\u3066\u304d\u3066\u30d3\u30eb\u30c9\u3001\u30d3\u30eb\u30c9\u306f\u901a\u308b\u3051\u308c\u3069\u3046\u307e\u304f\u3044\u304b\u306a\u3044\u3002\u306a\u3093\u3067\u3060\u3002<\/p>\n<p>\u8ffd\u3063\u3066\u8abf\u3079\u3066\u3044\u304f\u3068\u3001\u30e1\u30e2\u30ea\u30a2\u30c9\u30ec\u30b9\u5148\u982d\u306e0x0000 001c(\u5272\u308a\u8fbc\u307f\u30d9\u30af\u30bf\u306e\u982d\u304b\u30898\u3064\u3081)\u306b\u30c1\u30a7\u30c3\u30af\u30b5\u30e0\u304c\u306a\u3044\u3068\u30e6\u30fc\u30b6\u30d7\u30ed\u30b0\u30e9\u30e0\u304cvalid\u3068\u3055\u308c\u306a\u3044\u3089\u3057\u3044\u3002gcc\u3055\u3093\u306b\u3053\u3053\u3089\u8fba\u3084\u3063\u3066\u3082\u3089\u3046\u65b9\u6cd5\u3082\u3042\u308b\u306e\u304b\u3082\u3057\u308c\u306a\u3044\u304c\u3001\u3053\u308c\u3082\u8abf\u3079\u3066\u3044\u305f\u3089microbuilder\u3055\u3093\u306e<a href=\"http:\/\/www.microbuilder.eu\/Projects\/LPC1343ReferenceDesign\/LPC1343Toolchain.aspx\" target=\"_blank\">lpc1343codebase<\/a>\u3092google code\u304b\u3089\u30c1\u30a7\u30c3\u30af\u30a2\u30a6\u30c8\u3057\u3066\u304d\u3066\u3001tools\/lpcrc\/\u4ee5\u4e0b\u3067Make\u3057\u3066lpcrc\u30c4\u30fc\u30eb\u3092\u5165\u624b\u3002\u3061\u306a\u307f\u306b\u3053\u306e\u3068\u304d\u306b<\/p>\n<pre>\r\ngcc -Wall -O4 -std=c99 -o lpcrc lpcrc.c\r\nld: lto: could not merge in \/var\/folders\/6f\/j0df6rz90jxbpfgg053_k0l80000gn\/T\/\/cc6uDMQK.o because Invalid ALLOCA record for architecture x86_64\r\ncollect2: ld returned 1 exit status\r\nmake: *** [lpcrc] Error 1\r\n<\/pre>\n<p>\u307f\u305f\u3044\u306a\u30a8\u30e9\u30fc\u304c\u3067\u305f\u3089\u3001Makefile\u3092\u3044\u3058\u3063\u3066-O4\u3092-O3\u306b\u3059\u308c\u3070\u56de\u907f\u3067\u304d\u308b\u3002<\/p>\n<p>\u3053\u3053\u307e\u3067\u3084\u3063\u3066\u3001\u751f\u6210\u3055\u308c\u305fbin\u30d5\u30a1\u30a4\u30eb\u3092lpcrc\u306b\u98df\u308f\u305b\u308b\u3053\u3068\u3067\u305d\u306e\u8fba\u307e\u3067\u6b63\u3057\u3044\u30d0\u30a4\u30ca\u30ea\u3092\u4f5c\u308c\u308b\u3088\u3046\u306b\u306a\u3063\u305f\u3093\u3058\u3083\u306a\u3044\u304b\u3068\u601d\u3046\u306e\u3060\u3051\u3069\u3001\u3001\u3001\u307e\u3060\u52d5\u304b\u306a\u3044\u306e\u3067\u7d50\u5c40\u307e\u3060\u8abf\u67fb\u4e2d\u3002\u7121\u5ff5\u3002\u8abf\u3079\u3066\u4f55\u304b\u308f\u304b\u3063\u305f\u3089\u968f\u6642\u53cd\u6620\u306e\u4e88\u5b9a\u3067\u3002<\/p>\n<p>2012\/2\/20 \u3046\u3054\u3044\u305f\u30fc\uff01<\/p>\n<p>\u30dd\u30a4\u30f3\u30c8\u306f\u3044\u304f\u3064\u304b\u3002<\/p>\n<ul>\n<li>\u30d5\u30a1\u30fc\u30e0\u3092\u52d5\u304b\u3059\u3068\u304d\u306fPORT0_1\/FTOGGLE\u3092\u89e3\u653e\u3059\u308b\u3060\u3051\u3067\u306a\u304f\u3001VBUS\u3082\u89e3\u653e\u3057\u3066\u3042\u3052\u306a\u3044\u3068\u99c4\u76ee<\/li>\n<li>LPC11xx\u3068LPC11Uxx\u306fGPIO\u30ec\u30b8\u30b9\u30bf\u304c\u3066\u3093\u3067\u9055\u3046\u3002\u3070\u3089\u3063\u3070\u3089\u3002<\/li>\n<li>ChaN\u3055\u3093\u306e\u516c\u958b\u3057\u3066\u304f\u3060\u3055\u3063\u3066\u3044\u308bstartup.c\u6700\u5f37\u3002\u3061\u3087\u3063\u3068\u3060\u3051\u3044\u3058\u3063\u305f\u306e\u3067\u5f8c\u307b\u3069\u30b3\u30d4\u30fc\u30e9\u30a4\u30c8\u7121\u3057\u6a29\u5229\u4e3b\u5f35\u7121\u3057\u30e9\u30a4\u30bb\u30f3\u30b9\u7121\u3057\u3067\u516c\u958b\u4e88\u5b9a\u3002\u3042\u308a\u304c\u305f\u3084\u3042\u308a\u304c\u305f\u3084\u30fb\u30fb\u30fb<\/li>\n<\/ul>\n<p>\u8907\u5408\u8981\u56e0\u3059\u304e\u308b\u3002<\/p>\n<p>\u6b21\u306e\u8abf\u67fb\u306f\u3001CRP(Code Read Protection)\u3092\u8a2d\u5b9a\u3057\u305f\u3068\u304d\u306e\u9699\u9593\u57cb\u3081\u3002CRP\u306f0x2fc\u306b\u3042\u308b\u306e\u3060\u304c\u3001LPC11Uxx\u306e\u5272\u308a\u8fbc\u307f\u30d9\u30af\u30bf\u306f0x00c0\u307e\u3067\u3002\u666e\u901a\u306b\u66f8\u3044\u305f\u3089\u305d\u306e\u9593\u306f00\u3067\u57cb\u3081\u308b\u3057\u304b\u306a\u304f\u3066\u3001572bytes\u307b\u3069\u7121\u99c4\u304c\u3067\u3066\u3057\u307e\u3046\u30020x2fc\u306b\u5165\u308b\u306e\u304c\u30de\u30b8\u30c3\u30af\u30ef\u30fc\u30c9(32bit\u50244\u3064)\u3067\u306a\u3051\u308c\u3070\u826f\u3044\u3068\u306f\u3044\u3048\u6c17\u6301\u3061\u60aa\u3044\u3057\u3001\u305d\u3082\u305d\u3082CRP\u3092\u4f7f\u3044\u305f\u3044\u3068\u304d\u306b\u305d\u308c\u3067\u306f\u4f7f\u3048\u306a\u3044\u3002\u3069\u3046\u3082LPCXpresso\u306a\u3093\u304b\u306f\u982d\u304b\u30890x2fc\u307e\u3067\u306e\u9593\u306b\u521d\u671f\u5316\u30b3\u30fc\u30c9\u3092\u7a81\u3063\u8fbc\u3093\u3060\u308a\u3057\u3066\u4f7f\u3063\u3066\u308b\u307f\u305f\u3044\u306a\u306e\u3060\u3051\u3069\u3001\u305d\u3061\u3089\u3082\u8abf\u3079\u306a\u3051\u308c\u3070\u308f\u304b\u3089\u306a\u3044\u3002\u3053\u308c\u306f\u8ffd\u3063\u3066\u5225\u306e\u30dd\u30b9\u30c8\u306b\u3002\u3072\u3068\u307e\u305a\u3053\u306e\u8a71\u5b8c\u7d50\u3002\u4f55\u304b\u306e\u53c2\u8003\u306b\u306a\u308c\u3070\u5e78\u3044\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>mbed\u3092\u8cb7\u3063\u3066\u305d\u306e\u4fbf\u5229\u3055\u306b\u611f\u52d5\u3057\u305f\u3082\u306e\u306e\u3001\u305d\u308c\u304c\u975e\u5e38\u306bmbed\u3068\u3044\u3046\u67a0\u306b\u9589\u3058\u8fbc\u3081\u3089\u308c\u3066\u3044\u3066\u3044\u308b\u3068\u3044\u3046\u6c17\u304c\u3057\u3066\u3057\u307e\u3044\u3001\u7d50\u5c40LPCXpresso\u3092\u8cb7\u3044\u8db3\u3057\u3066\u304d\u305f\u3002\u3059\u3067\u306b\u6301\u3063\u3066\u3044\u308bLPC1769\u7248\u3068LPC1343\u7248\u3082\u3042\u308b\u306e\u3060 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[51,12],"tags":[],"_links":{"self":[{"href":"http:\/\/unos.biz\/blog\/wp-json\/wp\/v2\/posts\/789"}],"collection":[{"href":"http:\/\/unos.biz\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/unos.biz\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/unos.biz\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/unos.biz\/blog\/wp-json\/wp\/v2\/comments?post=789"}],"version-history":[{"count":4,"href":"http:\/\/unos.biz\/blog\/wp-json\/wp\/v2\/posts\/789\/revisions"}],"predecessor-version":[{"id":794,"href":"http:\/\/unos.biz\/blog\/wp-json\/wp\/v2\/posts\/789\/revisions\/794"}],"wp:attachment":[{"href":"http:\/\/unos.biz\/blog\/wp-json\/wp\/v2\/media?parent=789"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/unos.biz\/blog\/wp-json\/wp\/v2\/categories?post=789"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/unos.biz\/blog\/wp-json\/wp\/v2\/tags?post=789"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}