To uplad flasherboard firmware (the .xsvf file should be in the directory where you issue the command)
upload_fbcpld FB_CPLDV12.xsvf

If this does not work
do:
ps -ef

to get the port of the DOM you want to upgrade:
testdaq 18433 16291 0 19:00 pts/2 00:00:00 /usr/local/hutil/dtsx -p 5036 /dev/dhc4w2dA
testdaq 18436 16291 0 19:01 pts/2 00:00:00 /usr/local/hutil/dtsx -p 5046 /dev/dhc5w3dA
testdaq 18437 16291 0 19:01 pts/2 00:00:00 /usr/local/hutil/dtsx -p 5060 /dev/dhc7w2dA
testdaq 18438 16291 0 19:01 pts/2 00:00:00 /usr/local/hutil/dtsx -p 5062 /dev/dhc7w3dA

Summary of commands you will need:

enableFB
powers on fb, resets, enables DC/DC, initializes width/brightness/mux, clears LED flops, etc etc etc with our new validation scheme in
place.

enableFBmin
simply powers on fb and resets CPLD, without any checks. use this if the cpld is hosed and needs to be reprogrammed (enableFB will
fail its checks and will power the fb back off)

disableFB
disables and powers down the fb

getFBfw
return the fb firmware version

getFBhw
return the fb hardware (board artwork) version

fbid type
return the fb id

fb-cpld
used to reprogram fb cpld, as in s" blah.xsvf" find if fb-cpld endif

127 setFBbrightness
set the fb brightness level (127 here)

64 setFBwidth
set the fb pulse width (64 here)

$fff setFBenables
set the binary FB enable mask (all 12 LEDs enabled here). The "$" specifies hex, but if you are good at translating binary masks to
decimal, you don't need this. bit[0] is LED1, bit[1] is LED2, etc...

2 setFBmux
mux which LED current is sent back to the mainboard (LED2 here). An argument of 0 disables the mux, while 13 selects the TTL driver
pulse.

startFBflashing
starts the flasher board flashing

stopFBflashing
stops the flasher board flashing

(1 setFBdcdc, getFBdcdc)
independent control of the DC/DC enable bit, for debug. leaving in for now.

it is very important that you never use enableFBmin
on more than one DOM at a time.

then, be sure to do an off all!

this is VERY IMPORTANT (to prevent damage to filter boxes)





telnet localhost 5046
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
Iceboot (az-prod) build 319.....
enableFBmin
enableFBmin
enableFBmin: LEDs may come on (steady-state) on older flasherboards.
Use enableFB unless CPLD state prevents it! Continue [y/n]? y
getFBfw
getFBfw
>
.
.
6
ls
ls
Name FLASH addr Length Data Length
iceboot 0x41000000 0x00070000 0x00070000
iceboot config 0x00000000 0x00000000 0x00000000
az-setup.fs 0x414B0000 0x00010000 0x00002E78
az-tests.fs 0x41290000 0x00010000 0x0000038D
configboot.sbi 0x41690000 0x00080000 0x000780CC
domapp 0x414C0000 0x000E0000 0x000D9400
domapp.sbi 0x41070000 0x00080000 0x000780CC
domcal 0x413B0000 0x00040000 0x0003B5F0
echomode 0x41630000 0x00030000 0x0002B8F0
iceboot.sbi 0x41710000 0x00080000 0x000780CC
menu 0x415A0000 0x00050000 0x000423E0
startup.fs 0x41610000 0x00010000 0x00000D55
stf-nocomm.sbi 0x410F0000 0x00080000 0x000780CC
stf.sbi 0x41170000 0x00080000 0x000780CC
stfserv 0x411F0000 0x00060000 0x0005C6E0
wiggle 0x41660000 0x00030000 0x0002CFB0
FB_CPLDV12.xsvf 0x41790000 0x00020000 0x00019739
>
>>
s" FB_CPLDV12.xsvf" find if fb-cpld endif
s" FB_CPLDV12.xsvf" find if fb-cpld endif
XSVF executed successfully!
>
enableFB
enableFB
>>
getFBfw .
getFBfw .
12
>
^]

off all

it is very important that you never use enableFBmin
on more than one DOM at a time.

then, be sure to do an off all!

this is VERY IMPORTANT (to prevent damage to filter boxes)