Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @echo off
- set FWFILE=Marlin.ino.mega.hex
- set USER=pi
- set PASSWORD=raspberry
- set USB=/dev/ttyUSB0
- set HOST=k200
- echo cd /tmp >transfer.scr
- echo put %FWFILE%>>transfer.scr
- echo quit>>transfer.scr
- "C:\Program Files (x86)\PuTTY\psftp.exe" +l %USER% -pw %PASSWORD% -b transfer.scr %HOST%
- "C:\Program Files (x86)\PuTTY\plink.exe" -l %USER% -pw %PASSWORD% %HOST% /usr/bin/avrdude -C/etc/avrdude.conf -v -patmega2560 -cwiring -P%USB% -b115200 -D -Uflash:w: %FWFILE%:i
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement