Argon 2.3.0 local flash fails, but cloud flash works

I’m having trouble flashing locally, but I am able to cloud flash the project. The error is
Last page at 0x080a430f is not writeable (full output below), but I’m not sure what I need to do to tell VS Code how to deploy properly. Given that VS Code cloud flash works and my project then runs correctly I believe it is not code related. Thankfully not a huge issue, but I’d like to get it sorted out as I sometimes want to develop offline.

Argon with 2.3.0, error happens with or without a battery connected.

Executing task: make -f ‘C:\Users{username-redacted}.particle\toolchains\buildscripts\1.10.0\Makefile’ flash-user -s <

:::: PUTTING DEVICE INTO DFU MODE

Done.

:::: FLASHING APPLICATION

text data bss dec hex filename
16580 588 1492 18660 48e4 d:/{projectfolder-redacted}/target/2.3.0/photon/tempmon.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:d00c
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 = 17168
Last page at 0x080a430f is not writeable
make[2]: *** […/…/…/build/module.mk:126: program-dfu] Error 74
make[1]: *** […/build/recurse.mk:12: modules/photon/user-part] Error 2
make: *** [C:\Users{username-redacted}.particle\toolchains\buildscripts\1.10.0\Makefile:86: flash-user] Error 2
The terminal process “C:\Users{username-redacted}.particle\toolchains\buildtools\1.1.1\bin\bash.exe ‘-c’, ‘make -f ‘C:\Users{username-redacted}.particle\toolchains\buildscripts\1.10.0\Makefile’ flash-user -s’” terminated with exit code: 2.

The photon part in the path would make me wonder.

Have you actually built for Argon?

1 Like

What ScruffR said. You need to Particle: Configure Project for Device.

Also it’s attempting to flash to address 0x080a0000 which is the user firmware address for the Photon, not the Argon.

@ScruffR and @rickkas7 thanks, I has been years since I used these and had forgotten that step.

1 Like

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