Error writing firmware...Incorrect platform id

Hello,

With the Electron device, I’m trying to load firmware via CLI interface to spare bandwidth usage. However, I’m getting the following error when trying to load it:

$ particle flash --usb firmware.bin 
running dfu-util -l
Found DFU device 2b04:d00a

Error writing firmware...Incorrect platform id (expected 10, parsed 6), use --force to override

When checking which firmware my device is running, I get 0.4.8. But on https://build.particle.io/ I do not see 0.4.8 as an option (I’ve either 0.4.7 or 0.4.9).

So my question is, can I upgrade the electron device to 0.4.9? if yes, is the procedure described here also ok for the Electron device: https://github.com/spark/firmware/releases/

tks for your help.

Where did firmware.bin come from? I’m guessing the WebIDE, so be sure that you have your electron device selected under “devices”.

At present, the IDE is compiling firmware for a Photon, so you probably have a Photon selected.

Hello,

You are right, the WebIDE did compiled for a photon even though I did correctly selected Electron device in the WebIDE. The issue was resolved by your team a few days ago.

Thanks.

Hello,

I have the same problem as you.

I have an Electron device and I try to blink a LED (my code is this one : https://docs.particle.io/guide/getting-started/examples/core/#blink-an-led).

The firmware.bin come from the WebIDE, but I don’t see where you can change de compilation device (Photon or Electron) in the WebIDE.

Here is the error :

$ particle flash --usb firmware.bin
Found DFU device 2b04:d00a

Error writing firmware...Incorrect platform id (expected 10, parsed 0), use --force to override

What can I do ?
Thanks for your help

There’s a little star next to the device you’re targeting:

1 Like

Thanks for your answer.

But I have no Particle Devices connected. Because to claim my device, I have to connect it to the Particle Cloud, and I don’t want to use the SIM Card yet. And when I put de device ID, it says : “Could not claim device.”.

Is it possible to try the example without any SIM card ? Or is it impossible ?

Thanks for your help

This topic had the (exact) same issue, have a look:

That’s also the solution I gave you in your other topic, hence the argument not to double post. Makes things more complicated than need be.

3 Likes