code: def trace_stop(self):
          
          cmd = enums.JLinkTraceCommand.STOP
          res = self._dll.JLINKARM_TRACE_Control(cmd, 0)
          if (res == 1):
              raise errors.JLinkException('Failed to stop trace.')
          return None
docs: Stops collecting trace data.
  
          Args:
            self (JLink): the ``JLink`` instance.
  
          Returns:
            ``None``