Go Down

Topic: Zero (Read 5915 times) previous topic - next topic

ryan_of_science

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     :) .



Ciao
Marco





 


 


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

Calico88

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

westfw

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?

Calico88

#18
Nov 14, 2018, 03:43 am Last Edit: Nov 14, 2018, 03:51 am by Calico88
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

westfw

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...)

Go Up