No description, website, or topics provided.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
Makefile
Makefile.vc
README
StdAfx.h
adprog.c
adprog.h
adprog.o
blink.bin
gpl.txt
lgpl-3.0.txt
lpc21isp
lpc21isp.c
lpc21isp.cbp
lpc21isp.h
lpc21isp.layout
lpcprog.c
lpcprog.dsp
lpcprog.dsw
lpcprog.h
lpcprog.o
lpcterm.c
lpcterm.h
lpcterm.o
readme.md

readme.md

// To compile this file use this command: $ make -f Makefile clean all

How to use this application:

Connect with a wire these pins: J34.4 with J31.7 J34.5 with J31.8

Prepaire a connection (iMX6 Rex J31 with LPC J6): J31.3 with J6.21 J31.5 with J6.22 J31.7 with J6.51 J31.8 with J6.4 J31.9 with J6.1 J31.10 with J6.28

The purpose of this code is to program e.g. a binary file to a LPC169x family processor.

How to run this program: Note: The commands for the I2C GPIO Expander are depending on chosen GPIOs. i2c-tools need to be installed. Please refer to the wiki page for more info.

$ i2cset 1 0x27 0x02 0xF3 // set GPIO 0.2 and GPIO 0.3 to low $ i2cset 1 0x27 0x06 0xF3 // set GPIO 0.2 and GPIO 0.3 as output $ i2cset 1 0x27 0x02 0xFB // set GPIO 0.3 to high

$ ./lpc21isp -bin blink.bin /dev/ttymxc1 115200 12000

$ i2cset 1 0x27 0x02 0xF7 // set GPIO 0.2 to high and GPIO 0.3 to low $ i2cset 1 0x27 0x02 0xFF// set GPIO 0.2 and GPIO 0.3 to high