Unable to complete a local compile

I received a new Tracker Edge today and am trying to perform a local build of the firmware. I’ve tried DeviceOS@3.0.0 and DeviceOS@3.1.0. Each fails with the following:
:::: COMPILING APPLICATION & DEVICE OS

/cygdrive/c/Users/norma/.particle/toolchains/deviceOS/3.0.0/modules/electron/system-part1/makefile /cygdrive/c/Users/norma/.particle/toolchains/deviceOS/3.0.0/modules/electron/system-part2/makefile /cygdrive/c/Users/norma/.particle/toolchains/deviceOS/3.0.0/modules/electron/system-part3/makefile /cygdrive/c/Users/norma/.particle/toolchains/deviceOS/3.0.0/modules/electron/user-part/makefile
text data bss dec hex filename
87124 888 2712 90724 16264 …/…/…/build/target/system-part1/platform-10-m/system-part1.elf
text data bss dec hex filename
114176 184 500 114860 1c0ac …/…/…/build/target/system-part2/platform-10-m/system-part2.elf
text data bss dec hex filename
120804 2382 4404 127590 1f266 …/…/…/build/target/system-part3/platform-10-m/system-part3.elf
In file included from c:/Dev_Area/FT/Particle/NewEagle/targets/tracker/tracker-edge//src/gnss_led.cpp:19:
c:\dev_area\ft\particle\neweagle\targets\tracker\tracker-edge\src\tracker_config.h:24:2: error: #error “Platform not supported”
24 | #error “Platform not supported”
| ^~~~~
c:/Dev_Area/FT/Particle/NewEagle/targets/tracker/tracker-edge//src/gnss_led.cpp: In function ‘void GnssLedTimer()’:

Please advise.

I figured it out - I didn’t perform the Particle: Configure Workspace for Device step. Once I did that everything worked.

I guess I jumped the gun - It compiled successfully but the flash downloads once and then fails:
:::: FLASHING APPLICATION & DEVICE OS

/cygdrive/c/Users/norma/.particle/toolchains/deviceOS/3.1.0/modules/tracker/system-part1/makefile /cygdrive/c/Users/norma/.particle/toolchains/deviceOS/3.1.0/modules/tracker/user-part/makefile
text data bss dec hex filename
503204 3030 62368 568602 8ad1a …/…/…/build/target/system-part1/platform-26-m/system-part1.elf
dfu-suffix (dfu-util) 0.9

Copyright 2011-2012 Stefan Schmidt, 2013-2014 Tormod Volden
This program is Free Software and has ABSOLUTELY NO WARRANTY
Please report bugs to http://sourceforge.net/p/dfu-util/tickets/

Suffix successfully added to file
Serial device PARTICLE_SERIAL_DEV : not available
Flashing using 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:d01a
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 = 0x00030000, size = 506238
Download [=========================] 100% 506238 bytes
Download done.
File downloaded successfully
Creating c:/Dev_Area/FT/Particle/NewEagle/targets/tracker/tracker-edge/target/3.1.0/tracker/platform_user_ram.ld …
Creating c:/Dev_Area/FT/Particle/NewEagle/targets/tracker/tracker-edge/target/3.1.0/tracker/platform_user_ram.ld …
text data bss dec hex filename
106904 744 1340 108988 1a9bc c:/Dev_Area/FT/Particle/NewEagle/targets/tracker/tracker-edge/target/3.1.0/tracker/tracker-edge.elf
dfu-suffix (dfu-util) 0.9

Copyright 2011-2012 Stefan Schmidt, 2013-2014 Tormod Volden
This program is Free Software and has ABSOLUTELY NO WARRANTY
Please report bugs to http://sourceforge.net/p/dfu-util/tickets/

Suffix successfully added to file
Serial device PARTICLE_SERIAL_DEV : not available
Flashing using 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/

No DFU capable USB device available
make[2]: *** […/…/…/build/module.mk:126: program-dfu] Error 74
make[1]: *** [makefile:86: /cygdrive/c/Users/norma/.particle/toolchains/deviceOS/3.1.0/modules/tracker/user-part/makefile] Error 2
make: *** [C:\Users\norma.particle\toolchains\buildscripts\1.10.0\Makefile:92: flash-all] Error 2
The terminal process “C:\Users\norma.particle\toolchains\buildtools\1.1.1\bin\bash.exe ‘-c’, ‘make -f ‘C:\Users\norma.particle\toolchains\buildscripts\1.10.0\Makefile’ flash-all -s’” terminated with exit code: 2.

Press any key to close the terminal.

I was able to overcome the compile issue by setting the setting the target device and target platform which results in changes to the settings.json file:
“particle.firmwareVersion”: “3.1.0”,
“particle.targetDevice”: “Tracker-6W5VTK”,
“particle.targetPlatform”: “tracker”

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.