-
-
Notifications
You must be signed in to change notification settings - Fork 55
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Trice locks up or gets stuck on first message of the application #518
Comments
same config with 0.72.5 works fine. |
Am I understand you right, that the problem is inside the target code? So the problem persists, no matter you use the the trice_v0.72.5 tool or the trice_v0.73.1 tool? I downloaded trice_linux_amd64.tar.gz v0.72.5 and v0.73.1 and compared the folders, but I could not detect any critical changes. Due to a context timeout the v0.73.1 release occurred 3 times in GitHub and in-between I deleted the 2 additional drafts. But I assume they where identical. Maybe you compare v0.72.5 and v0.73.1 by your own too. 4 eyes are better than 2. Could it be that you have a buffer size issue and you simply have "luck" with v0.72.5? Just for investigation you could change I would use One more thing: Now a newer SEGGER version is used by default. Please set |
yes the tool version doesn't matter, only the difference in the target code. I will check the other points and report as soon as i get them. and for clarification the target is stuck in a while loop. |
Could it be, that you do not execute //! TriceInit needs to run before the first trice macro is executed.
//! Not neseecary for all configurations.
void TriceInit(void) {
#if defined(SEGGER_RTT) && (TRICE_CGO == 0)
// This is just to force the INIT() call inside SEGGER_RTT.c what allows to use
// SEGGER_RTT_WriteNoLock or SEGGER_Write_RTT0_NoCheck32 instead of SEGGER_RTT_Write.
SEGGER_RTT_Write(0, 0, 0); // lint !e534
#endif |
the
i already tried SEGGER_RTT_LOCK() and SEGGER_RTT_UNLOCK(), the gcc way and now lock e.g just the I have to check:
|
You could temporarily disable the watchdog for debugging, to find out what condition causes the endless loop. You could |
Any results? |
Describe the bug
I upgraded from 0.72.5 to 0.73.1 and now my application gets stuck on the first Trice message after TriceInit().
I marked the debugger step where it gets stuck with: =====>
I also will add the sybols tomorrow.
To Reproduce
triceCongig.h
Expected behavior
The application should never get blocked by the trice logging output.
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
Additional context
I already tried with and without the TRICE_ENTER_CRITICAL_SECTION locks, but no change of behaviour.
The text was updated successfully, but these errors were encountered: