# FPGA MPS Link Node startup script
# 3/12/9 TO FIX:     ld("bin/RTEMS-uC5282/mpsLinkNodeFPGA.obj")
# Unresolved symbol: Timer_initialize

chdir("/boot/lcls/epics/iocTop/MachineProtection/MpsLinkNodeApp-Prod")
# how-to reprogram FPGA image
ld("bin/RTEMS-uC5282/mpsLinkNodeFPGA.obj")
mpsFPGAInitialise()
#download("mpsnode_xv24.xsvf")
# ...takes several minutes...

#mpsFPGASetupToReadVersion() #only once

# version is in hex, is in LSbyte and should match the number in the name of xsvf file
#mpsFPGAReadVersion()


