- Compile and get the hex file
In Arduino IDE,
- Sketch > Export Compiled Binary
Wait for the compilation process to finish
- Sketch > Show Sketch Folder
Let's take the one without bootloader.
-
Copy [your_sketch].hex to the Yun
You@PC $ scp [your_sketch].hex root@arduino.local:/tmp -
SSH into Yun
You@PC $ ssh root@arduino.local -
Merge your sketch with the bootloader (for the one without bootloader)
root@Arduino:~# merge-sketch-with-bootloader.lua /tmp/[your_sketch].hex - Program the MCU (ATMega32u4)
root@Arduino:~# run-avrdude /tmp/[your_sketch].hexDone!
It's just my notes, or not?
Showing posts with label arduino. Show all posts
Showing posts with label arduino. Show all posts
Remotely upload sketch to Arduino Yun using command line.
Subscribe to:
Posts (Atom)