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.
npm install lpc-flash
npm install cinderblock/lpc-flash
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));
This tool is not related to Flash Magic. However, it is intended to be 100% compatible with NXP's legacy serial bootloader.