Boron no longer connects after firmware update

I figured it out. I did the following:

In the CLI:

  1. Put in DFU mode.
  2. Do "particle update"
  3. Put in DFU mode.
  4. Do "particle flash --usb tinker"
  5. Reset
  • At this point is should be flashing dark blue (listening mode)

To get it out of listening mode the setup flag needs set:

  1. Upload the following program and run:
#include "Particle.h"

#include "dct.h"

SYSTEM_MODE(SEMI_AUTOMATIC);

void setup() {
    // This set the setup done flag on brand new devices so it won't stay in listening mode
    const uint8_t val = 0x01;
    dct_write_app_data(&val, DCT_SETUP_DONE_OFFSET, 1);

    // This is just so you know the operation is complete
    pinMode(D7, OUTPUT);
    digitalWrite(D7, HIGH);

    Particle.connect();
}

void loop() {
}