Changing Bootloaders from a M0 Pro to Zero?

Hello, I have a original M0 pro board. It has the Debugger chip on it. I bought it when the other Arduino website was around. I wanted to change the bootloader from the M0 pro to the Zero bootloader. Sense they use the same processor. I just need to figure out the steps hardware and software what Should I do to change it over? I'm trying the arduino zero updater that requires a Bin file and Sense the M0 bootloader uses the hex file system. Someone please help me to convert this over?

Joseph

somewhere here on the forum is a topic about it. it uses a second arduino and sketch by Adafruit

What other arduino is needed? I'm searching for it now as well.

Is it think one? https://startingelectronics.org/articles/arduino/wemos-arduino-m0/

The board I have is this one.

This is the one I'm tryint to change the bootloader from a M0 pro to a zero bootloader.

this one has a programmer on board so you can burn the bootloader directly.
use the programming USB port, select "Zero (Programming port)" in Tools menu, select EDBG in Programmer and select "Burn bootloader"

then you have to use it as Zero in Tools menu if you use native USB port.
pins 2 and 4 are then swapped

I have tried that. Native USB doesn't work. Not even seeing native usb in device manager.

I edited the previous comment so I don't know if you read the final version

No Sorry I did not see that. Yes native usb is not working also programing port won't even upload a sketch either. Sense I can not change the pins around hardware is there a way to change them in software?

first focus on burning the bootloader. for programmer usb you will not see a com port. just proceed with burning the bootloader

Board: Arduino Zero Native Port
Port: Com 5 Arduino M0 pro programming port
Programmer: Atmel EDBG

Bootloader burned.

edit:

C:\Users\jJc\AppData\Local\Arduino15\packages\arduino\tools\openocd\0.10.0-arduino7/bin/openocd.exe -d2 -s C:\Users\jJc\AppData\Local\Arduino15\packages\arduino\tools\openocd\0.10.0-arduino7/share/openocd/scripts/ -f C:\Users\jJc\AppData\Local\Arduino15\packages\arduino\hardware\samd\1.8.11/variants/arduino_zero/openocd_scripts/arduino_zero.cfg -c telnet_port disabled; init; halt; at91samd bootloader 0; program {C:\Users\jJc\AppData\Local\Arduino15\packages\arduino\hardware\samd\1.8.11/bootloaders/zero/samd21_sam_ba.bin} verify reset; shutdown 
Open On-Chip Debugger 0.10.0+dev-gf0767a31 (2018-06-11-13:36)
Licensed under GNU GPL v2
For bug reports, read
	http://openocd.org/doc/doxygen/bugs.html
debug_level: 2
Info : auto-selecting first available session transport "swd". To override use 'transport select <transport>'.
none separate
adapter speed: 400 kHz
cortex_m reset_config sysresetreq
Info : CMSIS-DAP: SWD  Supported
Info : CMSIS-DAP: JTAG Supported
Info : CMSIS-DAP: Interface Initialised (SWD)
Info : CMSIS-DAP: FW Version = 01.1F.0118
Info : SWCLK/TCK = 1 SWDIO/TMS = 1 TDI = 1 TDO = 1 nTRST = 0 nRESET = 1
Info : CMSIS-DAP: Interface ready
Info : clock speed 400 kHz
Info : SWD DPIDR 0x0bc11477
Info : at91samd21g18.cpu: hardware has 4 breakpoints, 2 watchpoints
Info : Listening on port 3333 for gdb connections
target halted due to debug-request, current mode: Thread 
xPSR: 0x81000000 pc: 0x000041f8 msp: 0x20007fd0
target halted due to debug-request, current mode: Thread 
xPSR: 0x81000000 pc: 0x000028f4 msp: 0x20002c00
** Programming Started **
auto erase enabled
Info : SAMD MCU: SAMD21G18A (256KB Flash, 32KB RAM)
wrote 6656 bytes from file C:\Users\jJc\AppData\Local\Arduino15\packages\arduino\hardware\samd\1.8.11/bootloaders/zero/samd21_sam_ba.bin in 0.712138s (9.127 KiB/s)
** Programming Finished **
** Verify Started **
verified 6504 bytes in 0.572607s (11.092 KiB/s)
** Verified OK **
** Resetting Target **
shutdown command invoked

do you have a com port on native USB connector now?

I have power but no native connection when I switch over the USB plug.

try a double reset. the L led should start to pulsate

Yes i see that. I even heard USB coming on.

try to upload Blink

Error compiling for board Arduino Zero (Native USB Port).

some corruption in the boards package. reinstall it in Boards Manager

Okay I will try that.

That worked. Is there anything else changed? I can live with hitting the reset button to get a USB connection.