I think I have briked my Arduino Zero

I wanted to try to see if I could run a code without setup() and loop(). The code may have damaged the Bootloader. Now on Mac and Windows with different USB cables it is not listed in the menu “Tools->Port”.

Does anyone know what actually happened and if it may be possible to fix it?

This is the code, after uploading my Arduino Zero is no longer listed in the “Port” menu:

#include <avr/io.h>
#include "sam.h"

#define F_CPU 48000000UL

int main (void)
{
  REG_PORT_DIRSET0 = PORT_PA27; // Set the direction of the port pin D26 to an output
  REG_PORT_DIRSET1 = PORT_PB03; // Set the direction of the port pin D25 to an output
  while (1) {
    REG_PORT_OUTTGL0 = PORT_PA27;
    REG_PORT_OUTTGL1 = PORT_PB03;
//    _delay_ms(5000);
  }
}

try double clicking the reset button

Pagus:
try double clicking the reset button

Is it a magic? :stuck_out_tongue_closed_eyes: It is listed again. I wasted three hours. Ridiculous!

Thanks for the tip!

it is not possible to brick Arduino Zero. it has a programmer on board