Flashing SuperB


SuperB can be flashed using an XBee USB adapter board or using M2.

Flash with USB Adapter Board
Flash with M2

For the instructions that follow, the SuperB is connected to the computer with an XBee USB Adapter board (with one modification), available here.

Before the board can be used with the SuperB, VREF and DIO11 need to be bridged on the rear of the board as shown below.

At this point the board can be connected to the computer via USB with the RESET and BOOT buttons controlling EN and IO0, respectively.

  • 1) Follow the instructions here to set up the board manager for ESP32.

  • 2) Modify the file "platform.txt" found at: C:\Users*YourUsername*\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.2\platform.txt

    Replace "default_reset" with "no_reset" once on line 100 and once on line 101.

  • 3) Replace the file "boards.txt" found at:


    Replace the existing "boards.txt" file with the one available here.

  • 4) Restart the IDE.

  • 5) Plug SuperB into M2 with the antenna trace/U.FL connector towards the USB port and then plug M2 into computer. (Note the button nomenclature and board orientation)

  • 6) Select "Macchina M2" as board type and upload the sketch below:

int buttonState1 = 0;
int buttonState2 = 0;
void setup() {
pinMode(DS2, OUTPUT);
pinMode(DS3, OUTPUT);
pinMode(Button1, INPUT);
pinMode(Button2, INPUT);
char rx_byte = 0;
void loop() {
if (SerialUSB.available() > 0) {
rx_byte = SerialUSB.read();
if (Serial.available() > 0) {
rx_byte = Serial.read();
buttonState1 = digitalRead(Button1);
if (buttonState1 == LOW) {
digitalWrite(DS2, LOW);
digitalWrite(XBEE_RST, LOW);
} else {
digitalWrite(DS2, HIGH);
digitalWrite(XBEE_RST, HIGH);
buttonState2 = digitalRead(Button2);
if (buttonState2 == LOW) {
digitalWrite(DS3, LOW);
digitalWrite(XBEE_MULT4, LOW);
} else {
digitalWrite(DS3, HIGH);
digitalWrite(XBEE_MULT4, HIGH);
  • 7) Open the serial monitor. Place the SuperB into bootloader mode by holding down the BOOT (SW2) button, pressing and releasing the RESET (SW1) button, and then releasing the BOOT (SW2) button. The serial monitor output should look like the one below:

  • 8) Select "SuperB on M2" as board type:

  • 9) A good example sketch can be found in File>Examples>Examples for SuperB on M2>WiFi>WiFiScan. Upload it.

  • 10) Close and reopen the serial monitor with "Macchina M2" as the board type. Press RESET (SW1) to begin scanning for access points: