stlink: stlink/v1 use v2 api if supported