This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | Next revision Both sides next revision | ||
projects:crazyradio:dev_env [2015-07-15 16:31] 127.0.0.1 external edit |
projects:crazyradio:dev_env [2016-09-22 09:54] arnaud |
||
---|---|---|---|
Line 1: | Line 1: | ||
====== Crazyradio development environment ====== | ====== Crazyradio development environment ====== | ||
- | The crazyradio dongle is based on a Nordic semiconductor nRF24LU1 chip. This chip contains a 8051-compatible microcontroller and is programmed using the SDCC compiler. | + | The crazyradio dongle is based on a Nordic semiconductor nRF24LU1 chip. This chip contains a 8051-compatible microcontroller and is programmed using the SDCC compiler. |
- | + | ||
- | As of version 0.31 the dongle program must be compiled with an SDCC version < 3.0 because of some register declaration are broken with SDCC 3. | + | |
- | + | ||
- | From version 0.4 the dongle firmware has been ported to SDCC 3.0. So it can be compiled out of the box without the need of an old SDCC version. | + | |
- | + | ||
- | ===== Compilation ===== | + | |
- | + | ||
- | These instruction works on a recent (as of 2012-02) linux distribution: | + | |
- | + | ||
- | * Download SDCC 3.2 http://sourceforge.net/projects/sdcc/ | + | |
- | * Extract SDCC in your home folder | + | |
- | * The radio can be compiled as follow: | + | |
- | <code bash> | + | |
- | [crazyradio]$ export SDCC=~/ | + | |
- | [crazyradio]$ make | + | |
- | mkdir -p bin | + | |
- | / | + | |
- | / | + | |
- | / | + | |
- | / | + | |
- | / | + | |
- | / | + | |
- | objcopy -I ihex bin/ | + | |
- | [crazyradio]$ | + | |
- | </ | + | |
- | * //cradio.ihx// can be programmed with the USB bootloader. // | + | |
===== Documentation ===== | ===== Documentation ===== |