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

Mimas V1 Python broken?

Discussion in 'FPGA Boards' started by peepo, Jun 2, 2015.

  1. peepo

    peepo New Member

    Joined:
    Jun 2, 2015
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    uk
    I received Mimas V1 today,

    where is simple example code to build and upload?
    I did not find?

    after installing pySerial, I did try:

    $ sudo python mimasconfig.py /dev/ttyACM0 mimas.bin
    [sudo] password for jay_jetson:
    ****************************************
    * Numato Lab Mimas Configuration Tool *
    ****************************************
    Micron M25P16 SPI Flash detected
    Loading file mimas.bin...
    Erasing flash sectors...
    Traceback (most recent call last):
    File "mimasconfig.py", line 558, in <module>
    main()
    File "mimasconfig.py", line 554, in main
    MimasconfigObj.ConfigureMimas(sys.argv[2])
    File "mimasconfig.py", line 496, in ConfigureMimas
    if self.M25P16sectorErase(fileSize):
    File "mimasconfig.py", line 340, in M25P16sectorErase
    if self.SpiPutChar(address[2]):
    File "mimasconfig.py", line 232, in SpiPutChar
    if self.SendCommand(b"\x7e\x07\x01" + struct.pack('B', Char)):
    struct.error: cannot convert argument to integer

    please advise what to do?
     
  2. admin

    admin Administrator Staff Member

    Joined:
    Jan 23, 2015
    Messages:
    169
    Likes Received:
    11
    Trophy Points:
    18
    Are you using Python 3 ?

    Thanks,
    Tom
     
  3. peepo

    peepo New Member

    Joined:
    Jun 2, 2015
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    uk
    but where is simple example code to build and upload?
    I did not find?

    I had to unplug before FPGA ran hardware,
    is this expected behaviour?**

    tx

    **on ubuntu:
    sudo apt-get install python3-serial

    sudo python3 mimasconfig.py /dev/ttyACM0 mimas.bin

    ...
    Flash verification successful...
    Booting FPGA...
    Done.
     
  4. admin

    admin Administrator Staff Member

    Joined:
    Jan 23, 2015
    Messages:
    169
    Likes Received:
    11
    Trophy Points:
    18
    Hello, thanks for the update. All available sample code are listed under "Sample Code" tab on the product page.

    The script will attempt to reset the FPGA but sometimes you may need to reset the board manually by cycling power.

    Thanks,
    Tom
     

Share This Page