STLINK: add check for the supported jtag API version