1.0.3 • Published 8 years ago

flashmagic.js v1.0.3

Weekly downloads
38
License
LGPL-3.0
Repository
github
Last release
8 years ago

npm version

FlashMagic.js

A library for programming flash based microcontrollers from NXP using a serial protocol.

It implements a function similar to Flash Magic but using Node.js, TypeScript and node-serialport instead.

Install via npm

$ sudo npm install -g flashmagic.js
$ flashmagic --help

API

Please, refer to cli.ts for more information about API usage.

Minimal sample code:

import * as FlashMagic from 'flashmagic.js';

...

let isp = new FlashMagic.InSystemProgramming(path, baudrate, cclk);
isp
  .open()
  .then(isp => FlashMagic.handshake(isp))
  .catch(error => console.error(error));

Build from code

I usually have ./node_modules/.bin in my PATH so I just have to execute the following commands to perform a clean build:

$ typings install
$ npm install

Disclaimer

This tool is not related to Flash Magic.

Its primary objective is just to communicate with a custom USB bootloader by using a well-known protocol.

A side effect is to be 100% compatible with legacy NXP serial bootloader.

1.0.3

8 years ago

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago

0.0.17

8 years ago

0.0.16

8 years ago

0.0.15

8 years ago

0.0.14

8 years ago

0.0.13

8 years ago

0.0.12

8 years ago

0.0.11

8 years ago

0.0.10

8 years ago

0.0.9

8 years ago

0.0.8

8 years ago

0.0.7

8 years ago

0.0.6

8 years ago

0.0.5

8 years ago

0.0.4

8 years ago

0.0.3

8 years ago

0.0.2

8 years ago

0.0.1

8 years ago