Build a SAMD21 Board

Hi all,

I am working to try to build my own SAMD21 Board and I get some issues.

My goal is to just create a simple board based on ATSAMD21E18A-AUT MCU.

I solder all components and I do not understand why by laptop is not recognize the device.

Of course I tried to connect via Atmel Ice to flash it but the device is not recognize.

Please anyone can help about this schematics ?

In advance thank you,

Kind regards,

Paul

PCB_PCB.pdf (65.8 KB)

Schematic_SAMD21.pdf (54.8 KB)

Hi Paul,

Perhaps I'm mistaken, but I noticed in your schematic (and on your PCB) that the microcontroller's analog voltage supply pin (VDDANA) isn't connected to VCC (+3.3V).

Other than that your circuit looks OK to me.

It looks like SWDIO and SWCLK are shorted together at the pin header connector.

Also, your bypass capacitors are very far away from the chip - they should be right next to the power pins - one cap next to each pair of power pins.

Hi Martin,

OK I though it was not necessary ....

So, you are rigtht, the VDDANA is not connected to any voltage source.

Let me test consedering your proposal,

Again thank you so much :slight_smile: !

PA.

Hi Paul,

The SAMD21 requires VDDANA, to power pins PA00 through to PA07.

You'll also need to follow westfw's suggestion regarding the SWCLK and SWDIO as well.

Hello Martin, Westfw,

Thank you for your time and advices about the project :).

I am currently working on a new PCB in order to integer your tips :).

I will share with you the second version to see if from your point of view it will sound good :).

I wish you a pleasant day,

Kind regards,

Paul.

Hi Guys,

In order to get your point of views about my new PCB release, I just joined here both PCB and Schematic I updated based on your advices.

Action I made :

=> I added a voltage supply for VDDANA :slight_smile:
=> I checked SWDIO and SWCLK on Pin Header and there are not shorted anymore :slight_smile:
=> I moved bypass capacitors (C7,C8,C9) closer to power Pins :slight_smile:

Considering these updates, do you think this new release should work ?

Next step it to order PCB and try again :).

Schematic = > New_Schematics.pdf - Google Drive
PCB = > New_PCB.pdf - Google Drive

Kind regards,

Paul.

I'm uncomfortable with the way the USB signals and Crystal signals are so close together.
Is your crystal really that tiny?

In general, I like to design my PCBs more conservatively, with traces further apart, and vias not too close to other things, unless it's really needed. See https://www.instructables.com/id/Make-hobbyist-PCBs-with-professional-CAD-tools-by-/ (although that's an extreme example, since it's aimed at home fabrication, but the principles are similar even with professionally fabbed boards.)

Hi Westfw,

Thank you for your messgae.

The Crystal I am using is https://www.mouser.fr/ProductDetail/ABRACON/ABS07-32768KHZ-T?qs=3SpAxaLJ01g8GJWeO3sA3Q%3D%3D

So I think it is Tiny enough :).

What do you think about it ?

Kind regards,

Paul.

Hi Paul,

I also use the Abracon ABS07 on my SAMD21 custom boards, it's a nice compact crystal, together with 22pF load capacitors, located as close the to the crystal as is reasonably possible.

It's probably also worth looking at the SAMD21 datasheet, section 42 "Schematic Checklist". It details the recommended external circuitry and layout considerations for the microcontroller.

I'd also recommend placing an capacitor on your voltage regulator input, the MCP1703 suggest a 1uF ceramic capacitor. Personally, I'd move the regulator and its capacitors closer to the microcontroller.

Another minor consideration, is that you're driving the LED with around 3mA of current. This exceeds the SAMD21's default maximum pin current of 2mA. To drive the LED it's necessary to first set the pin's driver strength bit in software. Setting this bit allows the SAMD21's pin to source a maximum of 7mA.

Hi Martin,

Based on my last PCB I received yesterday and after soldered components, it is better right now because my Atmel Ice is recognizing the MCU :).

However, once I burnloaded the Arduino Zero intialization programm, my laptop cannot recognize on any USB port the device ...

So I will re start again with a new PCB and take in considration your latest feddeback :

-> Put closer the MCP1703 and adding a 1uF ceramic capacitor.

Thank you again for your help,

I will keep it touch when I will sucess !

Paul.

Hi Paul,

The fact that your microcontroller is recognising your Atmel ICE is a significant step forward. Before starting on your next board iteration, I'd suggest that this is an opportunity to "play" with your existing board and attempt to get everthing working. As with any engineering project, large or small, any findings can then be used to improve the next version.

I'd carefully inspect the board to check that all the solder joints are good and that there are no dry joints or solder bridging between pins.

I'd also use a multimeter to check that the supplies 5V and 3.3v are correct. If the microcontroller's internal voltage regulator is working, you should be seeing around 1.8V on the VDDCORE pin. Is the RESET pin pulled high?

If you've got access to an oscilloscope, are you getting a 32.768kHz, 500mV, sine wave oscillation at the crystal? (That's what I'm seeing on my custom board using the ABS07 crystal).

Have you tried removing your Atmel ICE and then powering your board direct from the USB? It's also worth double tapping the reset button (two presses in quick succession), to try to place the microcontroller into bootloader mode and see if the board connects.

Hi Guys,

Thank you so much for all your coments. I succeed to implement all components on board and now it is working.

However, I am now working on a other MCU, the ATSAMD21G18A.

And I get the same problem my device is not recognized by the Atmel Ice and I cannot flash the MCU. I followed the documentation from Microchip, but I am now blocked ...

So, Here I share my current PCB + Schematics concerning this new board.

Please can you have a look and confirm me that my board look good ?

My Schematic for this board =>Schematics

My PCB for this board =>PCB

In advance thank you,

Kind regards,

Paul.