Last active
March 16, 2021 13:00
-
-
Save adisuciu/97a9ed6f132443b2df1a21e769b8270a to your computer and use it in GitHub Desktop.
ADALM2000 powersupply diagnostic
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
iio_info -u "ip:192.168.2.1" > before_init.txt | |
echo "--- Saved initial board state to before_init.txt" | |
iio_attr -u "ip:192.168.2.1" -v -c m2k-fabric -i voltage0 powerdown 0 | |
iio_attr -u "ip:192.168.2.1" -v -c m2k-fabric -o voltage0 powerdown 0 | |
iio_attr -u "ip:192.168.2.1" -v -c m2k-fabric -i voltage1 powerdown 0 | |
iio_attr -u "ip:192.168.2.1" -v -c m2k-fabric -o voltage1 powerdown 0 | |
iio_attr -u "ip:192.168.2.1" -v -d m2k-fabric clk_powerdown 0 | |
iio_attr -u "ip:192.168.2.1" -c m2k-fabric -o voltage2 user_supply_powerdown 0 | |
iio_attr -u "ip:192.168.2.1" -c m2k-fabric -o voltage3 user_supply_powerdown 0 | |
echo "" | |
echo "--- Board init finished" | |
iio_info -u "ip:192.168.2.1" > after_init.txt | |
echo "--- Saved board state to after_init.txt" | |
echo "" | |
echo "--- Write 0V to ad5627" | |
iio_attr -u "ip:192.168.2.1" -v -c ad5627 -o voltage0 raw 0 | |
iio_attr -u "ip:192.168.2.1" -c ad5627 -o voltage0 powerdown 0 | |
echo "" | |
echo "--- Positive power supply reads: this value should be around 0" | |
iio_attr -u "ip:192.168.2.1" -c ad9963 -i voltage2 raw | |
echo "" | |
echo "--- Write 5V to ad5627" | |
iio_attr -u "ip:192.168.2.1" -v -c ad5627 -o voltage0 raw 3388 | |
iio_attr -u "ip:192.168.2.1" -c ad5627 -o voltage0 powerdown 0 | |
echo "" | |
echo "--- Positive power supply reads: this value should be around 3300" | |
iio_attr -u "ip:192.168.2.1" -c ad9963 -i voltage2 raw | |
echo "--- You should be able to measure 5V between V+ and GND" | |
echo "" | |
echo "--- Reset the board now, and wait for board reboot" | |
echo "--- Run Scopy - set positive power supply" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment