1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

[solved] mimas v2 programming in linux...

Discussion in 'FPGA Boards' started by joefitz, Mar 31, 2015.

  1. Kazam

    Kazam New Member

    Joined:
    Jul 2, 2015
    Messages:
    21
    Likes Received:
    1
    Trophy Points:
    3
    Gender:
    Male
    Location:
    Stockholm
    Purged modemmanager and now I'm running full throttle on an Ubuntu 14.04 installation.

    I started out with ISE running on a virtual copy of Win7 and using the Windows bitloader. Took forever to upload the bitstream for some reason.

    Reinstalled everything on Linux and got this last bit working as well.
    Code:
    sudo apt-get install python3-serial
    sudo apt-get purge modemmanager
    Also changed the first line of the script:
    Code:
    #! /usr/local/env python3
    and put it in /usr/local/bin

    Works beautifully.
     
    Tekkkz likes this.
  2. Julio Torres

    Julio Torres New Member

    Joined:
    Apr 29, 2015
    Messages:
    7
    Likes Received:
    1
    Trophy Points:
    3
    Gender:
    Male
    Location:
    Quito, Ecuador
    Hello everyone,

    Thank you very much Tom for your help.
    Well, as for me, I tried stopping modemmanager but it didn't work. So I purged it as Kazam indicates (I didn't change anything in the script though, since python 3 and pyserial were working fine on my machine) and now it seems to work perfectly. :) I've run the script a few times now, even after restart and no problems so far. If the issue reappears I'll let you know, although it seems it won't. ;)

    Thank you,

    Julio
     
    Tekkkz likes this.
  3. admin

    admin Administrator Staff Member

    Joined:
    Jan 23, 2015
    Messages:
    169
    Likes Received:
    11
    Trophy Points:
    18
    Thanks Tekkkz, Kazam and Julio for testing and confirming that the fix works. I'll mark this thread solved (finally!! :)). We will look in to the possibility of hardening the firmware to withstand unexpected situations like this.

    Again thanks everyone for helping with useful information and constant encouragement.

    Thanks,
    Tom
    Numato Lab
     
    Julio Torres likes this.
  4. BDH

    BDH New Member

    Joined:
    Dec 16, 2015
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Earth
  5. admin

    admin Administrator Staff Member

    Joined:
    Jan 23, 2015
    Messages:
    169
    Likes Received:
    11
    Trophy Points:
    18
  6. K V Sarma J

    K V Sarma J New Member

    Joined:
    Jun 11, 2016
    Messages:
    4
    Likes Received:
    1
    Trophy Points:
    3
    Gender:
    Male
    Location:
    Bangalore
    Hello.

    I have a MimasV2 board. I am able to use the configuration tool for programming in Windows.
    I have Linux (Ubuntu), I tried the script provided in the thread:
    https://github.com/numato/samplecode/tree/master/FPGA/MimasV2/tools/configuration/python

    I did the following after connecting the board

    Changed access settings to the port.
    > sudo chmod 777 /dev/ttyACM0

    Then I ran the script
    > python config.py /dev/ttyACM0 mimasv2_sample_bin_file.bin

    I am getting the following message:
    Is there something else that I can try?
     
  7. mistery

    mistery Member

    Joined:
    May 26, 2015
    Messages:
    66
    Likes Received:
    4
    Trophy Points:
    8
    Gender:
    Male
    Location:
    Zagreb
    Home Page:
    python3 config.py /dev/ttyACM0 mimasv2_sample_bin_file.bin
     
  8. K V Sarma J

    K V Sarma J New Member

    Joined:
    Jun 11, 2016
    Messages:
    4
    Likes Received:
    1
    Trophy Points:
    3
    Gender:
    Male
    Location:
    Bangalore
    I am still getting the same error. I am using Ubuntu 14.04 LTS.
    lsof returns nothing. So I am not doing anything for modemmanager.

    The USB port works fine. Is there is anything specific for Ubuntu that I need to take care of?
     
  9. mistery

    mistery Member

    Joined:
    May 26, 2015
    Messages:
    66
    Likes Received:
    4
    Trophy Points:
    8
    Gender:
    Male
    Location:
    Zagreb
    Home Page:
    As I know you do not need anything else, Ubuntu should be the same as debian, you can try

    sudo python3 config.py /dev/ttyACM0 mimasv2_sample_bin_file.bin

    or to add user to dialout group

    but I think you already got this with
    sudo chmod 777 /dev/ttyACM0

    did you check programming direct switch SW7
     
  10. K V Sarma J

    K V Sarma J New Member

    Joined:
    Jun 11, 2016
    Messages:
    4
    Likes Received:
    1
    Trophy Points:
    3
    Gender:
    Male
    Location:
    Bangalore
    Mistery,

    SW7 is in USB position (set to 1). Now I got D9 LED lit up. However, when I run the script, it reaches erase flash and stops:

    I tried again in windows and things go fine with the configuration tool.
    Not sure what I am missing here.
    Let me also get some prints from the script.
     
  11. mistery

    mistery Member

    Joined:
    May 26, 2015
    Messages:
    66
    Likes Received:
    4
    Trophy Points:
    8
    Gender:
    Male
    Location:
    Zagreb
    Home Page:
    If you manage to get to Erase, just try again if it can detect and erase flash it could continue to flashing, it is next step ...
     
  12. K V Sarma J

    K V Sarma J New Member

    Joined:
    Jun 11, 2016
    Messages:
    4
    Likes Received:
    1
    Trophy Points:
    3
    Gender:
    Male
    Location:
    Bangalore
    Got it working. Some errors in the script. It seems like while adding some debug prints, I also seem to have added some tabs. I copied the script from github again and voila!

    Thanks a lot for the help.
     
    mistery likes this.
  13. mistery

    mistery Member

    Joined:
    May 26, 2015
    Messages:
    66
    Likes Received:
    4
    Trophy Points:
    8
    Gender:
    Male
    Location:
    Zagreb
    Home Page:
    You are welcome.
     
  14. Ivan de Jesus Deras

    Ivan de Jesus Deras New Member

    Joined:
    Jun 25, 2017
    Messages:
    4
    Likes Received:
    2
    Trophy Points:
    3
    Gender:
    Male
    Location:
    Honduras
    rohith likes this.

Share This Page