Hi friends! Please, we need help.
We have started to work with SAMD21G18A, and we are looking for the easiest way for burn bootloader and program sketches using Arduino IDE.
Can you propose me some ways for to do it please?
Thanks for your time!
Hi friends! Please, we need help.
We have started to work with SAMD21G18A, and we are looking for the easiest way for burn bootloader and program sketches using Arduino IDE.
Can you propose me some ways for to do it please?
Thanks for your time!
You'll need a compatible programmer. The default connection is to use a 2x5 way, 1.27mm pitch, SWD pin header on the target board, since this allows the programmer to be directly connected. Through hole and surface mount versions are available, for example:
There are various programmers on the market. CMSIS-DAP ones don't require an additional driver.
I've used both the Atmel ICE and J-Link EDU Mini (non-commercial use only) and both work well. To upload the bootloader, I've used the Arduino IDE itself and Atmel (now Microchip) Studio 7.
After the upload it's possible to remove the programmer and upload programs over the board's native USB port as normal, unless of course you wish to use the programmer as a debugger, say on Microchip Studio 7 or Arduino IDE 2.0.
Hi @MartinL , thanks for your answer again. I have been searching the CMSIS-DAP, but I don't find a concrete programmer. I´ve found this programmer, do you think that this programmer can works fine? CMSIS DAP Link-Depurador, CMSIS-DAP, Downloader OB, enlace de simulación – Grandado
If you are not sure about my link, please, could you send me a link with a programmer that you think works fine for burn bootloader on SAMD21 and upload sketches please??
One more time, thanks a lot!!![]()
Please, remember that we need to burn bootloader and upload the sketches using Arduino IDE...
I found this reference in eBay.
What do you think @MartinL ?
The Atmel ICE is an example of a CMSIS-DAP programmer, although it's now rather expensive, (it used to be much cheaper).
As I mention previously, for non-commercial use there's the Seggar J-Link EDU Mini, it's not a CMSIS-DAP programmer, and therefore requires driver software, but once the driver software has been downloaded works just the same:
It comes with a small ribbon cable that allows the programmer to be attached to the header described in the previous post.
The number of programmers usable for burning a bootloader is much larger than the list shown by the Arduino IDE (which in turn is variable depending on vendor - the Adafruit SAMD "programmer" list is different than the Arduino SAMD "programmer" list.) Many seem to end up using "openOCD", which can support LOTS of different programmers.)
Since you'll probably need to create a boards.txt for your custom board, you might as well be willing to create a programmers.txt file as well, at which point you just need to figure out how to support whichever SWD/CMSIS-DAP programmer(s) you've chosen with OpenOCD.)
(Atmel ICE is "old" at this point. Good, vendor-recommended programmers include the Microchip PICKit-4 and Microchip SNAP. But they aren't currently in the programmer menus...)
Hi @westfw, thanks for your answer. I understand that you say. Searching info I found a article in GitHub:
We only need step1 (article), because all our programs are in Arduino code and we want to use Arduino IDE
If the article is correct, is easy to burn bootloader and program sketches with CMSIS-DAP. Are you agree?
Thanks for your time.