def METHOD_NAME(backend, fcpu, baudrate=None):
    if not fcpu:
        raise ValueError("fcpu must be the CPU/HCLK frequency!")
    with tempfile.NamedTemporaryFile() as tmpfile:
        command = "modm_itm_log {} {} {}".format(tmpfile.name, fcpu, baudrate or "")
        backend.commands.append(command)
        # Start OpenOCD in the background
        with backend.scope():
            # Start a blocking call to monitor the log file
            # TODO: yield out new log lines in the future
            try:
                subprocess.call("tail -f {}".format(tmpfile.name),
                                cwd=os.getcwd(), shell=True)
            except KeyboardInterrupt:
                pass