无法将代码闪烁到粒子光子

Can't Flash Code to Particle Photon

我有一个正在尝试设置的粒子光子。我已经尝试从网络 IDE 和本地刷新代码,但总是超时。设备正在连接,如下图所示:

网络 IDE 没有给我太多信息。它只说 "Request Timed Out"。这是我尝试刷新 .ino 代码时得到的结果

MacBook-Pro:Desktop User$ particle flash ABCDEFGH123456789 sketch_jun09a/
Including:
    sketch_jun09a/sketch_jun09a.ino
attempting to flash firmware to your device ABCDEFGH123456789
Flash device failed.
Request Timed Out

当我尝试刷新 firmware.bin 文件时,我得到的是:

MacBook-Pro:Downloads Usesr$ particle flash --usb firmware.bin 
Found DFU device 2b04:d006
spawning dfu-util -d 2b04:d006 -a 0 -i 0 -s 0x080A0000:leave -D firmware.bin
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/

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 2b04:d006
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 = 5224
Download    [=========================] 100%         5224 bytes
Download done.
File downloaded successfully
dfu-util: Error during download get_status

Error writing firmware...dfu-util: Invalid DFU suffix signature
dfu-util: A valid DFU suffix will be required in a future dfu-util release!!!

dfu-util: Error during download get_status

我在网上看到 firmware.bin 文件似乎是为 Particle Core 而不是 Photon 编译的,所以设备不允许刷入代码。我应该如何编译代码才能使其工作?这个问题还有其他解决方案吗?提前谢谢你。

您将无法将 Core 固件刷入 Photon(它们具有不同的体系结构和固件布局)。要编译 photon 的代码,您还可以使用 CLI:

$ particle compile photon sketch_jun09a/

可以像您一样使用 CLI 刷新生成的二进制文件。

为了找出空中闪光故障,我建议 contacting the support