SAMD21 Xplained Pro EDBG failed to read mem

Go To Last Post
3 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hello

 

My environment is Atmel SAMD21 Xplained pro board.

It was running fine until I change GCLK register to the wrong position.

After the wrong register hex file was programmed, communication over openocd is no longer be done.

I tried to find out how to solve this but there's no exact issue like this or any good explanation.

I dunno much about the mechanism of the EDBG or any debugger. Or the solution for this is to use external debugger to reprogram?

 

Attached screen shots are the report from openocd.

Thank you.

Attachment(s): 

This topic has a solution.
Last Edited: Sat. Aug 7, 2021 - 12:23 AM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

From http://openocd.org/doc/pdf/openo...

I get that there is a chip-erase command that might work.

/Lars

 

This reply has been marked as the solution. 
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Thanks for the advice. The solution is to use at91samd chip-erase command but need to execute right exactly after the init command in .cfg file of openocd. It will not be done if trying to do chip-erase by start openocd and telnet to it.

 

source [find interface/cmsis-dap.cfg]

# chip name
set CHIPNAME at91samdxx

source [find target/at91samdXX.cfg]

init
at91samd chip-erase
shutdown

 

Last Edited: Sat. Aug 7, 2021 - 12:25 AM