I have a new logi-pi-2 that I got today. I have tried two os versions: one I generated from the latest rasbian from rpi and the other is the logipi_raspbian_140620.img I downloaded. Both give the error in the title on trying to run the blink demo. Is there a different image to try or do I have a bad board?
Comments
to install the loader, just downoad the logi-tools github repository (https://github.com/fpga-logi/logi-tools)
git clone https://github.com/fpga-logi/logi-tools.git
cd ~/logi-tools/logipi_loader
make clean
make PI_VER=PI2
sudo make install
do a : sudo ./install_logipi.shmodify /boot/config.txt with the following
dtparam=spi=on
dtparam=i2c_arm=on
to enable i2c and spi. Then the unified loader should work. The correct link to download a pre-configured image is on the wiki (http://valentfx.com/wiki/index.php?title=Logi-Pi_Quick_Start_Guide)
http://valentfx.com/doc/logi-image/logipi/logipi_150429_2015-02-16-raspbian-wheezy.img.zip
For Full instructions on installing the logi_loader on RPi-2 see the wiki page:
Regards,
Jonathan Piat
modify /boot/config.txt with the following
dtparam=spi=on
dtparam=i2c_arm=on
and /etc/modules has i2c-dev in it
Loader was compiled for PIB version 2 (quad-core version)
gpio configured
file ./logipi_blink.bit opened
bit file size : 340701
Init pin not going high !
config success !
Blink LED App *************************************************************************
* DOCUMENTATION: http://valentfx.com/wiki/index.php?title=LOGI_-_LED_Blink_-_Project
* DESCRIPTION **************
This is a "hello world" demo for the LOGI FPGA. This is shows the functioning nuts and bolts of the Pi/Bone and LOGI FPGA. An bitstream in loaded using the logi_loader and the FPGA begins to run.
* INSTRUCTIONS *************
Run the demo by running the make_demo.sh script:
sudo ./make_demo.sh
*************************************************************************************
what is version PI_VER=?
for B+ 1.2
Pi is:
pi@raspberrypi ~ $ cat /proc/cpuinfo
processor : 0
model name : ARMv6-compatible processor rev 7 (v6l)
Features : swp half thumb fastmult vfp edsp java tls
CPU implementer : 0x41
CPU architecture: 7
CPU variant : 0x0
CPU part : 0xb76
CPU revision : 7
Hardware : BCM2708
Revision : 0010
Serial : 000000001eb1e5a0
Linux version 3.12.22+ (dc4@dc4-arm-01) (gcc version 4.7.2 20120731 (prerelease) (crosstool-NG linaro-1.13.1+bzr2458 - Linaro GCC 2012.08) ) #691 PREEMPT Wed Jun 18 18:29:58 BST 2014
gpio configured
file ./logipi_blink.bit opened
bit file size : 340701
Init pin not going high !
config success !
Blink LED App *************************************************************************
* DOCUMENTATION: http://valentfx.com/wiki/index.php?title=LOGI_-_LED_Blink_-_Project
* DESCRIPTION **************
This is a "hello world" demo for the LOGI FPGA. This is shows the functioning nuts and bolts of the Pi/Bone and LOGI FPGA. An bitstream in loaded using the logi_loader and the FPGA begins to run.
* INSTRUCTIONS *************
Run the demo by running the make_demo.sh script:
sudo ./make_demo.sh
*************************************************************************************
Must have mixed up the iso images!
Thanks
To enable SPI on latest raspbian distro, edit /boot/config.txt (as sudo) and add :
dtparam=spi=on
To enable I2C on latest raspbian distro, edit /boot/config.txt (as sudo )and add :
dtparam=i2c_arm=on
to the file.
also edit /etc/modules (as sudo) and add the line :
i2c-dev
sudo i2cdetect -y 1
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: -- -- -- -- -- -- -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
20: 20 -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
70: -- -- -- -- -- -- -- --
If you don't have the same output, your board is either faulty or not well-connected (check for bent pins or shorts between pins of the stacking connector).
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: -- -- -- -- -- -- -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
70: -- -- -- -- -- -- -- --
Regards,
Jonathan Piat
I'm going to try it with Raspberry Pi 2 B without any other software loaded on it and see if that works as well.
I'm guessing it is the I2C driver that BrickPi uses, which is causing the issue. How exactly does LOGi Pi use the I2C and Spi?
thanks
peter