Created
December 12, 2014 18:31
-
-
Save soldair/c292fac16bcdcb17d621 to your computer and use it in GitHub Desktop.
trying to flash scout with new stk500
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/// flash a scout with bootstrap and js | |
var serial = require('./node_modules/stk500/node_modules/serialport'); | |
var stk500 = require('stk500'); | |
var port = '/dev/ttyACM0'; | |
var fs = require('fs'); | |
var intelhex = require('intel-hex'); | |
var hex = intelhex.parse(fs.readFileSync(__dirname+"/bootstrap.hex",{encoding:'utf8'})).data; | |
//var VENDOR_ID = 0x1d50; | |
//var PRODUCT_ID = 0x6051; | |
var pageSize = 256; | |
var baud = 115200; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment