fix configureHook() for when we are using RTT ports for communication