code: def trace_flush(self):
          
          cmd = enums.JLinkTraceCommand.FLUSH
          res = self._dll.JLINKARM_TRACE_Control(cmd, 0)
          if (res == 1):
              raise errors.JLinkException('Failed to flush the trace buffer.')
          return None
docs: Flushes the trace buffer.
  
          After this method is called, the trace buffer is empty.  This method is
          best called when the device is reset.
  
          Args:
            self (JLink): the ``JLink`` instance.
  
          Returns:
            ``None``