Fix spi bus error at boot stage
This commit is contained in:
parent
fd125a506f
commit
ef395bf81f
14
flake.nix
14
flake.nix
@ -422,9 +422,17 @@
|
|||||||
cp ${fast-servo-gateware}/gateware.bin /lib/firmware/
|
cp ${fast-servo-gateware}/gateware.bin /lib/firmware/
|
||||||
echo gateware.bin > /sys/class/fpga_manager/fpga0/firmware
|
echo gateware.bin > /sys/class/fpga_manager/fpga0/firmware
|
||||||
|
|
||||||
# Run device init scripts
|
# Reset the PL and initialize PL, ADC and DAC clock
|
||||||
echo "Initializing clock generator, ADC, and DAC..."
|
echo "Configuring Si5340 to generate Clocks"
|
||||||
python3 -m pyfastservo.initialize
|
python3 -m pyfastservo.si5340
|
||||||
|
|
||||||
|
# Iniailize ADC
|
||||||
|
echo "Initialize ADC"
|
||||||
|
python3 -m pyfastservo.adc
|
||||||
|
|
||||||
|
# Initialize DAC
|
||||||
|
echo "Initialize DAC"
|
||||||
|
python3 -m pyfastservo.dac
|
||||||
'';
|
'';
|
||||||
})];
|
})];
|
||||||
system = "x86_64-linux";
|
system = "x86_64-linux";
|
||||||
|
Loading…
Reference in New Issue
Block a user