Skip to content

Simulator: Printf not working at runtime | Simulator starts twice #54

@MasterTim17

Description

@MasterTim17

Hello,
im using the simulator with platformio and used this repo example.
When i upload the project the simulator starts. When i close it another windows opens. This is essential for the following problem

I want to debug the code with printf command. So i defined following in platform.ini file:

-D LV_USE_LOG=1
-D LV_LOG_PRINTF=1

Default log level is : -D LV_LOG_LEVEL=LV_LOG_LEVEL_WARN
During runtime i dont get an output. When i close the Simulator window, the print output is now seen on the output. The second windows open, but the print output from it is not seen after closing.

However, when i change the log level to -D LV_LOG_LEVEL=LV_LOG_LEVEL_INFO the print output can now be seen during runtime. thi s isnt useful, because too much output is beeing listed.

I hope the problem is understandable. Is this a bug or is there a solution?

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