Giter Site home page Giter Site logo

avrgirl-usbtinyisp's People

Contributors

kleinfreund avatar nodebotanist avatar noopkat avatar seffyroff avatar spoon16 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

avrgirl-usbtinyisp's Issues

Writing hangs due to null PageSize

So I'm trying to write to an ATMega328 with a SparkFun Pocket programmer, and it hangs on write.

After inserting some clumsy console.log statements:

avrgirlUsbTinyIsp.prototype._writeMem = function (memType, hex, callback) {
  var self = this;
  var options = this.options.chip;
  var pageAddress = 0;
  var useAddress;
  var pageSize = options[memType].pageSize;
  var addressOffset = options[memType].addressOffset;
  var addressOffset = 1;
  var data, readFile;
  var page = 0;

  if (Buffer.isBuffer(hex)) {
    data = hex;
  } else if (typeof hex === 'string') {
    try {
      readFile = fs.readFileSync(hex, { encoding: 'utf8' });
    } catch (e) {
      if (e.code === 'ENOENT') {
        return callback(new Error('could not write ' + memType + ': please supply a valid path to a hex file.'));
      } else {
        return callback(e);
      }
    }

    data = intelhex.parse(readFile).data;

  } else {
    return callback(new Error('could not write ' + memType + ': please supply either a hex buffer or a valid path to a hex file.'));
  }

  this.debug('writing to ' + memType + ', please wait...');
  this.hackerLog('page length:', hex.length / pageSize);

  async.whilst(
    // we exit out of this while loop when we are at the end of the hex file
    function testEndOfFile() {
      console.log(pageAddress, data.length, pageSize)
      return pageAddress < data.length;
    },

it says pageSize is null.

I'll see if I can patch this.

tests

  • boilerplate
  • basic tests
  • spy tests

fix erase delay for trinket

The delay should be 900000µs (!!!)

I am going to play with this to get it down from that unrealistic number.

Looking for physical hardware testers

If you have any of the devices that avrgirl-usbtinyisp supports, please have a go at using it to upload a precompiled script to a chip. Open an issue if you run into anything other than success.

Thank you ✨

switch to a new test coverage package

Looks like istanbul is no longer maintained / is not getting the love it needs, so a new coverage library would be preferred. There are security vulns that affect us continuing to use istanbul and istanbul-coveralls.

Very low priority, removing these coverage libs and deactivating them in CI would probably be more productive for now.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.