 #define BANK_2M   0x10
 #define BANK_1M   0x00
 // TODO see if we can add in a use_la19 for 512k banks
+#define SELECT_BOOTLOADER 0
 static uint8_t flash_bank_select_command =
-    0;  // initial for Arc/RPC: bootloader bank, 1M
+    SELECT_BOOTLOADER;  // initial for Arc/RPC: bootloader bank, 1M
 //  0 | BANK_2M;  // A310 with RO3 and no bootloader
 //  0 | BANK_4M;  // Risc PC @ 0
 //  4 | BANK_4M;  // Risc PC @ 4M

// PA28 - D4 - cpld_clock_from_mcu (clock output)
#define CPLD_CLOCK_FROM_MCU_PIN 4

// PA16 - 3v3 version of /RESET
#define arc_RESET_buffered_PIN 11
// PA17 - pull low to drive /RESET
#define ndrive_arc_RESET_PIN 13
// PA03 - 3v3 version of rom_5V
#define rom_5V_buffered_PIN 42
// PA02 - pull low to drive /POR (hold low for a while as it has to discharge 10u via 133R)
#define ndrive_arc_POR_PIN 14




      static int bitbang_serial_have_star = 0;
      if (bitbang_serial_have_star) {
        bitbang_serial_have_star = 0;
        // Byte is a flash bank select command
        select_flash_bank(c);
        // Now reset the machine
        digitalWrite(ndrive_arc_RESET_PIN, LOW);
        delay(100);
        digitalWrite(ndrive_arc_RESET_PIN, HIGH);
      } else if (c == '*') {
        bitbang_serial_have_star = 1;
      }
