Initialize new OEPs
- Connect JTAG cable, then power cable
- Check that 1 LED is on
- Program board via JTAG from IspVM.
- Program FPGA directly, do not program the flash, this will take too much time
- If programming fails, just try again. The software has some bugs
- use golden image bitfile
- Check that 4 + 1 LED are one
- Connect optical cable
- 2 LED should stay on. Green led on FOT on optical AddOn should blink for a while, then stay on. Red LED must be off.
- Run first communication test: read unique id
- trbcmd i 0xfffd
- if it fails, reset network: trbcmd W 0x10 0x8000 & wait 10s.
- repeat several times to test communication
- Write Serial Number and unique id to table
- Program first flash
- trbflash -y -g program 0xfffd golden_image.bit
- running trbflash is also a good way to test communication, since a complete verify of all transmitted data is done
- Program second flash
- trbflash -y program 0xfffd mdc_oepb_20091006.bit (!)
- Check voltages, ADC
- initialize adc :
- trbcmd w 0xfffd 0x8000 0xd
- trbcmd w 0xfffd 0x8000 0x9
- read & check voltages with oep_voltages
- Try booting from both flashs:
- trbcmd w 0xfffd 0xd200 0x0
- trbcmd w 0xfffd 0x20 0x8000
- try communication
- trbcmd w 0xfffd 0xd200 0x1
- trbcmd w 0xfffd 0x20 0x8000
- try communication
- Test connection to MBO (individually for each OEP)
- Connect OEP to the long motherboard
- Boot fpga from second flash
- Write thresholds:
- trbcmd w 0xfffd A0CD 0x30
- trbcmd w 0xfffd A0CF 0x30
- trbcmd w 0xfffd A0D1 0x30
- trbcmd w 0xfffd A0D3 0x30
- trbcmd w 0xfffd A0D5 0x30
- trbcmd w 0xfffd A0D7 0x30
- Test calibration trigger
- trbcmd w 0xfffd 0x20 0x1
- trbcmd w 0xfffd 0xc0 0xc20
- trbcmd w 0xfffd 0x20 0x01000000
- for n in 0 to 100 loop
- trbcmd w 0xfffd 0x20 0x10000
- trbcmd T 1 0 0 n
- trbcmd I 0 0 0 n
- Check for 0x240 datawords from OEP
- Test normal readout
- trbcmd w 0xfffd 0x20 0x1
- trbcmd w 0xfffd 0xc0 0x020
- trbcmd w 0xfffd 0x20 0x01000000
- for n in 101 to 200 loop
- trbcmd w 0xfffd 0x20 0x10000
- trbcmd T 1 0 0 n
- trbcmd I 0 0 0 n
- Check for no errors
--
JanMichel - 30 Sep 2009