Skip to content

Instantly share code, notes, and snippets.

@DanNduati
Created March 4, 2022 12:27
Show Gist options
  • Save DanNduati/5c2d30a1c25535f1a5a9028bf2f73d58 to your computer and use it in GitHub Desktop.
Save DanNduati/5c2d30a1c25535f1a5a9028bf2f73d58 to your computer and use it in GitHub Desktop.
Local build using gcc-arm

Local build using gcc-arm

It is possible to build both application firmware and Device OS locally using the gcc-arm toolchain.

Prerequisites

  • gcc-arm toolchain
  • git
  • dfu-util

Building

1. Select a source directory

2. Checkout the source

  • Navigate to the src directory above
  • get the source
git clone https://github.com/particle-iot/device-os.git
cd device-os
git checkout release/stable

For Gen3 devices (Argon, Boron, Xenon)

For Gen3 (mesh) devices, you should checkout either: - A specific release sucj as release/v0.9.0 - The branch mesh-develop The develop and stable branches do not support mesh devices at this time. You must update the submodules after checkout of the device-os tree:

cd device-os
git submodule update --init

Building

cd modules
make all PLATFORM=boron
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment