[ISSUE] CMD-SHIFT-B flash locally dfu wrong address?


#1

Using VS Code 1.29.1 on OSX High Sierra with the alpha4 of the preview I am trying to flash a Boron locally. The following happens. Looks to me like the address to dfu-util are wrong. Is there some config bit I am missing in VSC?

dfu-util -d 0x2B04:0xD006 -a 0 -s 0x80A0000:leave -D /Users/tahoemph/src/personal/first/target/first.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:d00d
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 = 0x080a0000, size = 4060
dfu-util: Last page at 0x080a0fdb is not writeable
make[2]: *** [program-dfu] Error 74
make[2]: Leaving directory /Users/tahoemph/.particle/toolchains/deviceOS/0.7.0/firmware-0.7.0/modules/photon/user-part' make[1]: *** [modules/photon/user-part] Error 2 make[1]: Leaving directory/Users/tahoemph/.particle/toolchains/deviceOS/0.7.0/firmware-0.7.0/main’
make: *** [flash-user] Error 2
The terminal process terminated with exit code: 2


#2

Currently there is no official support for mesh devices in Workbench, hence the flash task doesn’t know how to flash them correctly (e.g. dfu-util -d 0X2B04:0xD006 denotes Photon rather than Boron, which would be :0xD00D) .
But official mesh support is planned.

For the time being you can flash via CLI particle flash --usb <binary.bin> (also from Workbench’s integrated console).


#3

Ah, thank you. I missed that.