Conversation
|
Concerning your 2 questions I have no answer right now. I am using the ARMKeil compiler and it silently compiles all without warnings. What you could check is, if |
|
What I am wondering too is, that only mode 0 works for you. The other modes have nothing to do with hardware despite |
|
Thank you for the feedback. I managed to get the mode 200 working too. But doing a Trice log in the systick handler causes the log stream to freeze. |
|
You are the only one reporting such issues. Do you have the chance to change the compiler, just for checking the |
|
The critical sections are essential for trice usage inside interrupts. But with empty macros you should see a result, even the data stream could get corrupted. Could it be, you produce too much data? You could try to use |
Thank you for Trice. It looks like a very cool logging solution.
This PR adds a test/example port of triceConfig to the LibOpenCM3 (my favourite :)) runtime environment. The
triceConfig.his based on theMDK-ARM_STM32F030R8example.For now, only 'mode 0' works, I didn't look into the interrupt based modes (more than that they don't work, out of the box at least). But I thought even this limited port might be worth adding since I think it is enough for me now, and I'm not sure I'll find time to look into the interrupts in the close future.
I have two questions though:
First: a print of a string without arguments does not work. Compiling a
TRICE("Hello, TRICE\n");givesAdding a "dummy"
%dargument makes this error go away. Is this a configuration error on my part or a bug in Trice?Second, I'm still getting a warning when compiling:
I could remove the
extern uint32_t *TriceBuffferWritePosition;in trice.h to silence this, but the interrupt based modes seem to need it.I can't see off hand where the warning is coming from, but it would be nice if this warning could be silenced too.