Init pin not going high !

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

  • edited June 2015
    Hi @sanguine8082

    It appears that he wiki instructions were still referring to installing the old loader which is not compatible with the LOGI Pi 2.  I have updated the wiki to correctly make and install the V2 loader:

    git clone https://github.com/fpga-logi/logi-tools.git

    cd ~/logi-tools/unified_loader

    make clean

    make logipi_loader

    sudo make install

    Note that the instructions are the same you will just need to build and install the "unified_loader" rather than the "logipi_loader".  I am going to revise the repo to make it more clear which loader to install.

    Let us know if this works for you.

    Cheers!
  • Do I need to remove the other loader first or can I just run these commands?  

    Thanks for the information.  
  • You can just run these commands.  It will overwrite the old installed loader.
  • Thanks! The LED's are blinking away.

    I appreciate all the help! Thanks
  • Great.  Happy FPGAn!
  • Good 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

  • Can you answer the question sin the following check-list :
    - 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

  • sorry but looking at your message it seems that you are compiling the beaglebone black loader ... If you are using a pre-configured image you should not have to compile anything and if you are building your own image, you should just run the install_logipi.sh script with the board connected to internet and modify the /boot/config.txt and /etc/modules files as mentioned on logi-tools git page.
  • 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,

    I get the following message :



    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
    *************************************************************************************

    But I do not see a blinking LED on my board.

     


    In the second board i  am using a stock version of raspbian image and i followed the instructions in the User Manual for configuring spi and i2c and also the instructions above but i still have the same issue.

     

     

     

     

     

     

  • The image you use do not seem to be up to date as the message from logi-loader are from the old loader. For the fresh debian that you are trying to configure, did you :

    - 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.

    logipi_troubleshooting.PNG
    711 x 684 - 78K
  • can you do in unified loader :
    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,

  • you have to prefix the command with sudo :

    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.

  • Great ! Yes to have to reboot for the i2c to be enabled after modifying the /boot/config.txt and /etc/modules
Sign In or Register to comment.