# How do I build manually on OS X? \[SOLVED\]

**URL:** <https://community.particle.io/t/how-do-i-build-manually-on-os-x-solved/3077>\
**Category:** Firmware\
**Created:** [February 24, 2014, 4:32am UTC](https://community.particle.io/t/how-do-i-build-manually-on-os-x-solved/3077 "2014-02-24T04:32:24Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![soulslicer](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/soulslicer/32/736_2.png) [@soulslicer](https://community.particle.io/u/soulslicer)\
**Post date:** [February 24, 2014, 4:32am UTC](https://community.particle.io/t/how-do-i-build-manually-on-os-x-solved/3077/1 "2014-02-24T04:32:24Z")

</div>

Good Day,

My name is Raaj, and I’ve just started using the [spark.io](http://spark.io) core. I was hoping there might be instructions online that show one how to flash and program the core via USB rather than over the cloud.

Basically, messing with the STM libraries, building a binary and uploading it. I’ve worked with the STM32F4 before. Can I know if there is a nice instruction list out there?

---

<div class="post-metadata">

**Author:** ![RWB](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/rwb/32/22599_2.png) [@RWB](https://community.particle.io/u/RWB)\
**Post date:** [February 24, 2014, 4:34am UTC](https://community.particle.io/t/how-do-i-build-manually-on-os-x-solved/3077/2 "2014-02-24T04:34:52Z")

</div>

This video worked for me. Its not very fun but it works 😄

> **[How to video for compiling locally in Windows](https://community.particle.io/t/how-to-video-for-compiling-locally-in-windows/2457)**
>
> Here is a video link i made showing all the steps needed to compile locally on windows. The IDE is Netbeans v7.4. You can compile and download to the spark core all within the IDE. You dont need the command line for anything anymore. The IDE even...

---

<div class="post-metadata">

**Author:** ![soulslicer](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/soulslicer/32/736_2.png) [@soulslicer](https://community.particle.io/u/soulslicer)\
**Post date:** [February 24, 2014, 4:35am UTC](https://community.particle.io/t/how-do-i-build-manually-on-os-x-solved/3077/3 "2014-02-24T04:35:27Z")

</div>

I need one for mac. Your instructions are for windows ☹

---

<div class="post-metadata">

**Author:** ![RWB](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/rwb/32/22599_2.png) [@RWB](https://community.particle.io/u/RWB)\
**Post date:** [February 24, 2014, 4:36am UTC](https://community.particle.io/t/how-do-i-build-manually-on-os-x-solved/3077/4 "2014-02-24T04:36:46Z")

</div>

Better install bootcamp 😃

Or wait for somebody else who knows how to do it on Mac.

---

<div class="post-metadata">

**Author:** ![timb](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/timb/32/1913_2.png) [@timb](https://community.particle.io/u/timb)\
**Post date:** [February 24, 2014, 4:52am UTC](https://community.particle.io/t/how-do-i-build-manually-on-os-x-solved/3077/5 "2014-02-24T04:52:49Z")

</div>

It’s much easier to do on the Mac!

Simply follow these instructions: [https://github.com/spark/core-firmware](https://github.com/spark/core-firmware)

When you go to install the GCC ARM Package, [you’ll specifically want this one.](https://launchpad.net/gcc-arm-embedded/4.7/4.7-2013-q3-update/+download/gcc-arm-none-eabi-4_7-2013q3-20130916-mac.tar.bz2) Then [follow this GIST](https://gist.github.com/joegoggins/7763637) to get it installed. You’ve already got _make_ as part of OS X (assuming you’ve got Xcode installed, if not it’s available on the App Store for free). Then you’ll want to install [Homebrew](http://brew.sh/) and use it to install _dfu-util_. After that just clone the three repositories outlined in the above instructions and you should be set!

Let me know if you need any help with it. 😄

---

<div class="post-metadata">

**Author:** ![soulslicer](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/soulslicer/32/736_2.png) [@soulslicer](https://community.particle.io/u/soulslicer)\
**Post date:** [February 24, 2014, 4:57am UTC](https://community.particle.io/t/how-do-i-build-manually-on-os-x-solved/3077/6 "2014-02-24T04:57:57Z")

</div>

Thanks. I've been following the instructions and am stuck at this part:

> Make sure you have downloaded and installed all the required dependencies as mentioned previously.37

> Open up a terminal window, navigate to the build folder under core-firmware and type:

> make clean dependents all

I tried doing that and the build died here:

> make: \*\*\* No rule to make target `dependents'. Stop.

---

<div class="post-metadata">

**Author:** ![timb](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/timb/32/1913_2.png) [@timb](https://community.particle.io/u/timb)\
**Post date:** [February 24, 2014, 5:02am UTC](https://community.particle.io/t/how-do-i-build-manually-on-os-x-solved/3077/7 "2014-02-24T05:02:02Z")

</div>

I’m not sure where you see that at?

Look Here: [https://github.com/spark/core-firmware#how-do-we-build-these-repositories](https://github.com/spark/core-firmware#how-do-we-build-these-repositories)

Simply get into `core-firmware/build` and type `make`.

---

<div class="post-metadata">

**Author:** ![mikepa](https://avatars.discourse-cdn.com/v4/letter/m/67e7ee/32.png) [@mikepa](https://community.particle.io/u/mikepa)\
**Post date:** [February 24, 2014, 5:49am UTC](https://community.particle.io/t/how-do-i-build-manually-on-os-x-solved/3077/8 "2014-02-24T05:49:51Z")

</div>

@timb i was following the conversation on arm-c development [here](https://community.spark.io/t/arm-c-development-environment-recommendations/3033/8 "here") which was PC focused. i have managed to copy the master repos over and flash the spark fine. but taking it further eg pulling branch repos from the Elite and building those / writing my own then seems i am a piece of the jigsaw puzzle missing. i see mention of Eclipse / CodeSourcery etc elsewhere - assume this is where they would come into the workflow ? EDIT - if not clear, trying to do this under OSX Mavericks.

---

<div class="post-metadata">

**Author:** ![Raldus](https://avatars.discourse-cdn.com/v4/letter/r/9d8465/32.png) [@Raldus](https://community.particle.io/u/Raldus)\
**Post date:** [February 24, 2014, 6:10am UTC](https://community.particle.io/t/how-do-i-build-manually-on-os-x-solved/3077/9 "2014-02-24T06:10:06Z")

</div>

> [@timb](#):
>
> I'm not sure where you see that at?

Because it's still incorrectly listed here: [The Spark Core Firmware - Getting Started - Particle](https://community.spark.io/t/the-spark-core-firmware/532)

It really should be shortened to:

```
make clean all

```

Or maybe:

```
make clean
make

```

(Given how quickly the firmware builds, there's really no reason not to do a clean, as that prevents a large class of problems from popping up and wasting peoples' time.)

Edit: Note that the article is **PINNED** , under Getting Started.

---

<div class="post-metadata">

**Author:** ![soulslicer](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/soulslicer/32/736_2.png) [@soulslicer](https://community.particle.io/u/soulslicer)\
**Post date:** [February 24, 2014, 6:16am UTC](https://community.particle.io/t/how-do-i-build-manually-on-os-x-solved/3077/10 "2014-02-24T06:16:46Z")

</div>

Thanks! managed to get it to work 😄

What an amazing first experience. Got it to flash locally via USB under 15 mins and got code running and writing stuff to a server. People on the forum respond so fast too so i managed to get it working. What an amazing easy to use platform!

---

<div class="post-metadata">

**Author:** ![Dave](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/dave/32/181_2.png) [@Dave](https://community.particle.io/u/Dave)\
**Post date:** [February 24, 2014, 8:51am UTC](https://community.particle.io/t/how-do-i-build-manually-on-os-x-solved/3077/11 "2014-02-24T08:51:02Z")

</div>

Ah, thanks, I edited that old getting started post to match the current “make clean all”

---

<div class="post-metadata">

**Author:** ![Raldus](https://avatars.discourse-cdn.com/v4/letter/r/9d8465/32.png) [@Raldus](https://community.particle.io/u/Raldus)\
**Post date:** [February 24, 2014, 10:14am UTC](https://community.particle.io/t/how-do-i-build-manually-on-os-x-solved/3077/12 "2014-02-24T10:14:57Z")

</div>

Thanks. You might also want to change the default target from `all` to something like:

```
cleanbuild: clean all

```
