{"id":1475,"date":"2014-11-21T21:01:30","date_gmt":"2014-11-21T21:01:30","guid":{"rendered":"http:\/\/41j.com\/blog\/?p=1475"},"modified":"2014-11-22T16:04:54","modified_gmt":"2014-11-22T16:04:54","slug":"msp430-development-on-linux-using-the-ez430-f2013","status":"publish","type":"post","link":"https:\/\/41j.com\/blog\/2014\/11\/msp430-development-on-linux-using-the-ez430-f2013\/","title":{"rendered":"MSP430 Development on Linux using the eZ430-F2013"},"content":{"rendered":"<p><a href=\"http:\/\/41j.com\/blog\/wp-content\/uploads\/2014\/11\/msp430-e1416604106754.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/41j.com\/blog\/wp-content\/uploads\/2014\/11\/msp430-e1416604106754-1024x413.jpg\" alt=\"msp430\" width=\"700\" height=\"282\" class=\"aligncenter size-large wp-image-1482\" srcset=\"https:\/\/41j.com\/blog\/wp-content\/uploads\/2014\/11\/msp430-e1416604106754-1024x413.jpg 1024w, https:\/\/41j.com\/blog\/wp-content\/uploads\/2014\/11\/msp430-e1416604106754-300x121.jpg 300w, https:\/\/41j.com\/blog\/wp-content\/uploads\/2014\/11\/msp430-e1416604106754.jpg 1452w\" sizes=\"auto, (max-width: 700px) 100vw, 700px\" \/><\/a><\/p>\n<p>Notes below are for debian wheezy:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\napt-get install gcc-msp430 mspdebug\r\nwget http:\/\/41j.com\/blog\/wp-content\/uploads\/2014\/11\/ti_3410.fw\r\nsudo cp ti_3410.fw \/lib\/firmware\/\r\n\r\n#compile code and program device\r\nwget http:\/\/41j.com\/blog\/wp-content\/uploads\/2014\/11\/myprog.c\r\nmsp430-gcc -Os -Wall -mmcu=msp430f2013 -std=gnu99 .\/myprog.c -o myprog\r\nsudo mspdebug uif -d \/dev\/ttyUSB0 'prog .\/myprog'\r\n<\/pre>\n<h2>notes<\/h2>\n<p>Useful information here on where to find firmware:<br \/>\n<a href=\"http:\/\/bewatermyfriend.org\/p\/2014\/001\/\">msp430 firmware<\/a><\/p>\n<p>I&#8217;ve used the following makefile in the past with some success: <a href=\"http:\/\/41j.com\/blog\/wp-content\/uploads\/2014\/11\/Makefile\">download<\/a><\/p>\n<p>This is the code I used for the test above:<\/p>\n<pre class=\"brush: cpp; title: ; notranslate\" title=\"\">\r\n#include &lt;msp430x20x3.h&gt;\r\nint main (void) {\r\n  WDTCTL = WDTPW | WDTHOLD;\r\n\r\n  P1DIR = 0xFF;\r\n  for(;;) {\r\n    P1OUT=0;\r\n    __delay_cycles(2500000);\r\n    P1OUT=1;\r\n    __delay_cycles(2500000);\r\n  }\r\nreturn 0;\r\n}\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Notes below are for debian wheezy: apt-get install gcc-msp430 mspdebug wget http:\/\/41j.com\/blog\/wp-content\/uploads\/2014\/11\/ti_3410.fw sudo cp ti_3410.fw \/lib\/firmware\/ #compile code and program device wget http:\/\/41j.com\/blog\/wp-content\/uploads\/2014\/11\/myprog.c msp430-gcc -Os -Wall -mmcu=msp430f2013 -std=gnu99 .\/myprog.c -o myprog sudo mspdebug uif -d \/dev\/ttyUSB0 &#8216;prog .\/myprog&#8217; notes Useful information here on where to find firmware: msp430 firmware I&#8217;ve used the following makefile in [&hellip;]<\/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":[1],"tags":[],"class_list":["post-1475","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p1RRoU-nN","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/41j.com\/blog\/wp-json\/wp\/v2\/posts\/1475","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/41j.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/41j.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/41j.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/41j.com\/blog\/wp-json\/wp\/v2\/comments?post=1475"}],"version-history":[{"count":5,"href":"https:\/\/41j.com\/blog\/wp-json\/wp\/v2\/posts\/1475\/revisions"}],"predecessor-version":[{"id":1493,"href":"https:\/\/41j.com\/blog\/wp-json\/wp\/v2\/posts\/1475\/revisions\/1493"}],"wp:attachment":[{"href":"https:\/\/41j.com\/blog\/wp-json\/wp\/v2\/media?parent=1475"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/41j.com\/blog\/wp-json\/wp\/v2\/categories?post=1475"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/41j.com\/blog\/wp-json\/wp\/v2\/tags?post=1475"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}