Hi
I use the following platform:
- CC1310F128 + SmrtRF06 EB
- CCS 6.1.2
- TI-RTOS cc13xx_cc26xx_2_16_00_08
- UIA 2_00_05_50
Further I use LoggingSetup (StopMode) and the Clock and Timestamp module. A clocked function toggles LEDs every 500 ms. With Timestamp_get32() and Log_info() I perform some benchmark and log the time differences of two timestamps.
The Execution Analysis shows results and in Live Session I see my log_info messages and benchmark results. So fare everything seems to work...
Now the issue is that the timestamps have the resolution of the RTC (32 kHz) hence all events (in Live session and Execution analysis) have a minimum time resolution of 31 us (1/32kHz). I know that by default the system clock (sys ticks) is running at 48 MHz and the timestamp at 32 KHz, so how can I manage to get timestamps with the high resolution of the system clock (which would be 20.8 ns compared to 31 us from the RTC)?
I tried the following:
/* ================ Clock configuration ================ */ var Clock = xdc.useModule('ti.sysbios.knl.Clock'); var Timestamp = xdc.useModule('xdc.runtime.Timestamp'); Timestamp.SupportProxy = xdc.useModule('ti.sysbios.family.arm.m3.TimestampProvider');
Now the Timestamp_get32() timestamps logged with log_info (Main Logger) have the desired 20 ns resolution. But now the SYSBIOS System Logger misses many samples such that only HWI_start events are shown... I do not understand whats going wrong.
Below I added a screen shot of the resulting Live Session and Execution Graph:
Hope someone can help me to get this fixed...