Giter Site home page Giter Site logo

isp-programmer's Introduction

isp-programmer

ISP Programmer for NXP Cortex-M Chips

Command line programmer for the NXP ISP interface.

Features

Secure Write

The checksum in flash is written to zero as the first write, so if the upload fails the chip will boot back into the ISP mode. The image is then written from the top most page down to the first page. The first sector contains the valid image checksum so a failed write will keep the device in ISP mode instead of just being bricked.

Chip Families Supported:

LPC84x
LPC82x
LPC80x

UU encoded families not supported (LPC1700 family and similar)

NXP chips with 1kB sector sizes should work by adding their information to the lpctools_parts.def configuration file.

The configuration file is identical to that used by the lpctools project http://git.techno-innov.fr/?p=lpctools

Usage

Erase Entire Flash: isp_programmer --device /dev/ttyUSB0 -b 9600 -crystal_frequency 12000 masserase
Program Flash: 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

Installation

pypi

pip install ISPProgrammer

From Source

isp-programmer is a python3 package and can be installed using pip. Clone the repository, enter the directory with setup.py in it and run pip install . The default location for the configuration file is at /etc/lpctools_parts.def. The file can either be copied there or the path passed in when calling the tool with the --config_file/-f flag.

1. cd isp-programmer
2. pip install .
3. cp lpctools_parts.def /etc

Similar Projects

isp-programmer's People

Contributors

snhobbs avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

isp-programmer's Issues

LPC55xx

can program LPC55 series ?

FAIM writing

This is a feature of the 84x and is on MTP flash. Caution needs to be paid while developing this as the flash could be fried.

OTP flash writing

Several NXP chips have OTP registers. Very special care needs to be paid to this.

Finish 175_6x Chip

The boot code version is very different than the M0 ones. Different sector size etc. Code will need to be refactored.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.