Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Programming arduino using makefile

3,740 views

Published on

Slides used for my talk about Programming Arduino using makefile at Arduino Day 2015.

Details at http://hardwarefun.com/news/programming-arduino-using-makefile

Published in: Software
  • DOWNLOAD THE BOOK INTO AVAILABLE FORMAT (New Update) ......................................................................................................................... ......................................................................................................................... Download Full PDF EBOOK here { https://soo.gd/irt2 } ......................................................................................................................... Download Full EPUB Ebook here { https://soo.gd/irt2 } ......................................................................................................................... Download Full doc Ebook here { https://soo.gd/irt2 } ......................................................................................................................... Download PDF EBOOK here { https://soo.gd/irt2 } ......................................................................................................................... Download EPUB Ebook here { https://soo.gd/irt2 } ......................................................................................................................... Download doc Ebook here { https://soo.gd/irt2 } ......................................................................................................................... ......................................................................................................................... ................................................................................................................................... eBook is an electronic version of a traditional print book THE can be read by using a personal computer or by using an eBook reader. (An eBook reader can be a software application for use on a computer such as Microsoft's free Reader application, or a book-sized computer THE is used solely as a reading device such as Nuvomedia's Rocket eBook.) Users can purchase an eBook on diskette or CD, but the most popular method of getting an eBook is to purchase a downloadable file of the eBook (or other reading material) from a Web site (such as Barnes and Noble) to be read from the user's computer or reading device. Generally, an eBook can be downloaded in five minutes or less ......................................................................................................................... .............. Browse by Genre Available eBOOK .............................................................................................................................. Art, Biography, Business, Chick Lit, Children's, Christian, Classics, Comics, Contemporary, CookBOOK, Manga, Memoir, Music, Mystery, Non Fiction, Paranormal, Philosophy, Poetry, Psychology, Religion, Romance, Science, Science Fiction, Self Help, Suspense, Spirituality, Sports, Thriller, Travel, Young Adult, Crime, EBOOK, Fantasy, Fiction, Graphic Novels, Historical Fiction, History, Horror, Humor And Comedy, ......................................................................................................................... ......................................................................................................................... .....BEST SELLER FOR EBOOK RECOMMEND............................................................. ......................................................................................................................... Blowout: Corrupted Democracy, Rogue State Russia, and the Richest, Most Destructive Industry on Earth,-- The Ride of a Lifetime: Lessons Learned from 15 Years as CEO of the Walt Disney Company,-- Call Sign Chaos: Learning to Lead,-- StrengthsFinder 2.0,-- Stillness Is the Key,-- She Said: Breaking the Sexual Harassment Story THE Helped Ignite a Movement,-- Atomic Habits: An Easy & Proven Way to Build Good Habits & Break Bad Ones,-- Everything Is Figureoutable,-- What It Takes: Lessons in the Pursuit of Excellence,-- Rich Dad Poor Dad: What the Rich Teach Their Kids About Money THE the Poor and Middle Class Do Not!,-- The Total Money Makeover: Classic Edition: A Proven Plan for Financial Fitness,-- Shut Up and Listen!: Hard Business Truths THE Will Help You Succeed, ......................................................................................................................... .........................................................................................................................
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
  • Follow the link, new dating source: ❤❤❤ http://bit.ly/2u6xbL5 ❤❤❤
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
  • Sex in your area is here: ♥♥♥ http://bit.ly/2u6xbL5 ♥♥♥
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here

Programming arduino using makefile

  1. 1. Programming Arduino using Makefile Sudar Muthu Arduino Day 2015 http://hardwarefun.com
  2. 2. Who am I? • Hardware Hobbyist • Used to conduct Arduino and Robotics Workshop • Long time Arduino User • Blog at http://hardwarefun.com • Own more than a dozen Arduino’s ;)
  3. 3. Why look for alternatives to Arduino IDE
  4. 4. What is Arduino Makefile • Makefile to compile, upload and debug Arduino code • Highly customizable • Automatic dependency tracking • Allows you to use your own IDE / Editor • Doesn’t require Java ;) • More than 500 stars in github and 42 contributors https://github.com/sudar/Arduino-Makefile
  5. 5. How to Install it? • Packages available for most platforms - Debian/Ununtu/Fedora/homebrew/linuxbrew/ • Installing for source is as easy as doing a git checkout (bleeding edge) http://hardwarefun.com/tutorials/compiling-arduino-sketches-using-makefile
  6. 6. Basic Usage Create a file with name Makefile in your sketch directory with the following variables and then include the Arduino.mk file ARDUINO_DIR = /Applications/Arduino.app/Contents/Resources/Java ARDMK_DIR = /usr/local MONITOR_PORT = /dev/ttyACM0 BOARD_TAG = uno Except the last one, everything else can be auto-detected https://github.com/sudar/Arduino-Makefile/blob/master/arduino-mk-vars.md
  7. 7. Targets • make - Compile • make upload - Upload to Arduino • make monitor - Open Serial monitor • make clean - Clean the build • make size - Run avr-size
  8. 8. Demo
  9. 9. Using Serial Monitor It can auto detect both baud rate and port used. You can also specify it using the following variables. MONITOR_PORT = /dev/ttyUSB0 MONITOR_BAUDRATE = 57600
  10. 10. Including Libraries Can auto detect the libraries used in most cases. You can also specify it using the following variable ARDUINO_LIBS = Ethernet SPI
  11. 11. More Demos • Using plain AVR C code • Using Arduino as ISP • Using Alternate Cores (like Attiny etc) • Using ChipKT • Using Teensyduino • Using Arduino from Raspberry Pi
  12. 12. Full List of Options All options are documented at https://github.com/sudar/Arduino-Makefile/blob/master/arduino-mk-vars.md
  13. 13. Interfacing with external programs/IDE’s • Vi/Vim • Emacs/Flymake • Code:Blocks • Eclipse
  14. 14. Limitations • You have to declare your functions • Arduino 1.5.x is still not fully supported • Native Windows support is patchy. You can use Cygwin • Supports only AVR based boards. Others WIP • You would still need to install the IDE
  15. 15. Contributions are welcome https://github.com/sudar/Arduino-Makefile
  16. 16. Other projects that may be of interest • Arduino syntax files for vim - https://github.com/sudar/vim-arduino-syntax • Arduino Snippets for vim - https://github.com/sudar/vim-arduino-snippets
  17. 17. Thank You

×