1 # Example script to test STM32VLDiscovery with boundary scan
5 echo "\n\nStarting basic STM32VLDiscovery JTAG boundary scan test\n"
9 init_bs stm32f1x.bs 232
12 echo "All LEDs should be OFF, press Enter"
18 echo "Green LED should be ON, blue LED OFF, press Enter"
24 echo "Green and blue LEDs should be ON, press Enter"
29 echo "Blue LED should be ON, green LED OFF, press Enter"
35 echo "Green and blue LEDs should be ON, do NOT press the USER button, press Enter"
37 # Read PA0 state, there's a pulldown on board
38 if {[sample_get_bit_bsr 187] == 1} {
39 echo "Button is stuck at 1: ERROR, aborting"
44 echo "Green and blue LEDs should be ON, DO press the USER button, press Enter"
46 if {[sample_get_bit_bsr 187] == 0} {
47 echo "Button is stuck at 0: ERROR, aborting"
53 echo "All tests passed SUCCESSFULLY, exiting"