Difference between revisions of "Mansos:nrf"

From DiLab
Jump to: navigation, search
Line 4: Line 4:
* nRF24LU1+
* nRF24LU1+


====Compile example====
===Compile example===
make nrf
make nrf


====Upload example====
===Upload example===


You may upload compiled code using a native Nordic development board.
You may upload compiled code using a native Nordic development board.


====Dependencies====
===Dependencies===
The code is compiled using the open source [http://sdcc.sourceforge.net/ '''SDCC''' - Small Device C Compiler] compiler.
The code is compiled using the open source [http://sdcc.sourceforge.net/ '''SDCC''' - Small Device C Compiler] compiler.



Revision as of 21:46, 1 September 2010

In MansOS, "nrf" is a platform supporting hardware based on certain Nordic Semiconductors devices:

  • nRF24LE1
  • nRF24LU1+

Compile example

make nrf

Upload example

You may upload compiled code using a native Nordic development board.

Dependencies

The code is compiled using the open source SDCC - Small Device C Compiler compiler.

You may run the following to install SDCC in Ubuntu, if the SDCC version in the repository is at least 2.9.7. At the time of this writing it was 2.9.0 for Lenny, which is too low for certain applications.

sudo apt-get install sdcc

Therefore, we recommend that you rather use SDCC version 2.9.7 or higher. This can be done obtaining the compiler source code from SVN and compiling it as shown below. You may have to resolve some dependencies until the configure and make steps run with no errors.

svn co https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc sdcc 
cd sdcc
configure
make 
sudo make install