I’m trying to use the VS Code Workbench to locally flash firmware that turns off the cellular device on my Electron; but after flashing, the LED on the Electron just goes back to blinking cyan and then breathing cyan, which (according to https://docs.particle.io/tutorials/device-os/led/electron/#sts=Electron) means it’s still using the cellular module to connect to the Cloud. I’m concerned that it’s not flashing the firmware that I think it’s flashing.
Here’s my .ino program:
I used the ‘Particle: Compile application (local)’ command to compile it locally
which generated the terminal in the previous screenshot
Now I’m using the ‘Particle: Flash application (local)’ command to flash it to my Electron
After flashing, the terminal shows this:
> Executing task: make -f 'C:\Users\spenc\.particle\toolchains\buildscripts\1.9.2\Makefile' flash-user -s < :::: PUTTING DEVICE INTO DFU MODE Done. :::: FLASHING APPLICATION text data bss dec hex filename 4412 108 1392 5912 1718 c:/Users/spenc/Documents/Particle/Projects/test/target/1.5.0/electron/test.elf dfu-suffix (dfu-util) 0.9 Copyright 2011-2012 Stefan Schmidt, 2013-2014 Tormod Volden This program is Free Software and has ABSOLUTELY NO WARRANTY Please report bugs to http://sourceforge.net/p/dfu-util/tickets/ Suffix successfully added to file Serial device PARTICLE_SERIAL_DEV : not available Flashing using dfu: dfu-util 0.9 Copyright 2005-2009 Weston Schmidt, Harald Welte and OpenMoko Inc. Copyright 2010-2016 Tormod Volden and Stefan Schmidt This program is Free Software and has ABSOLUTELY NO WARRANTY Please report bugs to http://sourceforge.net/p/dfu-util/tickets/ Opening DFU capable USB device... ID 2b04:d00a Run-time device DFU version 011a Claiming USB DFU Interface... Setting Alternate Setting #0 ... Determining device status: state = dfuIDLE, status = 0 dfuIDLE, continuing DFU mode device DFU version 011a Device returned transfer size 4096 DfuSe interface name: "Internal Flash " Downloading to address = 0x08080000, size = 4520 Download [=========================] 100% 4520 bytes Download done. File downloaded successfully *** FLASHED SUCCESSFULLY *** Press any key to close the terminal.
But after flashing, the Electron goes back to blinking cyan (connecting to the Cloud) and then breathing cyan (connected). It could be helpful to mention, the target device is not a personal device. It’s registered as a development device for a product I’m working on.
Also, I’m checking the Event Feed on the console and I’m seeing events being published from a previous firmware
Any idea why my Workbench isn’t flashing the firmware in front of me when I try the ‘Particle: Flash application (local)’ command, even though the terminal says ‘FLASHED SUCCESSFULLY’?
EDIT: I got it to flash the firmware in front of me by choosing the ‘Particle: Flash application & DeviceOS (local)’ option, instead of ‘Particle: Flash application (local)’.
I tried this after reading this here: https://docs.particle.io/tutorials/developer-tools/workbench/#local-build-and-flash
I don’t understand anything about these 3 paragraphs