Faster Routine

You can toggle a pin a bit faster than you did in reply #4:

void setup() {
  
  PIOC->PIO_OWER = PIO_OWER_P21;
}

void loop() {
  while (true) {
    //Toggle PIN
    PIOC->PIO_ODSR = 1 << 21;
    PIOC->PIO_ODSR = 0 << 21;
  }

}