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);
}
}