Verify Error with SAMD21G18A

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

I made a custom board using the SAMD21G18A that uses the Arduino M0+ firmware from Arduino SRL. I have been using Atmel Studio with the Arduino plugin and programming through SWD using my Atmel ICE.

 

I was able to upload the bootloader with no errors. I wrote a simple serial echo program to see if everything was working, uploaded it, and it didn't respond in the terminal. I tried uploading again with a small change, it erased, programmed, and then threw a verify error. 

 

I tried uploading the bootloader to my actual Arduino Zero and it did the exact same thing. What worries me is I was able to upload the bootloader to the Zero a few weeks ago and everything worked great...

 

To break it down...

 

  • I can read fuses, but can't set fuses (verification error)
  • I can't upload any bootloader
  • I have uninstalled atmel studio, rolled-back ICE firmware and re-updated it, restarted my computer, etc.
  • I have been programming all sorts of AVRs with my ICE for a few weeks with no problems
  • I was able to program my off-the-shelf Zero before with the same ICE
  • I have tried different versions of the Zero firmware from both Arduino SRL and CC. 

 

Have I melted my ICE? :(

Last Edited: Thu. Oct 15, 2015 - 11:34 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I find that I get Verify errors occasionally with Rowley.

Keil and AS6.2 do not complain.

The Arduino 1.6.5 IDE uploads to my "M0_Pro" ok  (with the Zero bootloader from arduino.cc ).

 

I suspect that there is something wrong with either the bootloader or with Rowley.   I have no idea what it might be.   I have been playing with AVR recently.

 

David.

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

So I was able to upload the bootloader in the Arduino CC IDE successfully, then I tried again in AS and it worked... May be solved

 

EDIT : So now I can program in Atmel studio but I still can't set the fuses, changing them throws a verification error.

Last Edited: Wed. Aug 5, 2015 - 03:47 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Why do you want to write fuses?

Surely you would use a "Zero" or "M0_Pro" exactly as it came out of the box.

 

Yes,  I periodically re-install the CC bootloader.    I still get occasoinal Verify errors with the G18A in the M0_Pro or the J18A in a SAMD21_XPRO board with Rowley.  I will ask Rowley one day.

 

David.
 

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

David,

 

I said earlier that I am programming a custom board using the SAMD21. I need to program the fuses because USB programming will not work without them.

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

This is going to seem crazy, but I've had problems with verification on programmers that were plugged into external USB hubs  rather plugged straight into the motherboard USB. Might be worth trying if you're on a external hub.

If you're using ASF, neither of us know what your code is really doing :)
Have I just solved your problem ? My bitcoin address: 1EpGuPa2VtUVWjGmgWRmFicNKMFZSGhfLr

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

So I have tried all my USB ports, I can program the SAMD21 on the arduino zero and on my custom board. I can't program the fuses on either board. I can program fuses just fine on any AVR, I have no other SAM ICs to try out....

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

It has never crossed my mind to change any fuses.   In fact,  Rowley Crossworks does not even display them !!!

So I tried the Programmer Dialog in AS6 to read my "M0_Pro"  ("Zero" for U.S).    Sure enough,  there are pages of fuses.    Most are calibration settings from the Factory.

 

David.