Skip to content

Instantly share code, notes, and snippets.

@soldair
Created December 12, 2014 18:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save soldair/c292fac16bcdcb17d621 to your computer and use it in GitHub Desktop.
Save soldair/c292fac16bcdcb17d621 to your computer and use it in GitHub Desktop.
trying to flash scout with new stk500
/// 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