Tockloader uses openocd to flash devices. To use openocd, tockloader requires a library that can send commands to openocd. Write that library.