Good morning,
I am trying to use the Logi-PI V1.5 with the Raspberry Pi B+. I am using a stock version of raspbian image (can't use a preconfigured because I need to have CAN bus support for a different application). I followed the instructions in the User Manual for configuring spi and i2c.
I get the following message when I try and run the blink app:
sudo ./make_demo.sh
Loader was compiled for PIB/B+/A/A+
gpio configured
file ./logipi_blink.bit opened
bit file size : 340701
Init pin not going high !
config success !
....
I do not see a blinking LED on my board. The other forum posts referring to this issue seemed to be talking about the PI2, which I do not have, so I am not quite sure of the problem. I am also fairly noobish (that's a word now :P) when it comes to Linux and the SPI/FPGA interfacing. I would appreciate any/all help I can get.
Thanks guys!
Comments
cd ~/logi-tools/unified_loader
make clean
make logipi_loader
sudo make installGood morning!
I have a same issue but i use the logipi R1.5.1 with a raspberry pi B (not a RPI B+).
I followed the instructions above but when i run the command sudo make install i get the following message
make: Warning: File 'Makefile' has modification time 10718695 s in the future
gcc logi_loader.c -o logi_loader
/tmp/ccTauU95.o: In function `clear_progb':
logi_loader.c:(.text+0xcc): undefined reference to `clear_i2c_progb'
logi_loader.c:(.text+0xd4): undefined reference to `clear_bb_progb'
logi_loader.c:(.text+0xdc): undefined reference to `clear_bb_progb'
/tmp/ccTauU95.o: In function `set_progb':
logi_loader.c:(.text+0x110): undefined reference to `set_i2c_progb'
logi_loader.c:(.text+0x118): undefined reference to `set_bb_progb'
logi_loader.c:(.text+0x120): undefined reference to `set_bb_progb'
/tmp/ccTauU95.o: In function `get_init':
logi_loader.c:(.text+0x154): undefined reference to `get_i2c_init'
logi_loader.c:(.text+0x160): undefined reference to `get_bb_init'
logi_loader.c:(.text+0x16c): undefined reference to `get_bb_init'
/tmp/ccTauU95.o: In function `get_done':
logi_loader.c:(.text+0x1a4): undefined reference to `get_i2c_done'
logi_loader.c:(.text+0x1b0): undefined reference to `get_bb_done'
logi_loader.c:(.text+0x1bc): undefined reference to `get_bb_done'
/tmp/ccTauU95.o: In function `close_loader':
logi_loader.c:(.text+0x1f4): undefined reference to `close_i2c_loader'
logi_loader.c:(.text+0x1fc): undefined reference to `close_bb_loader'
logi_loader.c:(.text+0x204): undefined reference to `close_bb_loader'
/tmp/ccTauU95.o: In function `init_loader':
logi_loader.c:(.text+0x5dc): undefined reference to `init_i2c_loader'
logi_loader.c:(.text+0x618): undefined reference to `init_bb_loader'
collect2: ld returned 1 exit status
<builtin>: recipe for target 'logi_loader' failed
make: *** [logi_loader] Error 1
I would appreciate any/all help I can get.
thank
- do you use a pre-configured image downloaded on our website ?
- did you run the install_logipi script in the logi-tools folder ?
- where did you run the make install command you show (the gcc command that is show does not match what should be run) ?
Regards,
Jonathan Piat
In fact i have two logi pi and rasberry pi B.
In the first board i am using a pre-configured image downloaded on your website (http://valentfx.com/doc/logi-image/) and i did not install anything else.
When i run the make_demo.sh in the logi-apps/blink_led_app folder,
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
*************************************************************************************
- clone logi-tools ?
- in logi-tools, ran the script install_logipi.sh ?
The error message you showed in your first message appears to be error related to the beaglebone black loader. In logi-tools, can you go in the folder unified_loader and then run :
make logipi_loader
sudo make install
and then try again to execute the blink demo ?
Yes i just downloaded in git repository the logi-tools-master folder and i ran the script install_logipi.sh in the same folder.
In the unified_loader folder when i ran the two commands i had the following message as you can see in the attach image.
make clean
make logipi_loader
after that you should have a logi_loader executable in the directory. Do a :
./logi_loader ../../logi-apps/blink_led/logipi_blink.bit
to assess the loader is working.
Regards,
sudo ./logi_loader ../../logi-apps/blink_led/logipi_blink.bit
Thank you for your prompt response.
When i did your request i had the following message.
Compiled for LOGI-PI
could not open I2C device : /dev/i2c-1!
Cannot detect LOGI-PI with I2C_LOADER, switching to old bit-bang loader
Board variant is LOGIPI_R1.0
can't open /dev/mem
Sorry it's work now.
I just reboot my RPI and when i try it works very well.
Thank you very much for your help.