2025-08-10 10:38 PM
Hello,
I am using the SWV viewer successfully to output messages from the microcontroller at runtime.
This is a nice tool and usually it works fine.
When I run an application for a longer time (e.g. over night) I get this error
I did consider the trace buffer as a buffer like outputting to a UART.
What is happening there?
regards
Alexander
2025-08-11 2:42 AM
Hi,
Trace buffer has a fixed size, but you can adjust it to your needs, as written in the message.
If you have the continuous sampling enabled, especially at small time interval, it will fill the buffer very fast, so don't enable/check this in the swv settings.
2025-08-11 2:45 AM
Yes - I have a long log running. Is there a possibility to delete old messages?
what do you mean with "don't enable/check this in the swv settings." ?
2025-08-11 2:23 PM
In swv settings, top right side, is the sampling enable and the clock divider for it. This you need for the analysis/display the time, where the CPU is busy, in % .
But this also fills up the buffer very fast, so don't enable it.
If you only have messages and it fills the buffer too fast, try reducing the message count and size, or/ and set a bigger buffer size, as shown in the message you got.
( In IDE... preferences...)
I set it at 2 MB or so, should be enough.
2025-08-15 1:58 AM
Try ...console settings: - no limit , - bigger buffer
+ increase trace buffer: 2MB -> 20MB
+
in swv settings, dont enable any trace events like: resolution, cpi etc.