Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Windows directions for install+flashing kickstarter edition of sparkcore.

Spark Core Agogo

Some directions for install+flashing kickstarter edition of spark core. For windows.

THIS IS A DRAFT

Steps may be missing, and the instructions are not normalized or nessisarily laied out in a sane order.

Overview

Note, this tutorial is for those running on windows who are unable to complete the offical update one due to some minor snags regarding drivers and installing tools like NodeJS to get up and running.

  • Get Chocolatey
    • Get node & npm
    • Get & git.
      • use those to get the Particle cli
  • Get DFU_Util to allow flashing
  • Get drivers for flashing the device
  • apply Spark Core firmware updates
  • Get drivers for running the device
  • Configure the device to work with your WiFi
  • blink an LED

Install chocolatey

Chocolatey is a package manger for windows. It makes it easier to get other programs like node.js & npm.

Per their website: https://chocolatey.org/ you can install chocolaty by running this command in the command line.

@powershell -NoProfile -ExecutionPolicy Bypass -Command "iex ((new-object net.webclient).DownloadString('https://chocolatey.org/install.ps1'))" && SET PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin

You'll need to run the command line as an administrator:

cmd-how-to-launch

cmd-launch-as-admin

and here's what it looks like when you put the command in (tip: right click to paste) and hit enter:

chocolatey-install-1-of-2

chocolatey-install-2-of-2

Now close and reopen any cmd windows so they can get access to the new path settings.

To verify the install, run the command

choco

On my machine I see "Chocolatey v0.9.9.12" - you may have a different version.

chocolatey-install-success

Use chocolatey to install node.js / npm (& git)

Using the search: https://chocolatey.org/packages?q=nodejs to find the latest package of node.js. In this case, i'm using https://chocolatey.org/packages/nodejs.install

If you haven't installed it, with a (fresh) admin command line up run this:

choco install nodejs.install

node-install

It should look like this

node-install-success

And then install git so that npm depends on to get the files for the particle tool.

choco install git.install

git-install-success

Use npm to install particle command line tool

Now that you have NPM, we can follow deep update process

This requires installing the particle command line utility.W

Which basically involves running this command:

npm install -g particle-cli

Install the dfu-util to let you send the upgrade over usb

Now you need to get the Dfu utility & the DFU usb driver installed per: https://community.particle.io/t/tutorial-installing-dfu-driver-on-windows-24-feb-2015/3518

Get the dfultil files from http://dfu-util.sourceforge.net/

Specifically from http://dfu-util.sourceforge.net/releases/dfu-util-0.8-binaries/win32-mingw32/ (or whatever the latest version is for windows)

I just put the .exe and the .dll file along side particle (so it has path)

You can ask where particle is installed by runing the command in

where particle

For me it was in %appdata%\npm\particle\

Install the DFU driver for the sparkcore

You can use Zadig for windows to install the DFU driver

These are the settings you want to use:

zadig-settings

Install the firmware using the particle command line

Set the sparkcore into DFU mode

https://docs.particle.io/guide/getting-started/modes/core/#dfu-mode-device-firmware-upgrade-

<insert vine?>

Then

particle flash --usb deep_update_2014_06

it should work, "flash success!"

deep-update-flash

if you see this:

flash-unable-to-see-dfu-mode

then you either don't have the dfu driver, or your sparkcore isn't in the right mode (see)

you may need to do a factory reset https://docs.particle.io/support/troubleshooting-support/core/#full-firmware-upgrade

you need to flash these on:

particle flash --factory tinker

particle flash --usb cc3000

particle flash --usb tinker

one at a time - setting it to dfu mode as nessisary

now you should be able to use the tinker app to access your device.

you can get that here: https://docs.particle.io/guide/getting-started/tinker/core/

extra steps if it can't connect

https://community.particle.io/t/installing-the-usb-driver-on-windows-serial-debugging/882

you will need to get the offical sparkcore driver. https://s3.amazonaws.com/spark-website/Spark.zip

And install it:

install-driver

in your device manager, it should show sparkcore as a com port

sparkcore-driver-device-manager

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment