Updating PCIe Controller Gateware in Windows#

Important

ONIX PCIe controllers acquired from the Open Ephys Store are flashed with the latest version of the gateware. Gateware updates do not occur often, so you will typically not need to update it. Verify the gateware version as explained below and only proceed with the update if necessary.

  1. If your PC has not yet been set up for use with the ONIX PCIe controller, follow the steps on the Setup Guide for Windows page.

  2. Download the latest oni-repl Console Application and unzip it. Navigate to this location using a console (e.g. PowerShell).

    Note

    For a complete description of this program, have a look at its usage guide

  3. Verify your PCIe Controller Hardware version by running oni-repl and typing “H” into the command prompt. This will print a list of all hubs in the current ONI context, one of which will be the PCIe Controller. The hardware revision and version of the gateware currently on the system will be listed.

    $ oni-repl.exe riffa 0
    ...
    ...
    ...
    >>> H
    
    ../../_images/oni-repl-controller-hardware-version.png
  4. Check the PCIe Controller gateware image download page. If a more recent version of the gateware than that listed by the oni-repl application exists, download the lastest gateware that corresponds to your hardware revision. If the latest gateware listed is already the same version as the current one on your hardware, you do not need to update it.

    Warning

    Make sure that the controller gateware image you download matches the PCIe Controller Hardware revision you verified in the previous step. An incorrect gateware version will not report any error while updating but will cause failures during operation.

  5. Download the PCIe Controller Upload Tool utilities package and unzip it. Navigate to this folder using a console.

  6. Run the oni_pcie_mode_change command to put the PCIe Controller into bootloader mode.

    $ oni_pcie_mode_change.exe
    
    ../../_images/oni-pcie-change-mode-to-bl.png
  7. Open the Windows Device Manager by typing “device manager” into the windows search bar. Find the RIFFA device you are going to update in the device tree. It is listed under “Open Ephys ONI PCIe Devices”. Right click on the RIFFA device and select Disable device. Click Yes on the warning message.

    ../../_images/device-manager-disable-riffa.png
  8. Right click again and click Enable device.

    ../../_images/device-manager-enable-riffa.png

    Note

    If prompted to do so, or if the device has a small yellow triangle icon next to it, you will need to reboot your computer to finish the process.

  9. Return to the console and run the oni_pcie_flash_image command using the .bin file downloaded in step 4 and the index of the PCIe Controller device you want to update. If you only have a single PCIe Controller, index can be specified as 0 or omitted.

    $ oni_pcie_flash_image.exe <path to image.bin> [index]
    
    ../../_images/oni-pcie-flash-image.png
  10. When the program completes, run oni_pcie_mode_change to put the PCIe Controller into normal mode.

    $ oni_pcie_mode_change.exe
    
    ../../_images/oni-pcie-change-mode-to-normal.png
  11. Repeat steps 7 and 8 to reenable the PCIe Controller with the updated gateware.

  12. To verify the gateware update, repeat step 3. The gateware version of the PCIe Controller should now match the one downloaded in step 4.