Support openocd and st-link flashing