Skip to content

Greentea client isn't outputting to the console #6674

Closed
@kjbracey

Description

@kjbracey

Note: This is just a template, so feel free to use/remove the unnecessary things

Description


Enhancement

Greentea client is unnecessarily tied to RawSerial, potentially limiting performance, and preventing its use over any other comms interface. It's also causing configuration complications with tracking the serial port settings specified for the stdout console, as illustrated by #6660.

It's apparently avoiding the simplest printf and putc to permit use from interrupt (ARMmbed/greentea-client@ff62371).

This can be now be achieved in a more elegant and portable fashion using write(STDOUT_FILENO) - this will in principle work from interrupt, subject to limitations of the FileHandle being used for the console. It will currently work with the default non-buffered console, equivalent to RawSerial.

A little more discussion in comments on #6660

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions