{"id":144,"date":"2015-09-13T19:56:17","date_gmt":"2015-09-13T19:56:17","guid":{"rendered":"http:\/\/justanotherelectronicsblog.com\/?p=144"},"modified":"2015-09-13T19:56:47","modified_gmt":"2015-09-13T19:56:47","slug":"tinycortex-part-3-offline-compiling","status":"publish","type":"post","link":"https:\/\/justanotherelectronicsblog.com\/?p=144","title":{"rendered":"Tinycortex, part 3. Offline compiling"},"content":{"rendered":"<p><!--wp_fromhtmlpreview_devfmt--><\/p>\n<p><!--wp_fromhtmlpreview_devfmt--><\/p>\n<p><!--wp_fromhtmlpreview_devfmt--><\/p>\n<p><!--wp_fromhtmlpreview_devfmt--><\/p>\n<p>The MBED IDE is an online IDE, which is less pleasant if you want to work without internet or prefer your own editor. Luckily it is possible to export an MBED project and use an offline compiler. It can export to KEIL, GCC and a few others.<\/p>\n<p>KEIL is a well known IDE now owned by ARM. They offer a free 32KB limited version and with the Tinycortex having 32KB of flash memory that limit is no issue. KEIL is Windows only and the unlimited version is quite expensive. A guide on exporting to KEIL can be found <a href=\"https:\/\/developer.mbed.org\/handbook\/Exporting-to-uVision\">here<\/a>. Because KEIL just works it&#8217;s the recommended way for offline compiling.<\/p>\n<p>It is also possible to export to a GCC makefile which is especially nice for people using Linux or OS X.\u00a0 An ARM compiler is required, the most used and free one being <a href=\"https:\/\/launchpad.net\/gcc-arm-embedded\">GCC ARM Embedded<\/a>, which is being maintained by ARM employees. On a Linux system with make and the ARM compiler installed compiling the code is just typing &#8220;make&#8221; in the terminal. After a few seconds the output for the Blinkaled project you can find on my github is:<br \/>\n<a href=\"http:\/\/justanotherelectronicsblog.com\/wp-content\/uploads\/2015\/09\/Selection_020.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-149\" src=\"http:\/\/justanotherelectronicsblog.com\/wp-content\/uploads\/2015\/09\/Selection_020.png\" alt=\"Selection_020\" width=\"663\" height=\"191\" srcset=\"https:\/\/justanotherelectronicsblog.com\/wp-content\/uploads\/2015\/09\/Selection_020.png 663w, https:\/\/justanotherelectronicsblog.com\/wp-content\/uploads\/2015\/09\/Selection_020-300x86.png 300w\" sizes=\"auto, (max-width: 663px) 100vw, 663px\" \/><\/a><\/p>\n<p>Sadly enough it&#8217;s not possible to just copy the generated .bin file on the tinycortex. With just the makefile the binary file isn&#8217;t checksummed. A small script in the &#8220;Tools&#8221; folder called checksum is used to checksum the file. Place it in the folder with the binary and run it with the command &#8220;.\/checksum filename.bin&#8221;. The checksum script is compiled for Linux, OS-X or Windows users need to recompile it using the command &#8220;gcc -o checksum checksum.c&#8221;.<\/p>\n<p>Linux and OS-X users have to use the dd command to place the binary on the Tinycortex.<\/p>\n<p><!--wp_fromhtmlpreview_devfmt--><!--wp_fromhtmlpreview_devfmt--><\/p>\n","protected":false},"excerpt":{"rendered":"<p>The MBED IDE is an online IDE, which is less pleasant if you want to work without internet or prefer your own editor. Luckily it is possible to export an MBED project and use an offline compiler. It can export to KEIL, GCC and a few others. KEIL is a well known IDE now owned [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","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":""},"categories":[1],"tags":[13,15,14],"class_list":["post-144","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-arm","tag-tinycortex","tag-tutorial"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.8 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Tinycortex, part 3. Offline compiling - jaeblog<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/justanotherelectronicsblog.com\/?p=144\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Tinycortex, part 3. Offline compiling - jaeblog\" \/>\n<meta property=\"og:description\" content=\"The MBED IDE is an online IDE, which is less pleasant if you want to work without internet or prefer your own editor. Luckily it is possible to export an MBED project and use an offline compiler. It can export to KEIL, GCC and a few others. KEIL is a well known IDE now owned [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/justanotherelectronicsblog.com\/?p=144\" \/>\n<meta property=\"og:site_name\" content=\"jaeblog\" \/>\n<meta property=\"article:published_time\" content=\"2015-09-13T19:56:17+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2015-09-13T19:56:47+00:00\" \/>\n<meta property=\"og:image\" content=\"http:\/\/justanotherelectronicsblog.com\/wp-content\/uploads\/2015\/09\/Selection_020.png\" \/>\n<meta name=\"author\" content=\"riktw\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"riktw\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/justanotherelectronicsblog.com\/?p=144#article\",\"isPartOf\":{\"@id\":\"https:\/\/justanotherelectronicsblog.com\/?p=144\"},\"author\":{\"name\":\"riktw\",\"@id\":\"https:\/\/justanotherelectronicsblog.com\/#\/schema\/person\/d77e39721321c4a472b49909a8f1982b\"},\"headline\":\"Tinycortex, part 3. Offline compiling\",\"datePublished\":\"2015-09-13T19:56:17+00:00\",\"dateModified\":\"2015-09-13T19:56:47+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/justanotherelectronicsblog.com\/?p=144\"},\"wordCount\":294,\"commentCount\":0,\"image\":{\"@id\":\"https:\/\/justanotherelectronicsblog.com\/?p=144#primaryimage\"},\"thumbnailUrl\":\"http:\/\/justanotherelectronicsblog.com\/wp-content\/uploads\/2015\/09\/Selection_020.png\",\"keywords\":[\"arm\",\"tinycortex\",\"tutorial\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/justanotherelectronicsblog.com\/?p=144#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/justanotherelectronicsblog.com\/?p=144\",\"url\":\"https:\/\/justanotherelectronicsblog.com\/?p=144\",\"name\":\"Tinycortex, part 3. Offline compiling - jaeblog\",\"isPartOf\":{\"@id\":\"https:\/\/justanotherelectronicsblog.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/justanotherelectronicsblog.com\/?p=144#primaryimage\"},\"image\":{\"@id\":\"https:\/\/justanotherelectronicsblog.com\/?p=144#primaryimage\"},\"thumbnailUrl\":\"http:\/\/justanotherelectronicsblog.com\/wp-content\/uploads\/2015\/09\/Selection_020.png\",\"datePublished\":\"2015-09-13T19:56:17+00:00\",\"dateModified\":\"2015-09-13T19:56:47+00:00\",\"author\":{\"@id\":\"https:\/\/justanotherelectronicsblog.com\/#\/schema\/person\/d77e39721321c4a472b49909a8f1982b\"},\"breadcrumb\":{\"@id\":\"https:\/\/justanotherelectronicsblog.com\/?p=144#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/justanotherelectronicsblog.com\/?p=144\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/justanotherelectronicsblog.com\/?p=144#primaryimage\",\"url\":\"http:\/\/justanotherelectronicsblog.com\/wp-content\/uploads\/2015\/09\/Selection_020.png\",\"contentUrl\":\"http:\/\/justanotherelectronicsblog.com\/wp-content\/uploads\/2015\/09\/Selection_020.png\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/justanotherelectronicsblog.com\/?p=144#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/justanotherelectronicsblog.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Tinycortex, part 3. Offline compiling\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/justanotherelectronicsblog.com\/#website\",\"url\":\"https:\/\/justanotherelectronicsblog.com\/\",\"name\":\"jaeblog\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/justanotherelectronicsblog.com\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/justanotherelectronicsblog.com\/#\/schema\/person\/d77e39721321c4a472b49909a8f1982b\",\"name\":\"riktw\",\"url\":\"https:\/\/justanotherelectronicsblog.com\/?author=1\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Tinycortex, part 3. Offline compiling - jaeblog","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/justanotherelectronicsblog.com\/?p=144","og_locale":"en_US","og_type":"article","og_title":"Tinycortex, part 3. Offline compiling - jaeblog","og_description":"The MBED IDE is an online IDE, which is less pleasant if you want to work without internet or prefer your own editor. Luckily it is possible to export an MBED project and use an offline compiler. It can export to KEIL, GCC and a few others. KEIL is a well known IDE now owned [&hellip;]","og_url":"https:\/\/justanotherelectronicsblog.com\/?p=144","og_site_name":"jaeblog","article_published_time":"2015-09-13T19:56:17+00:00","article_modified_time":"2015-09-13T19:56:47+00:00","og_image":[{"url":"http:\/\/justanotherelectronicsblog.com\/wp-content\/uploads\/2015\/09\/Selection_020.png","type":"","width":"","height":""}],"author":"riktw","twitter_card":"summary_large_image","twitter_misc":{"Written by":"riktw","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/justanotherelectronicsblog.com\/?p=144#article","isPartOf":{"@id":"https:\/\/justanotherelectronicsblog.com\/?p=144"},"author":{"name":"riktw","@id":"https:\/\/justanotherelectronicsblog.com\/#\/schema\/person\/d77e39721321c4a472b49909a8f1982b"},"headline":"Tinycortex, part 3. Offline compiling","datePublished":"2015-09-13T19:56:17+00:00","dateModified":"2015-09-13T19:56:47+00:00","mainEntityOfPage":{"@id":"https:\/\/justanotherelectronicsblog.com\/?p=144"},"wordCount":294,"commentCount":0,"image":{"@id":"https:\/\/justanotherelectronicsblog.com\/?p=144#primaryimage"},"thumbnailUrl":"http:\/\/justanotherelectronicsblog.com\/wp-content\/uploads\/2015\/09\/Selection_020.png","keywords":["arm","tinycortex","tutorial"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/justanotherelectronicsblog.com\/?p=144#respond"]}]},{"@type":"WebPage","@id":"https:\/\/justanotherelectronicsblog.com\/?p=144","url":"https:\/\/justanotherelectronicsblog.com\/?p=144","name":"Tinycortex, part 3. Offline compiling - jaeblog","isPartOf":{"@id":"https:\/\/justanotherelectronicsblog.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/justanotherelectronicsblog.com\/?p=144#primaryimage"},"image":{"@id":"https:\/\/justanotherelectronicsblog.com\/?p=144#primaryimage"},"thumbnailUrl":"http:\/\/justanotherelectronicsblog.com\/wp-content\/uploads\/2015\/09\/Selection_020.png","datePublished":"2015-09-13T19:56:17+00:00","dateModified":"2015-09-13T19:56:47+00:00","author":{"@id":"https:\/\/justanotherelectronicsblog.com\/#\/schema\/person\/d77e39721321c4a472b49909a8f1982b"},"breadcrumb":{"@id":"https:\/\/justanotherelectronicsblog.com\/?p=144#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/justanotherelectronicsblog.com\/?p=144"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/justanotherelectronicsblog.com\/?p=144#primaryimage","url":"http:\/\/justanotherelectronicsblog.com\/wp-content\/uploads\/2015\/09\/Selection_020.png","contentUrl":"http:\/\/justanotherelectronicsblog.com\/wp-content\/uploads\/2015\/09\/Selection_020.png"},{"@type":"BreadcrumbList","@id":"https:\/\/justanotherelectronicsblog.com\/?p=144#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/justanotherelectronicsblog.com\/"},{"@type":"ListItem","position":2,"name":"Tinycortex, part 3. Offline compiling"}]},{"@type":"WebSite","@id":"https:\/\/justanotherelectronicsblog.com\/#website","url":"https:\/\/justanotherelectronicsblog.com\/","name":"jaeblog","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/justanotherelectronicsblog.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/justanotherelectronicsblog.com\/#\/schema\/person\/d77e39721321c4a472b49909a8f1982b","name":"riktw","url":"https:\/\/justanotherelectronicsblog.com\/?author=1"}]}},"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/justanotherelectronicsblog.com\/index.php?rest_route=\/wp\/v2\/posts\/144","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/justanotherelectronicsblog.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/justanotherelectronicsblog.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/justanotherelectronicsblog.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/justanotherelectronicsblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=144"}],"version-history":[{"count":3,"href":"https:\/\/justanotherelectronicsblog.com\/index.php?rest_route=\/wp\/v2\/posts\/144\/revisions"}],"predecessor-version":[{"id":151,"href":"https:\/\/justanotherelectronicsblog.com\/index.php?rest_route=\/wp\/v2\/posts\/144\/revisions\/151"}],"wp:attachment":[{"href":"https:\/\/justanotherelectronicsblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=144"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/justanotherelectronicsblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=144"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/justanotherelectronicsblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=144"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}