Go Down

Topic: Compile bootloader for M0 (Read 239 times) previous topic - next topic

jtonheim

Hi everyone.

I'm having problems compiling the bootloader for M0 (not M0 Pro).
Downloaded the source here: https://github.com/arduino/ArduinoCore-samd
Opened bootloaders/mzero/Bootloader_D21/Bootloader_D21.atsln in Microchip Studio version 7.0.2542 and upgraded project as suggestet by Microchip Studio.
Chose release config and built solution with no errors.
When I burn the bootloader, it is seems that only the M0 Pro got compiled and not the vanilla M0.
Does anyone know how to target for M0 and not M0 Pro in the project?

Some additional info:
The precompiled hex files are also in the repo and they have a size of 68.3 kB, while my compiled hex file are only 37.4 kB.

Thanks a lot in advance. Hope I have provided enough info here.

Juraj

I recommend the Zero bootloader for M0 and then use M0 as Zero.

jtonheim

Thanks for the reply Juraj.
The M0 (not Pro) does not have the on-board EDBG chip though, and I think some pins might be different as well.
I am simply trying to compile the sources mentioned above, and hope someone can help me.

Juraj

Thanks for the reply Juraj.
The M0 (not Pro) does not have the on-board EDBG chip though, and I think some pins might be different as well.
I am simply trying to compile the sources mentioned above, and hope someone can help me.
the bootloader doesn't care about the EDBG and the EDBG doesn't care about the bootloader.
I use my M0 clone as Zero.
pins 2 and 4 are swapped

Go Up