script file used to test Versalon hardware

versaloon_test.vts:
@quiet

# output title
log_info "versaloon hardware tester 1.0"

# test for RXD and TXD using STM32_ISP
log_info " "
log_info "connect Versaloon to STM32 through ISP interface, and enable ISP of target STM32"
log_info "Press Enter to continue..."
getchar

s stm32
m i
C usbtocomm
I stm32_test.hex
o e
o wf
o vf
operate
free-all

# test for JTAG port using STM32_JTAG
# test for TCK, TMS, TDI, TDO
log_info " "
log_info "connect Versaloon to STM32 through JTAG interface"
log_info "Press Enter to continue..."
getchar

s stm32
m j
I stm32_test.hex
o e
o wf
o vf
operate
free-all

# test for SWD port using STM32_SWD
# test for pull up of TMS
log_info " "
log_info "connect Versaloon to STM32 through SWD interface"
log_info "Press Enter to continue..."
getchar

s stm32
m s
I stm32_test.hex
o e
o wf
o vf
operate
free-all

# test for SRST port using AVR8_ISP
log_info " "
log_info "connect Versaloon to AVR8 through ISP interface"
log_info "Press Enter to continue..."
getchar

s avr8
m i
I avr8_test.hex
o e
o wf
o vf
operate
free-all

# test for TRST port using LPC900_ICP
# TRST is used to control Reset of LPC900
log_info " "
log_info "connect Versaloon to LPC900 through ICP interface"
log_info "Press Enter to continue..."
getchar

s lpc900
I lpc900_test.hex
o e
o wf
o vf
operate
free-all

# wait for enter and exit
log_info "Press Enter to Exit..."
getchar

Script output(quiet enabled):
Info: versaloon hardware tester 1.0
Info:
Info: connect Versaloon to STM32 through ISP interface, and enable ISP of target STM32
Info: Press Enter to continue...

Info: Chip name undefined, try auto-detecting.
Info: Versaloon(0x15)by Simon(compiled on Aug 5 2010)
Info: Bootloader version 2.2
Info: STM32 type: unknown device(FFFF0000)
Info: Flash memory size: 64 KB
Info: Chip-id read is 0x0.
Info: Auto-detect signature is 0x0
Info: stm32 found
Info: Bootloader version 2.2
Info: STM32 type: unknown device(FFFF0000)
Info: Flash memory size: 64 KB
Info: Chip-id read is 0x0.
Info: erasing flash
erasing flash |========================================%100| 0.03s used
Info: flash erased
Info: Bootloader version 2.2
Info: programming flash
writing flash |========================================%100| 38.75s used
Info: flash programmed for 65536bytes(1.65KB/s)
Info: verifying flash
reading flash |========================================%100| 24.16s used
Info: flash verified for 65536bytes(2.65KB/s)
Info:
Info: connect Versaloon to STM32 through JTAG interface
Info: Press Enter to continue...

Info: Chip name undefined, try auto-detecting.
Info: Versaloon(0x15)by Simon(compiled on Aug 5 2010)
Info: JTAG_ID = 0x3BA00477
Info: AHB-AP_ID = 0x14770011
Info: ROM_ADDRESS = 0xE00FF003
Info: CFG = 0x00000000, Little-endian
Info: CORTEX-M3 processor detected
Info: CPUID = 0x411FC231
Info: STM32 type: medium-density device
Info: STM32 revision: Y
Info: Flash memory size: 64 KB
Info: Chip-id read is 0x410.
Info: Auto-detect signature is 0x410
Info: stm32_md found
Info: JTAG_ID = 0x3BA00477
Info: AHB-AP_ID = 0x14770011
Info: ROM_ADDRESS = 0xE00FF003
Info: CFG = 0x00000000, Little-endian
Info: CORTEX-M3 processor detected
Info: CPUID = 0x411FC231
Info: STM32 type: medium-density device
Info: STM32 revision: Y
Info: Flash memory size: 64 KB
Info: Chip-id read is 0x410.
Info: erasing flash
erasing flash |========================================%100| 0.05s used
Info: flash erased
Info: JTAG_ID = 0x3BA00477
Info: AHB-AP_ID = 0x14770011
Info: ROM_ADDRESS = 0xE00FF003
Info: CFG = 0x00000000, Little-endian
Info: CORTEX-M3 processor detected
Info: CPUID = 0x411FC231
Info: programming flash
writing flash |========================================%100| 3.03s used
Info: flash programmed for 65536bytes(21.12KB/s)
Info: verifying flash
reading flash |========================================%100| 1.64s used
Info: flash verified for 65536bytes(39.00KB/s)
Info:
Info: connect Versaloon to STM32 through SWD interface
Info: Press Enter to continue...

Info: Chip name undefined, try auto-detecting.
Info: Versaloon(0x15)by Simon(compiled on Aug 5 2010)
Info: SWDID = 0x1BA01477
Info: AHB-AP_ID = 0x14770011
Info: ROM_ADDRESS = 0xE00FF003
Info: CFG = 0x00000000, Little-endian
Info: CORTEX-M3 processor detected
Info: CPUID = 0x411FC231
Info: STM32 type: medium-density device
Info: STM32 revision: Y
Info: Flash memory size: 64 KB
Info: Chip-id read is 0x410.
Info: Auto-detect signature is 0x410
Info: stm32_md found
Info: SWDID = 0x1BA01477
Info: AHB-AP_ID = 0x14770011
Info: ROM_ADDRESS = 0xE00FF003
Info: CFG = 0x00000000, Little-endian
Info: CORTEX-M3 processor detected
Info: CPUID = 0x411FC231
Info: STM32 type: medium-density device
Info: STM32 revision: Y
Info: Flash memory size: 64 KB
Info: Chip-id read is 0x410.
Info: erasing flash
erasing flash |========================================%100| 0.03s used
Info: flash erased
Info: SWDID = 0x1BA01477
Info: AHB-AP_ID = 0x14770011
Info: ROM_ADDRESS = 0xE00FF003
Info: CFG = 0x00000000, Little-endian
Info: CORTEX-M3 processor detected
Info: CPUID = 0x411FC231
Info: programming flash
writing flash |========================================%100| 2.80s used
Info: flash programmed for 65536bytes(22.89KB/s)
Info: verifying flash
reading flash |========================================%100| 1.02s used
Info: flash verified for 65536bytes(62.99KB/s)
Info:
Info: connect Versaloon to AVR8 through ISP interface
Info: Press Enter to continue...

Info: Chip name undefined, try auto-detecting.
Info: Versaloon(0x15)by Simon(compiled on Aug 5 2010)
Info: Chip-id read is 0x1E9702.
Info: Auto-detect signature is 0x1E9702
Info: atmega128 found
Info: Chip-id read is 0x1E9702.
Info: erasing chip
erasing chip |========================================%100| 0.03s used
Info: chip erased
Info: programming flash
writing flash |========================================%100| 18.25s used
Info: flash programmed for 102400bytes(5.48KB/s)
Info: verifying flash
reading flash |========================================%100| 17.31s used
Info: flash verified for 102400bytes(5.78KB/s)
Info:
Info: connect Versaloon to LPC900 through ICP interface
Info: Press Enter to continue...

Info: Chip name undefined, try auto-detecting.
Info: Versaloon(0x15)by Simon(compiled on Aug 5 2010)
Info: Chip-id read is 0x15DD0D.
Info: Auto-detect signature is 0x15DD0D
Info: p89lpc901 found
Warning:5 is invalid for hex type, current line ignored!!
Info: Chip-id read is 0x15DD0D.
Info: erasing chip
erasing chip |========================================%100| 0.19s used
Info: chip erased
Info: programming flash
writing flash |========================================%100| 0.42s used
Info: flash programmed for 768bytes(1.78KB/s)
Info: verifying flash
verifying flash |========================================%100| 0.02s used
Info: Press Enter to Exit...