Skip to content
shift_register…
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 

i2cslave

i2cslave done with a software controlled shift register

Dependencies

Building

$ python setup.py develop --user
$ python -m i2cslave.targets.pipistrello_i2c

Flashing

You need to install the flash proxy in $HOME/.migen:

$ mkdir -p $HOME/.migen
$ cd $HOME/.migen
$ wget https://people.phys.ethz.ch/~robertjo/bscan_spi_lx45_csg324.bit

You also need to install xc3sprog:

$ mkdir -p $HOME/dev
$ cd $HOME/dev
$ svn co http://svn.code.sf.net/p/xc3sprog/code/trunk xc3sprog
$ cd xc3sprog
$ cmake . && make
$ sudo make install

Gather binaries to flash:

mkdir -p binaries
cp misoc_i2csoc_pipistrello_i2c/gateware/top.bit binaries/
cp misoc_i2csoc_pipistrello_i2c/software/bios/bios.bin binaries/
cp misoc_i2csoc_pipistrello_i2c/software/software/runtime.fbi binaries/
cd binaries

Then you can flash:

$ CABLE=papilio
$ PROXY=bscan_spi_lx45_csg324.bit
$ BIOS_ADDR=0x170000
$ RUNTIME_ADDR=0x180000
$ BIN_PREFIX=$PWD
$ PROXY_PATH=$HOME/.migen

$ xc3sprog -v -c $CABLE -I$PROXY_PATH/$PROXY $BIN_PREFIX/top.bit:w:0x0:BIT
$ xc3sprog -v -c $CABLE -I$PROXY_PATH/$PROXY $BIN_PREFIX/bios.bin:w:$BIOS_ADDR:BIN
$ xc3sprog -v -c $CABLE -I$PROXY_PATH/$PROXY $BIN_PREFIX/runtime.fbi:w:$RUNTIME_ADDR:BIN

About

i2c slave

Resources

Packages

No packages published