I have a few of the old Spark Core devices that I need to be able to compile and flash without internet. I have downloaded and installed the VS Code workbench extensions and can’t figure out how to get this working.
I have installed and selected deviceOS@1.4.4 which seems to be the last version that supports the core, but I am unable to select “core” as the platform, so I’ve selected “photon”.
Using the “Particle: Flash application (local)” command gives me the following results:
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 = 0x080a0000, size = 5632 Last page at 0x080a15ff is not writeable make: *** [../../../build/module.mk:129: program-dfu] Error 74 make: *** [../build/recurse.mk:12: modules/photon/user-part] Error 2 make: *** [C:\Users\darri\.particle\toolchains\buildscripts\1.9.2\Makefile:72: flash-user] Error 2 The terminal process terminated with exit code: 2
I have also tried using the cli to flash the binary directly but I had to use a –force switch and then the device ended up stuck in DFU mode. I figure this was from compiling a binary that is targeting the photon, I had to factory reset to regain use of the device.
Is there a custom toolchain I can install with support for the core?