{"id":561,"date":"2016-12-07T21:53:58","date_gmt":"2016-12-07T21:53:58","guid":{"rendered":"http:\/\/www.jontrinder.com\/blog\/?p=561"},"modified":"2016-12-07T21:53:58","modified_gmt":"2016-12-07T21:53:58","slug":"from-mbed-online-to-mbed-cli-via-kds-and-lpcxpresso","status":"publish","type":"post","link":"https:\/\/www.jontrinder.com\/blog\/?p=561","title":{"rendered":"From mbed online to mbed-cli via KDS and LPCXpresso"},"content":{"rendered":"<p>After an exciting few weeks with projects using 11u35\/1764 and K64F with lpcXpresso and Kinetis Design Studio I have yet to find a good working IDE for ALL of them. So as the online tools have been slow this week I have resorted to mbed-cli command line tools.<\/p>\n<p>The export as zip option has been removed from the online tools so I have used either export to LPCXpresso or as a GCC project.<\/p>\n<p>So here are \u00a0the steps:-<\/p>\n<p>1)download as expresso or gcc export<br \/>\n2)unpack into folder<br \/>\n3)cd into folder<br \/>\n4)mbed new .<br \/>\n5)modify mbed.bld to<br \/>\nhttp:\/\/mbed.org\/users\/mbed_official\/code\/mbed\/builds\/25aea2a3f4e3<\/p>\n<p>(theres a post about this at\u00a0<a href=\"https:\/\/github.com\/ARMmbed\/mbed-cli\/issues\/391#issuecomment-259932373)\">https:\/\/github.com\/ARMmbed\/mbed-cli\/issues\/391#issuecomment-259932373<\/a>\u00a0)<br \/>\n6)mbed deploy<\/p>\n<p>it then complains about libraries references<br \/>\neg<\/p>\n<p>[mbed] ERROR: Library reference &#8220;MPU6050.lib&#8221; points to a folder &#8220;\/junk\/jt_mbed_cli\/nl_DEV_datalogger_nolib\/MPU6050&#8221;, which is not a valid repository.<br \/>\n[mbed] ERROR: You can remove the conflicting folder manually and use &#8220;mbed deploy&#8221; to import the missing libraries<br \/>\n[mbed] ERROR: You can also remove library reference &#8220;\/junk\/jt_mbed_cli\/nl_DEV_datalogger_nolib\/MPU6050.lib&#8221; and use &#8220;mbed sync&#8221; again.<br \/>\nTo work round this is is up to you I just deleted the libs and then doing<br \/>\nstep 7 to get them to download again was easiest<br \/>\n7)mbed deploy<\/p>\n<p>8) mbed compile -t GCC_ARM -m LPC1768<\/p>\n<p>In a later post I will explain how I then got mbed-cli to <em>actually<\/em>\u00a0export something for KDS and LPCXpresso and the fun it was getting them to compile&#8230;<\/p>\n<p>If you have an easier way, please drop me a line<\/p>\n","protected":false},"excerpt":{"rendered":"<p>After an exciting few weeks with projects using 11u35\/1764 and K64F with lpcXpresso and Kinetis Design Studio I have yet to find a good working IDE for ALL of them. So as the online tools have been slow this week &hellip; <a href=\"https:\/\/www.jontrinder.com\/blog\/?p=561\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[81,80,38],"tags":[],"class_list":["post-561","post","type-post","status-publish","format-standard","hentry","category-coding","category-computing","category-mbed"],"_links":{"self":[{"href":"https:\/\/www.jontrinder.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/561","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.jontrinder.com\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.jontrinder.com\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.jontrinder.com\/blog\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.jontrinder.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=561"}],"version-history":[{"count":2,"href":"https:\/\/www.jontrinder.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/561\/revisions"}],"predecessor-version":[{"id":563,"href":"https:\/\/www.jontrinder.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/561\/revisions\/563"}],"wp:attachment":[{"href":"https:\/\/www.jontrinder.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=561"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.jontrinder.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=561"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.jontrinder.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=561"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}