I need to run not connected to the cloud so I was testing threaded and mode. I added the following two lines to the top of “Blink an LED” and flashed it over the serial line.
SYSTEM_THREAD(ENABLED);
SYSTEM_MODE(SEMI_AUTOMATIC);
Now when I power on the device it flashes the “Cellular Off”, but when I press and hold the mode button it switches to “Cellular Module not connected” instead of “Listening Mode”. So it fails when I try to update using the serial connection.
Running firmware 0.6.0 (also how do I update to 0.6.4, the firmware manager link is just 6.0?)
Yes I have CLI installed, that is how I am flashing over serial. When you say udate in DFU mode is that for the firmware update? I can’t find any good instructions on using DFU mode just vague references.
I tried your methods to enter Listening Mode and couldn’t get any to work. Is there a way to wipe the code from button presses?
> enter Safe Mode and then use SETUP/MODE to enter LM
Can’t get into save mode, can only move from “Cellular Off” to “Listening Mode”
> add a feature to your code that calls Cellular.listen()
Would love to, but can’t add Cellualr.Listen() if I can’t flash the chip.
> remove the SIM (a subsequent connection attempt - e.g. via Safe Mode - would enter LM)
Removed the chip but couldn’t get it to go into safe mode or anything else.
> set the baudrate of the serial port from your PC to 28800 (in Windows via mode COMx 28800)
Ran “mode COM6 28800” and changed the baud rate. ran “particle flash --serial xx.bin” but is failed and no listening mode was triggered.
Failed to flash my code in DFU mode. After flashing yellow I ran “particle flash --usb xx.bin”. Error - “I was unable to detect any devices in DFU mode…”
I did get it to go into Safe Mode this time, I just didn’t wait long enough. Yea! I can progress now.
Upgrading the Firmware
The “particle firmware manager” is awesome, just wish I could assign the firmware to use.
Yes, there are good instructions on putting it in DFL mode, but no step instructions on updating firmware using DFL in https://docs.particle.io/reference/cli/. Or do I use dfu-util. Neither lists the following:
To Update the firmware
Go here ??? for the latest compiled firmware files.
Put your device in DFL mode.
In the (CLI or dfu-util.exe) run ??? to push new firmware to the device.
Under “Options” in the menu bar you need to tick “List All Devices” and then select the correct device in the dropdown list.
It’s also safer to use an USB 2.0 port and avoid USB 3.0 if you can.
Also make sure the device is blinking yellow at the time.
If this still fails try swapping the USB cable.