Skip to content

cinderblock/lpc-flash

 
 

Repository files navigation

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.

About

NXP LPC microprocessor programmer

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • TypeScript 99.9%
  • JavaScript 0.1%