building RePhone applications on Mac OS X

Yihui Xiong edited this page Jan 28, 2016 · 1 revision

We are able to build RePhone application on Mac OS X using make and gcc-arm-embedded toolchain.

Requirements

  • make

  • python

  • gcc-arm-embedded toolchain

    We can install gcc-arm-embedded toolchain using homebrew. First tap the [ARMmbed brew formulae], then install the toolchain:

    brew tap ARMmbed/homebrew-formulae
    brew install arm-none-eabi-gcc
    

Get project templates

Download projects templates CodeLite_for_RePhone or use git:

git clone https://github.com/Seeed-Studio/CodeLite_for_RePhone.git

Compile

cd {path/to/}CodeLite_for_RePhone
cd project_blink   # or project_button, project_js and etc.
make               # a *.vxp file will be generate

Download

  1. Set RePhone into storage mode by holding RePhone's button about 2 seconds, we'll get a disk (if a disk doesn't appear, try to hold the button about 2 seconds again which switches RePhone mode between storage mode and application running mode).
  2. Put the vxp file into MRE directory
  3. Change the vxp file name of autostart.txt to the new vxp file
  4. Hold the button about 2 seconds to run the new application
Clone this wiki locally
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Press h to open a hovercard with more details.