isp-programmer

ISP Programmer for NXP Cortex-M Chips

View on GitHub

isp-programmer

ISP Programmer for NXP Cortex-M Chips

Command-line tool for programming NXP microcontrollers via the UART ISP interface.

Features

Secure Write

To prevent bricking the chip during an interrupted write:

This ensures that any failure during programming will leave the chip in ISP mode.

Chip Families Supported:

Untested, expected to work

Chips using UU-encoded protocols (e.g., LPC1700 family) are not supported. Other NXP devices with 1 kB sectors may work if added to the lpctools_parts.def file.

The configuration file is identical to that used by the lpctools project.

Installation

From PyPI

pip install isp_programmer

From Source

git clone https://github.com/snhobbs/isp-programmer.git
cd isp-programmer
pip install .

Default chip definitions are bundled. For custom chips, use the –config-file flag or copy your lpctools_parts.def to /etc/lpctools_parts.def.

Usage

Erase Entire Flash

isp_programmer --device /dev/ttyUSB0 -b 9600 -crystal_frequency 12000 masserase

Program Flash Image

isp_programmer --device /dev/ttyUSB0 -b 9600 -crystal_frequency 12000 writeimage --imagein blinky804.hex

Read Chip Info

isp_programmer --device /dev/ttyUSB0 -b 9600 -crystal_frequency 12000 querychip

Similar Projects