# OpenOCD currently uses a single configuration file for all ST-Link # adapters. However not all supported distributions use the latest # OpenOCD. # If the default script isn't available then use the old method via # specifying the correct version. try { source [find interface/stlink.cfg] } on error {} { puts "WARNING: using old version of OpenOCD" puts "Using STLINK_VERSION $stlink_version" source [find interface/stlink-v${stlink_version}.cfg] }