Skip to content

Latest commit

 

History

History
43 lines (28 loc) · 1.27 KB

README.md

File metadata and controls

43 lines (28 loc) · 1.27 KB

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.