Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect platform id will show up when flash the core #232

Closed
ericyuanyong opened this issue Mar 31, 2016 · 3 comments
Closed

Incorrect platform id will show up when flash the core #232

ericyuanyong opened this issue Mar 31, 2016 · 3 comments

Comments

@ericyuanyong
Copy link

There is a incorrect platform id error if download the firmware from WEB IDE and flash it by
particle flash --usb frimware.bin to core even the core had chosen in IDE. And the hint says need to use --force to override it. So it can be temporarily solved by particle flash --usb firmware.bin --force.

@brycekahle
Copy link
Contributor

@ericyuanyong Do you know what version of Core firmware you were targeting?

@lbt
Copy link

lbt commented May 24, 2016

Just to say I have this issue with one of my Sparks too
I did
particle compile core gatekeeper --saveTo gatekeeper.bin
on 24 May when the target was 0.5.0 according to build.particle.io

david@ash:/mer/spark/devel/core-firmware/user/applications$ particle flash --usb gatekeeper.bin 
running dfu-util -l
Found DFU device 1d50:607f

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

david@ash:/mer/spark/devel/core-firmware/user/applications$ particle flash --usb gatekeeper.bin --force
running dfu-util -l
Found DFU device 1d50:607f
checking file gatekeeper.bin
spawning dfu-util -d 1d50:607f -a 0 -i 0 -s 0x08005000:leave -D gatekeeper.bin
dfu-util 0.8

Copyright 2005-2009 Weston Schmidt, Harald Welte and OpenMoko Inc.
Copyright 2010-2014 Tormod Volden and Stefan Schmidt
This program is Free Software and has ABSOLUTELY NO WARRANTY
Please report bugs to dfu-util@lists.gnumonks.org

dfu-util: Invalid DFU suffix signature
dfu-util: A valid DFU suffix will be required in a future dfu-util release!!!
Opening DFU capable USB device...
ID 1d50:607f
Run-time device DFU version 011a
Claiming USB DFU Interface...
Setting Alternate Setting #0 ...
Determining device status: state = dfuERROR, status = 10
dfuERROR, clearing status
Determining device status: state = dfuIDLE, status = 0
dfuIDLE, continuing
DFU mode device DFU version 011a
Device returned transfer size 1024
DfuSe interface name: "Internal Flash  "
Downloading to address = 0x08005000, size = 80320
Download        [=========================] 100%        80320 bytes
Download done.
File downloaded successfully
Transitioning to dfuMANIFEST state

Flash success!

monkbroc added a commit that referenced this issue May 26, 2016
@monkbroc
Copy link
Member

This is now fixed in the master branch. This fix will be included in the next version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants