Skip to main content
Version: 1.0.0

5.2 Sampling optimized

5.2.1 Delete unwanted samples

The Power Debugger RTT function and Scope function are integrated with the autonomous debugger driver. The enable function on the function interface only enables the waveform display. Data sampling cannot be disabled temporarily.

image-20230906104843135

tip

Plan to optimize the driver and stop data sampling at the driver layer when the enable is turned off to further improve performance.

5.2.2 Avoid mixed sampling

The Power Debugger Scope also supports the jscope_xx channel in RTT and arbitrary variable sampling. However, since the implementation of RTT is a frame structure, multiple sample data are read each time sample data is read, while variable sampling data is read one sample data each time. Therefore, the sampling may be low, and even the abnormal phenomenon of waveform display is not synchronized. In this case, it is a better choice to sample RTT Scope or variables separately.

5.2.3 sampling rate

The Power Debugger can achieve the maximum sampling speed of 200K Samples /s (4us/Sample) in RTT mode with the current driver. If a large amount of data is monitored, the sampling speed of a single data will be reduced (average allocation). Do not exceed the sample rate of the Power Debugger; otherwise, the data may be overwritten because it is not read in time, and the expected waveform may not be displayed correctly.

tip

The driver will be updated from time to time, and the updated driver will continue to optimize in terms of stability and performance. The above data is for reference only, please refer to the latest driver performance.