Skip to content

FreeRtos stopss logger Stream #1246

Closed Answered by brinzebuah
brinzebuah asked this question in Q&A
Discussion options

You must be logged in to vote

I Found the problem in the modm::platform::Usart3::write(uint8_t data) methode. As soon as the UsartHal3::isTransmitRegisterEmpty() is false, the buffer gets filled. But the Interrupt, which should empty the txBuffer will never be activated, as soon as I initilazie a Mutex anywhere.
My solution was to add a new Function emptyBuffer() to the Usart3, which does the same as the MODM_ISR(USART3) Interrupt. It enables the possibility to empty the Buffer without an ISR, and switch it into a Thread if needed. I don't really now how this ISR works and if i disablede/acknowledged all of them. Could you give me some feedback, if this is a possible solution or opens new problems? And where should I …

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@salkinium
Comment options

@brinzebuah
Comment options

Answer selected by brinzebuah
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #1245 on December 28, 2024 14:32.