Hi,
I have built a custom commissioning tool for loading firmware onto devices, doing a simple hardware check, and then registering the device to products.
Here is the workflow
Connect via usb and device our test firmware as follows
particle flash --local m524_test.bin
The device has not yet been registered to a product. The device also does not have access to network connection as there is no service in this area, and there is also no antenna attached at this time.
The device accepts the firmware, but after rebooting, it just stays in the trying to connect mode, flashing green. But it seems like it is not yet running our firmware, as there is no output on the serial line.
The device refuses to run my application when the following is setup.
SYSTEM_MODE(AUTOMATIC);
SYSTEM_THREAD(ENABLED);
The device will run my firmware if SEMI_AUTOMATIC is used as long as I don't call Particle.connect() in the setup.
As soon as I call Particle.connect() in the setup. The MSOM stays flashing green and will not run my firmware. I assumed SYSTEM_THREAD(ENABLED); would mean that my firmware would run regardless of connection attempts.
Does anyone have any ideas here?
Thanks,
Ivan