Other Parts Discussed in Thread: SYSBIOS
Tool/software: Code Composer Studio
Dear TI support team,
we're trying to debug at least two issues where the R5F core on the AM6548 suddenly becomes unavailable for debugging, i.e. not being able to halt anymore, connecting to the core fails with an error message about trying to lower the debug clock:
See this thread for the original issue(s):
Since the crashes are seemingly random (probably timing related) we tried to use the trace features of the AM6548 to debug these issues, but so far we've encountered several problems:
- The memory transaction logging trace view in CCS 8.3 was pretty much unusable since scrolling through the table (~500 entries) took about a minute (UI performance was VERY bad)
- The memory transaction logging seems to be gone from CCS 9.0.1. The "raw data" view available in the "traffic profiling" trace seems to contain the data we're interested in, but we get lots of "FIFO overflows" when trying to trace our application:
- The core trace for the R5F works at least sometimes (lots of times it crashes CCS), but in case of our crash we can't halt the R5F anymore, and thus the trace never stops. I'm not sure if the host really needs the R5F core to access the collected trace data.
- The On-Chip Debug chapter indicates that it should be possible to access the ETB(?)/CT-TBR(?) with the trace data using a VBUSM interface, but I've been unable to find any more info on this. The TRM contains a link to CToolsLib which apparently allows you to access the debug functionality via code running on the target itself, but apparently that CToolsLib is not (yet?) available for the AM6548.
Is there any up-to-date guidance on the AM65xx trace capabilities and how to use them?
What is this "FIFO overflow" that we're getting when trying to use "traffic profiling" to trace MCU->Main domain transactions, and how can we avoid it?
Is there a way to access the R5F core trace data in case the R5F becomes inaccessible for debugging?
Is the CToolsLib going to be available for the AM6548? The processor SDK 5.2 release announcement said that CToolsLib was not (yet) available for the AM65x, the SDK 5.3 release announcement was quiet on that topic, and I have been unable to find anything recent regarding CToolsLib in the git.ti.com repositories.
Like I asked in the original thread referenced above it would nice to get any other hints on how to debug our problem. If you need means to reproduce the issue just try running the EMAC NIMU example via SBL (after fixing the linker file issue).
Regards,
Dominic