This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Tool/software: Code Composer Studio
I just opened the CC2640R2 development kit and was following a tutorial to program project zero. I was able to program the board once however after the first time I got the error below and cannot resolve it. When it first programmed the board it prompted me saying the debugger prob needed to be updated. I'm guessing the board got disconnected when something was being flashed. I'm hoping the board is not bricked?
This is the error I get from CSS:
Error connecting to the target:
(Error -275 @ 0x0)
The attempt to poll a target device exceeded its timeout limit.
The utility or debugger has requested that a target device be
Cortex_M3_0: GEL Output: Memory Map Initialization Complete.
IcePick_C: Error connecting to the target: (Error -275 @ 0x0) The attempt to poll a target device exceeded its timeout limit. The utility or debugger has requested that a target device be repeatedly accessed for a specific data or status value. This has failed because the built-in limit for the maximum number of attempts when polling the JTAG scan-path has been exceeded. (Emulation package 8.3.0.00003)
This is what I see on the Application/User COM port when I press the reset button.
#000001 [ 0.005 ] INFO: (project_zero.c:479) Initializing the user task, hardware, BLE stack and services.
#000002 [ 0.005 ] ERROR: (project_zero.c:496) Error initializing board LED pins
The CC2640 chip seems to get an error however it is still "working".
https://i.imgur.com/tCfbv7H.png
I have a "fix" however its not practical. I can use flash programmer 2 to update the firmware. Then when I try programming with CCS it reprompts me asking to update the flash again. I do and then the board is programmed and seems to debug. However if I close out of the debugger and try to debug again I get the same Error -275. Its not practical to reflash it every time I want to reprogram it. I am clicking the "terminate" button in CCS am I doing something in correct causing a problem?
Cortex_M3_0: GEL Output: Memory Map Initialization Complete.
Cortex_M3_0: Warning: A firmware update is required for the debug probe. Click the "Update" button to update the firmware and connect to the debug target. DO NOT UNPLUG THE DEBUG PROBE DURING THE UPDATE. (Emulation package 8.3.0.00003)
Cortex_M3_0: Warning: The firmware update completed successfully. (Emulation package 8.3.0.00003)
Cortex_M3_0: GEL Output: Board Reset Complete.
This is what shows in the console after updating with CCS.
Hi,
An explanation and troubleshooting details about the error can be found at the Debugging JTAG page below (just search for the error number)
https://software-dl.ti.com/ccs/esd/documents/ccs_debugging_jtag_connectivity_issues.html
That said, I suspect the software running on the core is the actual culprit that is preventing the Debug Probe to connect to it.
In order to increase the stability of your connection, you can try to follow the instructions shown at the sticky post below.
https://e2e.ti.com/support/tools/ccs/f/81/t/821584
Unfortunately the Flash Programmer 2 still uses an old version of the firmware and the continuous updates will unfortunately still be present (this depends on the Flash Programmer developers to release an updated version).
Hope this helps,
Rafael