edbg: Error: invalid response while writing the register 0x00 (count = 0, value = 0) on ATSAMD51J20A using atmel-ice

Hi,

I’m trying to connect to an ATSAMD51J20A using an atmel-ice debugger. command:

> sudo ./edbg-b56-LINUX_GCC-4f5d490 -t atmel_cm4v2 -rb -c 2000

Debugger: ATMEL Atmel-ICE CMSIS-DAP J41800048174 01.27.0082 (SJ)
Clock frequency: 2.0 MHz
Error: invalid response while writing the register 0x00 (count = 0, value = 0)

sudo is necessary because of permission issues. All the light flash on the debugger so I think that it is connecting properly. Whenever I disconnect the MCU I get (count = 0, value = 7), so something is going on.

Do you know how to solve this issue?

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Comments: 22 (11 by maintainers)

Most upvoted comments

I just pushed some changes. This should fix your issue.