Skip to content
This repository was archived by the owner on Jan 7, 2025. It is now read-only.
This repository was archived by the owner on Jan 7, 2025. It is now read-only.

RTT Logging does not work well with Sleep #110

@awneil

Description

@awneil

See: https://groups.google.com/g/dash7-ap-oss/c/uWwnjiImqQM/m/GCZKSORVAQAJ

This is indeed a known issue with the RTT Logging. When it goes to sleep, it can repeat some logging. You can circumvent this issue by using FRAMEWORK_SCHEDULER_LP_MODE=255. This mode will actually keep the processor active at all times and logging will be very responsive and will not repeat itself. However, your program can react differently as it's not going to sleep and your power consumption will be a lot higher so this is purely for debugging

RTT v2.54 (November 2019) added SEGGER_RTT_GetAvailWriteSpace() - which, perhaps, could be used to defer sleeping until all logs have been sent?

See also: https://community.st.com/s/question/0D53W000014wcE5SAI/how-to-get-segger-rtt-to-work-with-sleep-modes-on-stm32

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