Other Parts Discussed in Thread: CC2640, BLE-STACK, SMARTRF06EBK
I am using XDS200 to develop for BLE Stack on CC2640. Overall XDS200 is fast and easy to use. However, sometimes, i am running into an issue where i am getting an error when trying to step thru code. This happens right at the first step attempt, after the program downloaded and ran to main.
I am getting this issue in both IAR 7.40 as well as CCS6.1.1. I am using the latest versions of the IDE's as well as the latest XDS emulation drivers (XDS200 FW is 1.0.0.8)
In CCS, the error looks like this:
Cortex_M3_0: Error: (Error -1170 @ 0x0) Unable to access the DAP. Reset the device, and retry the operation. If error persists, confirm configuration, power-cycle the board, and/or try more reliable JTAG settings (e.g. lower TCLK). (Emulation package 6.0.83.0)
In IAR, it looks like this:
What puzzles me is that my XDS200 works most of the time, and then gets into this weird state. I tried pretty much everything. Unplug XDS200, restart the IDE's. Restart windows, restart our board. Nothing helps. I also tried a mass erase, then flash the factory sensor tag firmware, then flash our stack and app again, nothing helps.
If i try to debug enough times, eventually it will work again. It's really strange and not reliably reproducible. But when it happens, it's very frustrating as it completely interrupts the development workflow.
Also, i tried this with XDS110 and this issue does not occur.
Does anyone have any ideas what may cause this or has seen this before?
