Fix spi bus error at boot stage

This commit is contained in:
linuswck 2025-01-10 14:41:04 +08:00
parent fd125a506f
commit ef395bf81f

View File

@ -422,9 +422,17 @@
cp ${fast-servo-gateware}/gateware.bin /lib/firmware/
echo gateware.bin > /sys/class/fpga_manager/fpga0/firmware
# Run device init scripts
echo "Initializing clock generator, ADC, and DAC..."
python3 -m pyfastservo.initialize
# Reset the PL and initialize PL, ADC and DAC clock
echo "Configuring Si5340 to generate Clocks"
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";