Atmel ICE-PCBA SAM connector

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

Hi,

 

Just received the Atmel ICE-PCBA version. My Hardware team are going to make a 10 pin connector for SAM to squid cables for a SWD connectors. If I'm not wrong, the SAM 10 pin connectors had a mirror image of the hardware pins. So plugging in the right way would have lead to the unit getting damaged. For example : http://www.tag-connect.com/CORTEXRIBBON10 . Has this issue been rectified or do I need to ask the hardware team to re-check the pin connectors before making the cable ?

 

With regards,

Jenson

This topic has a solution.

Newbie to the world of Atmel SAM D microcontrollers.

Last Edited: Mon. Feb 13, 2017 - 06:12 AM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 1

It appears that the official cable has connectors reversed (rotated by 180) http://media.digikey.com/Photos/... I thought that sort of incompetence was limited to cheap chinese suppliers, how embarrassing! However, that cable might be designed for their own special adapter board, which also has a reversed connector - or not.

 

Not sure if there is an easy way to tell if you have it right, apart from plug it in and try. So yeah, certainly tell the hardware team not assume anything and to re-check :)

Bob. Engineer and trainee Rocket Scientist.

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

Just received the Atmel ICE-PCBA version. My Hardware team

If the company is large enough to have a team then it should be rich enough to buy a full ICE kit, buying the PCB version is false economy.

John Samperi

Ampertronics Pty. Ltd.

www.ampertronics.com.au

* Electronic Design * Custom Products * Contract Assembly

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

You just need a regular 0.05" 5x2 ribbon cable. Plug one end into the SAMD header on your ATMEL-ICE. And the other end onto the standard ARM-Cortex JTAG 5x2 header.
.
SWD is just a subset of the JTAG pins.

You can use your ATMEL-ICE with Keil, Rowley, ... or any other ARM toolset that is not Manufacturer Crippled.
i.e. NXP, Freesale, TI, ST, ... targets.
.
As js has commented. A commercial company should buy the proper kit. i.e. with plastic case and adapter cables.
IMHO, the PCBA is false economy for hobbyists too. The BASIC version gives you a case and cable.
.
David.

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

It's true, the SAM connector on Atmel-ICE was reversed https://www.google.com/search?q=...

 

http://www.at91.com/discussions/...

 

 

So best way to check is to pop the lid on the ATMEL-ICE and look at the PCB. Having made the mistake, it seems unlikely they would fix it without some visible difference as that would cause even more confusion.

Bob. Engineer and trainee Rocket Scientist.

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

donotdespisethesnake wrote:
http://www.at91.com/discussions 

Ha ha - didn't realise that still existed!!

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...
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

From memory,  I have used ATMEL-ICE with an Arduino Due.   Just with a regular 10-way ribbon.

 

Most of my ARM-Cortex boards have got on-board debuggers.   So the 5x2 header is not mounted.   I might have an NXP board w/o debugger.

Otherwise I would connect to an old LPC2148 board with a 10pin -> 20-pin JTAG.

 

David.

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

Oh, I forgot with PCBA version there is no lid :)

 

Here is a pic from Atmel :

 

The 10 pin headers clearly have the wrong orientation. I think that you could desolder the headers and solder new straight headers the right way round.

Bob. Engineer and trainee Rocket Scientist.

Last Edited: Sat. Feb 11, 2017 - 11:47 AM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

david.prentice wrote:
From memory,  I have used ATMEL-ICE with an Arduino Due.   Just with a regular 10-way ribbon.

I have used a Keil uLink with an Arduino Due.   Just with the regular 10-way ribbon supplied by Keil.

 

2013-05-15 Arduino Due uLink 003a-lo.jpg

https://www.element14.com/commun...

 

 

Details of Keil's pinouts:

http://www.keil.com/support/man/...

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...
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 1

The ARM JTAG pinout is different to the AVR JTAG pinout.   That is why there are two different connectors.

I doubt if you can buy an angle box header with the keyway on the wrong side.

 

 

You can use the BASIC cable with both ARM JTAG and with AVR JTAG.   Just plug it into the appropriate connector.

 

The tiny 0.05 pitch 5x2 is standard for all ARM-Cortex devices.

The AVR has a proprietary pinout for its 0.1 pitch 5x2 connector.   When it started to use 0.05 pitch 5x2 it copied the same proprietary pinout.

 

All of my AVR JTAG boards have got 0.1 pitch 5x2.    I find it easier to use the Dragon with regular 10-way ribbons even though the ATMEL-ICE is a lot faster.

 

David.

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

John, I should have mentioned that the hardware team comprises of just one member who does mostly soldering. Just a 20 member start up firm so I had to try out debugging using OpenOCD on a Raspberry Pi 3 and show it's limitations to convince to buy an Atmel debugger. I would have rather gotten the Atmel-ICE Basic kit but they found a cheaper option by scrolling the list, ffs. 

Newbie to the world of Atmel SAM D microcontrollers.

Last Edited: Mon. Feb 13, 2017 - 05:39 AM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

So is it the pinouts on the board that are in the wrong orientation or is the official Atmel cable.  Just want a confirmation before I plug the cable. Can I cut and correct the the orientation on the Atmel official cable ? 

 

ps: Looks like I just needed some coffee and to re-read the whole discussion as well as the at91 link, Monday morning blues !!! Thanks a lot for the help.

Newbie to the world of Atmel SAM D microcontrollers.

Last Edited: Mon. Feb 13, 2017 - 05:52 AM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 1

Ask your technical expert to test the continuity of your custom cable. i.e. test pin #1 on each end of the cable.
Rinse and repeat for each of the 10 pins. Then test for shorts between adjacent pins. Your cable looks well made. It migt have a 'break' but is unlikely to have a short. Make sure that the keys on each end connector are correct.
.
Lock up scissors and other sharp instruments and keep far away from AvrFreaks members.
.
Plug your verified cable into the AVR connector on the PCBA. The cable can only fit one way.
Plug the other end onto your AVR target JTAG header. If your target has a box header, make sure that it was mounted correctly.
.
David.

Last Edited: Mon. Feb 13, 2017 - 07:27 AM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Cheers David, I will ask him to double check the cable. 

.

LOL, nice banter.

.

 

I'll be connecting to the SAM port instead of the AVR port. The AVR header on both the ICE and the cable is supposed to be in the correct orientation but not when it comes to the SAM side.

 

With regards,
Jenson.  

Newbie to the world of Atmel SAM D microcontrollers.

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

If you want to use the SAMD connector, you must connect to an ARM target.
I am not aware of any ARM boards with a non-standard 0.1" 5×2.
.
I strongly recommend that any ARM pcb has the industry standard Cortex 0.05" 5x2 header.
And any AVR pcb has the Atmel proprietary 0.1" or 0.05" 5x2 header.
.
It is safer to use box headers on a pcb. This ensures that the cable is only plugged in one way.
If you use a naked male header, clearly mark pin #1 with a square pad and white dot or printed shape of the cable key.
.
If your 'startup' employer wants to defy convention, I would look for another job.
.
David.