use stlink for discovery and openocd for J-Link