-#trbflash -y program 0xf6dc ~/mdcupgrade/mdctdc_20240508.bit
-trbflash -y program 0xf60e ~/trbsoft/daq/mdc/bitfiles/mdcoep_20250703_newreset.bit
+trbflash program 0xf6dc ~/trbsoft/daq/mdc/bitfiles/mdctdc_20250419.bit
+#trbflash -y program 0xf60e ~/trbsoft/daq/mdc/bitfiles/mdcoep_20250703_newreset.bit
# activate golden image
echo " golden image flashing: "
-#trbcmd loadbit 0xf6dc 0xd580 0x2 0x2
-trbcmd loadbit 0xf60e 0xd580 0x2 0x2
+trbcmd loadbit 0xf6dc 0xd580 0x2 0x2
+#trbcmd loadbit 0xf60e 0xd580 0x2 0x2
sleep 2
-#trbflash -s "golden image" -y program 0xf6dc ~/mdcupgrade/mdctdc_20240508.bit
-trbflash -s "golden image" -y program 0xf60e ~/trbsoft/daq/mdc/bitfiles/mdcoep_20250703_newreset.bit
-trbcmd reload 0xf60e
-#trbcmd reload 0xf6dc
+trbflash -s "golden image" program 0xf6dc ~/trbsoft/daq/mdc/bitfiles/mdctdc_20250419.bit
+#trbflash -s "golden image" -y program 0xf60e ~/trbsoft/daq/mdc/bitfiles/mdcoep_20250703_newreset.bit
+#trbcmd reload 0xf60e
+trbcmd reload 0xf6dc
sleep 2
trbflash info 0xf60e
-trbflash verify 0xf60e ~/trbsoft/daq/mdc/bitfiles/mdcoep_20250703_newreset.bit
+#trbflash verify 0xf60e ~/trbsoft/daq/mdc/bitfiles/mdcoep_20250703_newreset.bit
#cd ~/git/hades_mdc_settings/scripts
#./autoaddress.pl
##########################################
-2 0 0 1 0
-2 0 1 0 0
-2 0 2 0 0
-2 0 3 0 0
-2 0 4 0 0
-2 0 5 1 0
-2 0 6 1 0
-2 0 7 0 0
-2 0 8 0 0
-2 0 9 0 0
-2 0 10 0 0
-2 0 11 1 0
-2 0 12 0 0
-2 0 13 1 0
-2 0 14 1 0
-2 0 15 0 0
+2 0 0 1 794
+2 0 1 0 471
+2 0 2 0 507
+2 0 3 0 512
+2 0 4 0 559
+2 0 5 1 995
+2 0 6 1 968
+2 0 7 0 472
+2 0 8 0 577
+2 0 9 0 572
+2 0 10 0 573
+2 0 11 1 792
+2 0 12 0 539
+2 0 13 1 938
+2 0 14 1 957
+2 0 15 0 575
2 1 0 1 867
2 1 1 0 614
2 1 9 0 586
2 1 10 0 585
2 1 11 1 967
-2 1 12 0 363
+2 1 12 0 537 #363 T sensor kaputt
2 1 13 1 962
2 1 14 1 966
2 1 15 0 375
2 4 10 0 509
2 4 11 1 946
2 4 12 0 570 #490
-2 4 13 1 928
-2 4 14 1 923
+2 4 13 1 948 #955 #928
+2 4 14 1 875 #923
2 4 15 0 535
2 5 0 1 0
##########################################
-3 0 0 0 0
-3 0 1 0 0
-3 0 2 0 0
-3 0 3 1 0
-3 0 4 1 0
-3 0 5 0 0
-3 0 6 0 0
-3 0 7 0 0
-3 0 8 0 0
-3 0 9 1 0
-3 0 10 1 0
-3 0 11 0 0
-3 0 12 0 0
-3 0 13 1 0
-3 0 14 1 0
-3 0 15 0 0
+3 0 0 0 470
+3 0 1 0 571
+3 0 2 0 568
+3 0 3 1 889
+3 0 4 1 943
+3 0 5 0 330
+3 0 6 0 574
+3 0 7 0 553
+3 0 8 0 565
+3 0 9 1 891
+3 0 10 1 936
+3 0 11 0 469
+3 0 12 0 000
+3 0 13 1 877
+3 0 14 1 937
+3 0 15 0 465
3 1 0 0 305
3 1 1 0 438
3 1 10 1 960
3 1 11 0 606
3 1 12 0 538
-3 1 13 1 944
+3 1 13 1 931 #944
3 1 14 1 945
3 1 15 0 544
3 2 11 0 587
3 2 12 0 557
3 2 13 1 922
-3 2 14 1 927
+3 2 14 1 949 #927
3 2 15 0 530
3 3 0 0 612
3 4 0 0 550
3 4 1 0 551
3 4 2 0 454
-3 4 3 1 908
+3 4 3 1 955 #908
3 4 4 1 806
3 4 5 0 378
3 4 6 0 529
3 4 11 0 588
3 4 12 0 506
3 4 13 1 804
-3 4 14 1 926
+3 4 14 1 941 #926
3 4 15 0 522
3 5 0 0 0
4081 0 19 26 23 25 24 23 22 11
4081 1 23 23 23 25 22 27 26 17
4081 2 19 12 24 20 21 22 21 22
- 4081 3 17 21 21 24 24 19 14 23
+ 4081 3 17 21 23 30 24 19 14 23
4090 0 24 23 23 14 24 23 21 18
4090 1 21 16 19 16 20 18 24 24
4090 2 26 15 17 26 23 21 23 23
foreach my $l (@logfile) {
my @d = split("\t",$l);
- if (defined $d[2] && $d[1] eq 'endp' && $d[2] eq 'mdc12') {
+ if (defined $d[2] && $d[1] eq 'endp' && $d[2] eq 'mdc') {
next if scalar @d < 7;
die "Looks like too many boards missing" unless scalar @d < 50;
my @boards = split(' ',$d[7]);