problem with mEDBG on SAMD10 explained mini

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

I recently got this board , and I find that all my various tools , command lines etc that normally work fine with mEDBG on say my D21 and C21 explained pro boards , are simply not working properly , ( openocd being  case in point ) 

 

Has something changed are these still CMIS-dap compatible etc ?

 

thanks 

 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

They are all cmsis-dap compliant...

:: Morten

 

(yes, I work for Microchip, yes, I do this in my spare time, now stop sending PMs)

 

The postings on this site are my own and do not represent Microchip’s positions, strategies, or opinions.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

well, my platformio openocd , faults trying to reset  the SAMD10 mini via the mEDBG interface  , works perfectly on the SAMC21 Pro board ,  I use some mEDBG command line tools, same story , fails on the samd10 mini , works perfectly on the C21 board 

 

I wonder if I should blow an older version of the mEDBG onto the mini board , whatever it is they are not the same 

 

 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Well, EDBG is on the Xplained Pro and mEDBG is on the Xplained Mini - they are in theory the same, but they are definitely not running the same code...

I think Studio uses a "custom" reset function (https://onlinedocs.microchip.com...) so it may be that the openOCD reset implementation makes calls that are different/invalid on the mEDBG...?

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Thanks for that

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

You probably want to make sure that AS7 has updated your mEDBG chip to the latest firmware...

 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I don’t use AS , as it never installed properly on my Windows 7 pc.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I think 1.12 is latest FW for mEDBG with SAM (1.0C) and this has not been released in some time.  Newer SAM boards appear to be using nEDBG now (Curiosity Nano) which is at least maintained, so it might be a good idea to try openOCD with that debugger as well...