lpc-flash
TypeScript icon, indicating that this package has built-in type declarations

0.1.4 • Public • Published

npm version

LPC Flash

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.

In 2023, the original flashmagic.js was abandoned and very out of date. This fork is intended to keep it up to date and working with more modern practices.

Install

via Npm

npm install lpc-flash

via Git (GitHub)

npm install cinderblock/lpc-flash

API

Minimal sample code:

import flasher from 'lpc-flash';

const isp = new flasher.InSystemProgramming(path, baudrate, clk);
isp
  .open()
  .then(isp => flasher.handshake(isp))
  .catch(error => console.error(error));

Disclaimer

This tool is not related to Flash Magic. However, it is intended to be 100% compatible with NXP's legacy serial bootloader.

Package Sidebar

Install

npm i lpc-flash

Weekly Downloads

1

Version

0.1.4

License

LGPL-3.0

Unpacked Size

57.2 kB

Total Files

22

Last publish

Collaborators

  • cinderblock