Part Number:CC2640R2F
Hi everyone,
I'm trying to get SWO debugging working with IAR and an XDS200 debugger.
The symptoms are:
- Every time a breakpoint is hit (or when single stepping), SWO trace displays two SWO packets, with values 0xAAAAAA
I have done the following to confirm that SWO trace ought to be working:
- The SWO clock frequency (set in both the Project Options -> TI XDS -> Communication window and the TI XDS -> SWO Configuration window) matches that set by the CPU clock and the SWO prescaler.
- SWO UART output is visible at the expected clock frequency when attaching a logic analyzer to the TDO pin (both on the microcontroller, and on the debug header)
- SWO output from the same code works with IAR and an XDS110 debugger (integrated into the LAUNCHXL-CC2640R2 board)
- SWO output also works Code Composer Studio and the XDS200 debugger (although it's prone to crashing).
My set-up is:
- Custom PCB with CC2640R2F 5x5
- SWO trace initialized as described in CC2640 TRM (SWCU117G, Section 5.5)
- SWO trace routed to TDO pin (as described on the TI wiki -- processors.wiki.ti.com/.../SWO_Trace
- SWO data visible using logic analyzer
- 10-pin ARM debug header
- XDS200 debug probe, with firmware 1.0.0.8
- IAR Embedded Workbench 8.20.1
- XDS Emulation Software Package 7.0.48.0
Any advice would be gratefully received.
Thanks,
-Jon