Difference between revisions of "Mansos:nrf"

From DiLab
Jump to: navigation, search
(New page: = MansOS target: '''nrf''' = Development is going on to support the following Nordic Semiconductors devices: * nRF24LE1 * nRF24LU1+ We use the [http://sdcc.sourceforge.net/ SDCC] compil...)
 
(Dependencies)
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
In MansOS, "'''nrf'''" is a platform supporting hardware based on certain Nordic Semiconductors devices:
= MansOS target: '''nrf''' =

Development is going on to support the following Nordic Semiconductors devices:


* nRF24LE1
* nRF24LE1
* nRF24LU1+
* nRF24LU1+


'''Warning:''' nrf platform is under development and may not be fully functional!
We use the [http://sdcc.sourceforge.net/ SDCC] compiler for this platform.

===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 [http://sdcc.sourceforge.net/ '''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 [http://sdcc.sourceforge.net/ 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

[http://sourceforge.net/projects/sdcc/files/ Binary SDCC packages] are also available for Linux, Mac OSX and Windows.

Latest revision as of 16:57, 14 November 2011

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

  • nRF24LE1
  • nRF24LU1+

Warning: nrf platform is under development and may not be fully functional!

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

Binary SDCC packages are also available for Linux, Mac OSX and Windows.