Nordic NRF51 & NRF52 FruityMesh development setup for MAC OS X via Ansible
C++ Shell
Latest commit 76bf35e Oct 21, 2015 @ihassin Update readme.md
Permalink
Failed to load latest commit information.
infra Initial Oct 21, 2015
.gitignore Initial Oct 21, 2015
code_of_conduct.md Initial Oct 21, 2015
readme.md Update readme.md Oct 21, 2015

readme.md

Introduction

This repo sets up NRF51/NRF52 and FruityMesh development for your Mac.

Please see this repo if you want to develop from within an Ubuntu VM.

General steps

Simply put, it has pre-downloaded installation files for

  • Mac OS X gcc cross-toolchain for Arm
  • nrf51 and nrf52 SDK distributions
  • JLink flash utility

It then uses Ansible to place the files in the correct places to enable you to use your Mac for NRF51 and FruityMesh development.

Pre-requisites

  • You have sudo on your mac and you know its password

Read before you leap

Listen, this Ansible will run locally, on your beloved system. It does not set up a VM or anything.

I, of course, think that the operations here are harmless (i.e. the script will extract toolchains and so forth), but please take a look at the Ansible script to make sure you will not regret running it.

If you are unsure, email me and I'll provide psychological support.

Still unsure? Calm your nerves by using a VM from here.

Set up

./go

Test it out

The script installs all NRF related files under /Users//nrf. It installs the cross-compiler in /usr/local.

Once Ansible completes, issue the following commands to see that everything installed correctly:

cd ~/nrf/projects/fruitymesh
make clean all

It should be nice and clean. Your image will be in _build/FruityMesh.hex

Experimenting with FruityMesh

Check out my modified ping example that programs an RGB LED using GPIO pins to show signal strength status of connected devices on the mesh.

Contributing

  1. Fork it (https://github.com/ihassin/fruitymesh-mac-osx/fork)
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

Code of conduct

Our code of conduct is here.

License

MIT