User Tools

Site Tools


projects:crazyradio:dev_env

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
projects:crazyradio:dev_env [2015-07-15 16:31]
127.0.0.1 external edit
projects:crazyradio:dev_env [2020-05-12 14:12] (current)
kimberly
Line 1: Line 1:
-====== Crazyradio development environment ======+<WRAP center round important 60%> 
 +This page has deprecated and moved to the new documentation framework of the main Bitcraze website. Please go to [[https://www.bitcraze.io/documentation/system/]] 
 +</WRAP>
  
-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. +====== Crazyradio development environment ======
- +
-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/files/sdcc-linux-x86/3.2.0/ +The crazyradio dongle is based on a Nordic semiconductor nRF24LU1 chipThis chip contains a 8051-compatible microcontroller and is programmed using the SDCC compilerFor compiling instruction see the project [[https://github.com/bitcraze/crazyradio-firmware#bitcraze-crazyradio-dongle-|readme on github]].
-  * Extract SDCC in your home folder +
-  * The radio can be compiled as follow: +
-<code bash> +
-[crazyradio]$ export SDCC=~/sdcc/bin/sdcc +
-[crazyradio]$ make +
-mkdir -p bin +
-/home/arnaud/sdcc/bin/sdcc -Iinc/ --model-medium -c src/main.c -o bin/main.rel +
-/home/arnaud/sdcc/bin/sdcc -Iinc/ --model-medium -c src/radio.c -o bin/radio.rel +
-/home/arnaud/sdcc/bin/sdcc -Iinc/ --model-medium -c src/usb.c -o bin/usb.rel +
-/home/arnaud/sdcc/bin/sdcc -Iinc/ --model-medium -c src/usbDescriptor.c -o bin/usbDescriptor.rel +
-/home/arnaud/sdcc/bin/sdcc -Iinc/ --model-medium -c src/led.c -o bin/led.rel +
-/home/arnaud/sdcc/bin/sdcc --xram-loc 0x8000 --xram-size 2048 --model-medium bin/main.rel bin/radio.rel bin/usb.rel bin/usbDescriptor.rel bin/led.rel -o bin/cradio.ihx +
-objcopy -I ihex bin/cradio.ihx -O binary bin/cradio.bin +
-[crazyradio]$  +
-</code> +
-  * //cradio.ihx// can be programmed with the USB bootloader. //cradio.bin// is to be used with the SPI flasher //nrfprog//+
  
 ===== Documentation ===== ===== Documentation =====
projects/crazyradio/dev_env.1436970671.txt.gz · Last modified: 2016-09-22 09:54 (external edit)