I figured it out. I did the following:
In the CLI:
- Put in DFU mode.
- Do "particle update"
- Put in DFU mode.
- Do "particle flash --usb tinker"
- Reset
- At this point is should be flashing dark blue (listening mode)
To get it out of listening mode the setup flag needs set:
- 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() {
}