2

我有一个正在尝试设置的粒子光子。我尝试过从 Web IDE 和本地刷新代码,但总是超时。设备正在连接,如下图所示: 在 web IDE 中看到

Web IDE 没有给我太多信息。它只说“请求超时”。这就是我尝试刷新 .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 编译的,因此设备不允许刷新代码。我应该如何编译代码才能让它工作?这个问题还有其他解决方案吗?先感谢您。

4

1 回答 1

1

您将无法将 Core 固件刷新到 Photon(它们具有不同的架构和固件布局)。要编译光子的代码,您还可以使用 CLI:

$ particle compile photon sketch_jun09a/

可以使用 CLI 以与您相同的方式刷新生成的二进制文件。

要找出失败的空中闪光,我建议联系支持人员

于 2017-06-22T15:46:22.397 回答