Zero

Hi,

I want to use Arduino Zero but I am unable to find it under "Tools ---> Boards" . Any Suggestions!

Erica

try:

Tools->board->boardmanager ( or at least something like that its in Dutch at my side)
and search for zero.

and you must have IDE 1.6.4 and higher i think

I got 1.6.5. And I have attached the snap shot of the IDE image with this reply.

Did you follow ALL the steps in the Getting Started Guide for the Zero?

PaulS:
Did you follow ALL the steps in the Getting Started Guide for the Zero?
https://www.arduino.cc/en/Guide/ArduinoZero

Hi,

Yes. One more question. I intend to put the Zero's microcontroller on my own board (PCB). I do not want to put the USB programming setup on the board and want to program it using another zero or uno board. Is it possible to do? what is the best way to program the SAMD21G18A-AUT.

Erica1989:
Hi,

Yes. One more question. I intend to put the Zero's microcontroller on my own board (PCB). I do not want to put the USB programming setup on the board and want to program it using another zero or uno board. Is it possible to do? what is the best way to program the SAMD21G18A-AUT.

Every time I ask this question nobody answers. Why?

Erica1989:
Every time I ask this question nobody answers. Why?

I guess you can put SAMD21G18A-AUT on your board and then program it with the Zero board using jumper wires. I might be wrong. I never tried it

Erica1989:
Every time I ask this question nobody answers. Why?

I can only speak for myself but I feel kind of silly replying to a post with "I don't know".

I do not want to put the USB programming setup on the board and want to program it using another zero or uno board. Is it possible to do?

The SAMD parts are programmed using SWD, a two-pin connection to JTAG (more or less.) I don't know of any current sketch like ArduinoISP that will allow uploading via SWD, but it's theoretically possible. Your best bet would be to buy an Atmel ICE programmer/debugger. (2nd best - I think there are various SWD/JTAG interface clones...)

nobody answers. Why?

You ask hard questions. The percentage of Arduino users currently using Zero is small. The percentage building their own SAMD boards and using "alternative programmers" is vanishingly small.

Hi, I made my own SAMD board. You should really go for an Atmel ICE for programming the bootloader.
I have been looking for an "arduino as SWD" code with no success. I know that someone have been able to implement JTAG on an Uno though. It may be a good start.

Hi,

Every time I ask this question nobody answers. Why?

If you want the right people to look and respond to your posts, I suggest you use a more informative subject title.

Zero ... When I saw that I thought it was about zeroing a sensor reading or an output.
So you have not even got the audience of the Arduino Zero owners/users.

You as the op can go and edit the subject title to something like.

Using Arduino Zero controller in IDE

Would have attracted more hits.

Tom...... :slight_smile:

Hi Erica,

if you are not worried to make a little modification to a ZERO board, I think you can try the following method to use a ZERO as an SWD programmer.

I didn't try it but I think it could work.

1- Remove the two resistors shown in the "Arduino_ZERO_pcb" and "ARDUINO_ZERO_schematics" attachments.

2- Make your board. A minimalist implementation is shown in the "SAMD21G18_minimalist_implementation" attachment.

3- Connect signals SWDIO, SWCLK, RESET plus GND and 3.3V between the ZERO and your board.

For RESET GND and 3.3V I recommend to use the normal Arduino's connector.
For SWDIO and SWCLK you can use the pads of the SWD connector or the left side pads of the removed resistors.

Keep the wires as short as possible.

4- Double check your connection.

5- Connect your PC to the ZERO's "programming " usb connector (the one near the black power supply connector".

6- Open the Arduino IDE on your pc and select the ZERO board and the ZERO's programming port as a programmer.

7- Burn the ZERO's bootloader.

8- If everything go ok you can now write a sketch and download it to your board.

Please let me know if it works or if I am telling you a lot of bullshit :slight_smile: .

Ciao
Marco

Hi Erica

Did you try the solution from Sulimarco? I want to do the same thing (burn bootloader into an external SAM D21)

Hi @avandalen I just test it like the recommendation and it works!

the only thing is I did not remove the resistors, I removed the chip instead(I had done it before to put as a standalone)

I have created a new article about this subject:
How to burn a bootloader with the Arduino Zero into an external bare SAMD21

Sulimarco:
Hi Erica,

if you are not worried to make a little modification to a ZERO board, I think you can try the following method to use a ZERO as an SWD programmer.

I didn't try it but I think it could work.

1- Remove the two resistors shown in the "Arduino_ZERO_pcb" and "ARDUINO_ZERO_schematics" attachments.

2- Make your board. A minimalist implementation is shown in the "SAMD21G18_minimalist_implementation" attachment.

3- Connect signals SWDIO, SWCLK, RESET plus GND and 3.3V between the ZERO and your board.

For RESET GND and 3.3V I recommend to use the normal Arduino's connector.
For SWDIO and SWCLK you can use the pads of the SWD connector or the left side pads of the removed resistors.

Keep the wires as short as possible.

4- Double check your connection.

5- Connect your PC to the ZERO's "programming " usb connector (the one near the black power supply connector".

6- Open the Arduino IDE on your pc and select the ZERO board and the ZERO's programming port as a programmer.

7- Burn the ZERO's bootloader.

8- If everything go ok you can now write a sketch and download it to your board.

Please let me know if it works or if I am telling you a lot of bullshit :slight_smile: .

Ciao
Marco

Just wanted to thank you for this tutorial here, Marco, it worked perfectly for me with my DIY dev board. Much appreciated!

Sulimarco,
can I use this cheap Zero board ?

I hope you still around or someone else can help me program the SAMD21 chip.
only with Zero board with modified.

all I want to do is program the .ino file to SAMD21 48 chip, with only using Zero board/modify.

regards
cal

It's impossible to tell whether it has a bootloader installed by looking at the picture, and the info on their page isn't very encouraging, since they go on about the EDBG feature of the Arduino Zero, which their board clearly does not have...
https://www.aliexpress.com/item/SAMD21-M0-Mini-32-bit-ARM-Cortex-M0-Core-Compatible-with-Arduino-Zero-Form-Mini/32932651998.html, right?

yes that's right,
I'm not a programmer at all... and know nothing bout microcontroler.
How do I know it has a bootloader installed ?
where to look or how to check before buying zero board ?

all I want to do is burn the .ino file code to SAM21 48 chip

thank you

You could ask them whether it has the Arduino bootloader loaded. It shouldn't, actually (that would be encroaching on Arduino's USB Vendor ID ownership.) It might also have the normal Atmel bootloader, which might work with Arduino? Buy it and try it.
Or buy a similar board from Arduino or one of the trusted Arduino-compatible vendors (Sparkfun, Adafruit, Seeed, etc...)