Next: The trimbits and calibration Up: Installation and upgrades Previous: Building

# Detector upgrade

The upgrade of the detector consists in both the upgrade of the communication software and of the firmware.

To upgrade the firmware you need either a working version of the Altera Quartus software or of the Quartus programmer, which can easly be downloade from
`https://www.altera.com/download/programming/quartus2/pq2-index.jsp`
Normally installation of the software and of the driver for the USB-Blaster (provided together with the MYTHEN detector) are simpler under Windows.
Under Windows, the first time that you connect the USB-Blasterto one of your USB ports, you will be asked to install new hardware. Set the path to search for the driver to: `C:\altera\80sp1\qprogrammer\drivers\usb-blasterp` (where `C:\altera\80sp1\qprogrammer\` is assumed to be ther path where your Quartus version is installed).

1. After starting the Quartus programmer, click on Hardware Setup and in the "Currently selected hardware" window select USB-Blaster.
2. In the Mode combo box select "Active Serial Programming".
3. Plug the end of your USB-Blaster WITH THE ADAPTER PROVIDED in the connector ASMI on the MCS board taking care that pin1 corresponds to the one indexed and with the rectangualr pad.
4. Click on add file and from select the programming file provided when the upgrade has been reccomended.
5. Check "Program/Configure" and "Verify".
6. Push the start button and wait until the programming process is finished (progress bar top left).
7. In case the programmer gives you error messages, check the polarity of your cable (pin1 corresponds) and that you have selected the correct programming connector.

To upgrade the software on the detector board transfer the provided software by ftp to the MCS:

    ftp  mymcs.mydomain.com
    username: root
    password: pass
    cd /mnt/flash/root
    put mythenDetectorServer
    quit

If the /mnt/flash/root directory does not exist, create it before the transfer by telnetting to the MCS.
After pressing reset on the board, the board should reboot.
If the program does not correctly start either check by using the http interface that it is started by the inittab (check that the file `/mnt/etc/inittab` ends with the line `myid2:3:once:/mnt/flash/root/mythenDetectorServer` ).
Otherwise make the program executable by telnetting to the MCS and executing: `chmod a+xrw /mnt/flash/root/mythenDetectorServer`
After pressing reset on the board, the board should reboot and the acqusition program correctly start.

Next: The trimbits and calibration Up: Installation and upgrades Previous: Building