Why am I getting a "Cannot set debug register" error message when I connect to the target?
CrossStudio displays this message when it detects an error while setting one of the target's debug registers. This could be caused by any of the following:
- JTAG/SWD clock is too fast for device - try reducing the JTAG clock frequency
- Your current active project does not target the hardware you are trying to connect to and/or the project's Target > ARM Debug Interface project property does not match that of your hardware.
- Unreliable JTAG/SWD Connection - try reducing the JTAG clock frequency or reducing the target interface's cable lengths as much as possible.