Skip to content
Snippets Groups Projects
Commit 1b3759f9 authored by Patrick Robbe's avatar Patrick Robbe
Browse files

Create pll lock file when loading the driver

parent c21e1067
No related branches found
No related tags found
No related merge requests found
......@@ -139,6 +139,9 @@ fi
# Remove pll lock file for pll_status_small
sudo rm -f /tmp/pcie40_pll_lockfile.lck
# create a new one and give permission to all
sudo touch /tmp/pcie40_pll_lockfile.lck
sudo chmod 777 /tmp/pcie40_pll_lockfile.lck
#ug`pcie40_reload.steps`2
# . For every PCIe40 interface:
......
......@@ -25,7 +25,7 @@ for i in xrange( args.N ):
data = random.randint( 0 , 0xFFFFFFFF )
lli.pcie40_writefee32( 0 , args.channel , address[ args.detector ] , data )
result = slc_read( 0 , args.channel , address[ args.detector ] )
if i%1000 == 0:
if i%10000 == 0:
print(str(i))
if result != data:
print("mismatch between write ({0:X}) and read ({1:X})".format( data , result ))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment