Slow speed on Duo (Arduino)?

Arduino Code to enable D and I Cache… just for fun. I didn’t benchmark it yet as I need to attach a serial port :smiley: - and that is tomorrows job

It impacted my blinky - more details follow.

void setup() {
    Serial.begin(115200);
    Serial.println("Starting");

#if 1
  asm volatile(
          "li x3, 0x33\r\n"
          "csrc 0x7c2, x3\r\n"
          "li x3, 0x11\r\n"
          "csrs 0x7c2, x3\r\n"
          "li x3, 0x1\r\n"
          "csrs 0x7c1, x3\r\n"

          "li x3, 0x33\r\n"
          "csrc 0x7c2, x3\r\n"
          "li x3, 0x12\r\n"
          "csrs 0x7c2, x3\r\n"
          "li x3, 0x2\r\n"
          "csrs 0x7c1, x3\r\n"
  );
#endif
  // initialize digital pin LED_BUILTIN as an output.
  pinMode(LED_BUILTIN, OUTPUT);
}