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.
Hi,
What kind of settings are you programming to the device?
Does this still happen when flashing an example program?
-Matthew
Hi,
I started to get this error after ı enabled the IWDT.
No specific settings on debug.
Thanks
Hi,
I did not set this register. It is in reset value which is 0
| Bit | Field | Type | Reset | Description |
| 31-1 | RESERVED | R | 0h | |
| 0 | FREE | R/W | 0h | Free run control0h = The WDT freezes functionality while the CPU is Halted during debug and resumes when the CPU is active.1h = The WDT ignores the state of the CPU Halted debug state. |
My IWDT init code:
DL_IWDT_setClockDivider(IWDT_INST, DL_IWDT_CLOCK_DIVIDE_4); DL_IWDT_setTimerPeriod(IWDT_INST, DL_IWDT_TIMER_PERIOD_12_BITS); DL_IWDT_enableModule(IWDT_INST);
I use DL_IWDT_restart(IWDT_INST) to clear IWDT.
Thanks
Hi,
The original message seems to have been removed. Could you quickly summarize the issue again?
-Matthew
Hi Matthew,
My original question was:
Hello,
I am getting this error when I try to debug my project.
Console Output:
CORTEX_M0P: Error connecting to the target: (Error -6310) PRSC module failed to read a register. (Emulation package 20.0.0.3178)
CS_DAP_0: Trouble Writing Register PWRAP_DPREC0: (Error -2131 @ 0x20400) Unable to access device register. 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 20.0.0.3178)
CS_DAP_0: GEL: Error while executing PWRAP_DPREC0 = 0x00120008: Target failed to write register PWRAP_DPREC0
at PWRAP_DPREC0=0x00120008
Only solution to this problem I found is mass erase. After mass erase I can debug once. On the second debug attempt I get the same error.
Is there any other solution to this problem?
Thanks
Does this happen when you flash a different program to the device? Such as an example?
Are you working on a launchpad or custom board?