Go Down

Topic: Bootloading MKR Zero (Read 386 times) previous topic - next topic

evi7538

Hi,

Can I upload a bootloader to MKR Zero by using ArduinoISP ISCP through SPI of the MKR (the same way other Arduino boards can be bootloaded https://www.arduino.cc/en/Tutorial/ArduinoISP )?

Or do I have to use the SWD interface on the MKR and use Atmel-ICE programmer?


Thanks

evi7538

To clarify: I designing a board with SAMD21 based on MKR Zero so I will need to upload a bootloader into fresh SAMD21 chips after they are soldered on the board. So I need to know whether to place the pads on the board for ISP connected to SPI+Reset or to the SWD interface? Pads connected to SWD is the way it's done on the original MKR board but I'd like to try the SPI programming, it seems to be easier/cheaper than using AtmelStudio and Atmel-ICE (could be done with ArduinoISP and IDE, although needs one extra pin), but only if it works.

ballscrewbob

#2
Sep 08, 2018, 05:06 pm Last Edit: Sep 08, 2018, 05:08 pm by ballscrewbob
JTAG / SWD  would be the preferred method.

Not seen anyone go ICSP with the MKR series (not to say it cannot be done).

JTAG programmers are quite cheap on Ebay and such and there are a lot of other alternatives to the expensive programmers.

It may not be the answer you were looking for but its the one I am giving based on either experience, educated guess, google or the fact that you gave nothing to go with in the first place so I used my wonky crystal ball.

evi7538

JTAG programmers are quite cheap on Ebay and such and there are a lot of other alternatives to the expensive programmers.
Thanks. I'm new to JTAG bootloading so I'm afraid to buy a programmer on Ebay without knowing for sure that it can be smoothly used with Atmel Studio. So I'll probably will go with expensive Atmel ICE just to be safe.

Unless someone could point me to a cheaper programmer that was tested with the MKR Zero (and a SW that works with it for FW uploading)?

evi7538

Not seen anyone go ICSP with the MKR series (not to say it cannot be done).
I just tried this with Adruino as ISP, can't make it work.
So I'll go for programming through SWD

LC200

Hi

I'm using the Atmel ICE here and had zero problems uploading the bootloader via SWD it's also useful for setting fuses etc if required from Atmel studio.

This was on a home built PCB with blank chips, if you are designing your own board just make sure you have the necessary pins broken out for the programmer to connect to.  Also you can use the programmer to program sketches directly, which seems faster to me, so then ironically you don't need the bootloader, unless of course you are making more than one and need in the field updates without needing the programmer.

Lee

evi7538

Tanks all, I was able to successfully bootload my MKR through Atmel ICE with self-made pogo-pin adapter

Go Up