Firmware question

Hi guys!

I saw the new icon next to the projects on the web IDE, and wanted to give it a try. I downloaded the firmware.bin file, but not sure what should i do with it. (I’m using a mac.)

If i manage to push this firmware to the core, will it do the same job as the web ide’s “Flash” function?

Thanks for your help folks!

Noten

Yup!

You’re referring to the cloud icon beside your app name?

Basically, it compiles the code into a .bin file and downloads it :smiley: You can use the .bin to flash to the core via USB

hi @kennethlimcp!

Thank you!
Is there any tutorial available somewhere how can i flash the .bin file via USB to the spark core from mac?

Noten

Yo @Noten,

there’s currently 2 tools available to flash the .bin file over USB :smile:

  1. DFU-util. You can follow the instructions to install here: https://community.spark.io/t/tutorial-installing-dfu-driver-on-windows/3518

    The command to flash is:

     dfu-util -d 1d50:607f -a 0 -s 0x08005000:leave -D yourfilename.bin
    
  2. Spark-CLI You can follow the instructions to install here: https://github.com/spark/spark-cli#install-advanced

    The command to flash is:

     spark flash --usb yourfilename.bin
    

Actually,Spark-CLI is also using DFU-util to perform the flash over usb but it’s more comprehensive, making it a much better tool. I strongly recommend installing Spark-cli :wink:

Just to enhance your learning, you can use Spark-CLI to compile your firmware via the cloud which will download as a .bin :smiley:

hi @kennethlimcp Thank you!