Skip to content

FreeRtos stopss logger Stream #1245

Description

@brinzebuah

Board: Nucleo F439ZI
I have a class which prints strings via the modm logger. As soon as i add a Mutex as an Class-Attribut I receive with hTerm only the first letter of the String, even if i not use the Mutex at all. If I initilazie the Mutex with an nullPtr I receive the whole string.
Why is this happening?
I'm a FreeRtos Noob, so i'm happy for every input.

Class "testMutex.cpp" :

#include <modm/board.hpp>
#include <modm/processing.hpp>

class TestMutex
{
public:
    TestMutex() = default;

    void
    hello()
    {
        modm::log::debug << "Welcome to Debug Stream example modm" << modm::endl;
    }

private:
    modm::rtos::Mutex mMutex;
    int mValue;
};

main:

#include "testMutex.cpp"
#include <modm/board.hpp>

#undef MODM_LOG_LEVEL
#define MODM_LOG_LEVEL modm::log::DEBUG

int
main()
{
    Board::initialize();
    TestMutex helloMutex;
    helloMutex.hello();
}

Activity

  1. locked and limited conversation to collaborators on Dec 28, 2024
  2. converted this issue into a discussion #1246 on Dec 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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