Atmel ICE error 4109 on Arduino ZERO and custom board

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

Hello,

 

i finished project on Arduino Zero and now i made custom pcb. I COPIED the circuit from the Arduino Zero datasheet and diagrams, but now when i connect the Atmel ICE i get error 4109(in attached picture). I also get same error when i try to connect to SWD on Arduino Zero board, so what could be the problem? When i try to connenct to a SAMB11 Xplained board, all works perfectly. 

 

All the pictures and diagrams are in attached pictures.

 

P.S. I noticed that i switched SWDCLK and SWDIO pins on CUSTOM pcb connector header, but i fixed that by making an flat cable that switches pins 2 and 4.

 

CUSTOM PCB:

PCB from official Arduino Zero files:

 

Error message in Atmel studio:

Last Edited: Mon. Jun 18, 2018 - 12:58 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

As Atmel have chosen to place the "Arduino" forum within the "AVR Freaks" section (presumably on the basis that a lot of the early Arduini were AVR based) I do worry about how many SAM using "eyeballs" you are going to get here - this is really more about SAM electronics than it is about Arduino. Should I move this to a Cortex M forum perhaps?

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

Yes please.

Thanks

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

No pullup on reset?

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

Ok i fixed it, as usually it was problem whit conenctors. The SWD flat cable IDC conenctors were badly crimped, so after i crimped one myself, connencted it, now all works liek a charm :D

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

Note that ready-made  ribbon cables are widely available; eg,

http://uk.farnell.com/webapp/wcs/stores/servlet/ProductDisplay?catalogId=10001&langId=44&urlRequestType=Base&partNumber=2308531&storeId=10151 

 

EDIT

 

Ah - missed the PS to the OP

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...
Last Edited: Tue. Jun 19, 2018 - 07:37 AM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

thanksThanks :D