Unable to Program ATSAMR21B18 Module. Error: No Device Detected. Error 4109

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

I have run into a peculiar error when attempting to program my ATSAMR21B18-MZ210PA Module via the Atmel-ICE on a custom board. This module has an ATSAMR21E18A as its base chip, and I am attempting to program it through the SWD interface. When attempting to do so in Microchip studio, I am given the error: "Failed to Launch Program. Error: No Device Detected. Error 4109".

 

The strange thing is that this also happened to me with a different ATSAMR21B18 chip earlier, however, after several attempts, it eventually programmed despite changing nothing. I have been attempting to program this chip for several hours and to no avail. The schematic is attached. I have verified that all connections are sound, and I am using the same PCB as the board that I was able to program successfully. Any ideas on what I could try would be much appreciated. Thanks.

 

Attachment(s): 

This topic has a solution.
Last Edited: Mon. Mar 21, 2022 - 07:30 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0


It helps if you put the image in the post - where we can see it:

 

Your debug connector doesn't have any ground connection, and there are no decoupling capacitors anywhere to be seen.

 

Does the Atmel-ICE provide power to the target? If not, is the target properly powered?

 

See Tip #1 in my signature, below, for how to put the image in the post:

Top Tips:

  1. How to properly post source code - see: https://www.avrfreaks.net/comment... - also how to properly include images/pictures
  2. "Garbage" characters on a serial terminal are (almost?) invariably due to wrong baud rate - see: https://learn.sparkfun.com/tutorials/serial-communication
  3. Wrong baud rate is usually due to not running at the speed you thought; check by blinking a LED to see if you get the speed you expected
  4. Difference between a crystal, and a crystal oscillatorhttps://www.avrfreaks.net/comment...
  5. When your question is resolved, mark the solution: https://www.avrfreaks.net/comment...
  6. Beginner's "Getting Started" tips: https://www.avrfreaks.net/comment...
This reply has been marked as the solution. 
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I should mention, I found that my issues were due to a poor connection to the SWD pins. These pins are located underneath the chip and while they seemed to be firmly soldered onto the PCB, they must not have been. Removing the chip and carefully resoldering allowed me to program the board as expected.