This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
projects:crazyradio:programming [2012-09-17 14:53] arnaud created - Initial edit ... |
projects:crazyradio:programming [2020-05-12 14:13] (current) kimberly |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Radio programming ====== | + | <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:// | ||
+ | </ | ||
- | The Radio dongle can be programmed either via USB bootloader or via SPI. The USB bootloader does not require any hardware but is **not** currently (as of 2012-09) full-proff (if the flash procedure does not complete well the dongle will have to be reprogrammed via spi). It is adviced to program only released firmware via USB. | ||
- | In Linux it might be required | + | ====== Crazyradio firmware upgrade ====== |
+ | |||
+ | **Please note: The current implementation of the bootloader/ | ||
+ | |||
+ | **Do not do development and flash you own firmware on the dongle without having access | ||
+ | |||
+ | The Crazyradio contains a USB bootloader that gives the possibility to upgrade the firmware without any external hardware | ||
===== USB bootloader (command line instructions) ===== | ===== USB bootloader (command line instructions) ===== | ||
- | First Crazyradio has to be reboted | + | Please note that you might have to exchange //python// with //python2// if you distro uses python3. |
+ | |||
+ | First Crazyradio has to be rebooted | ||
< | < | ||
- | cd pc_util/crazyradio/ | + | > cd crazyradio-firmware |
- | python launchBootloader.py | + | > python |
+ | Launch bootloader . | ||
+ | Bootloader started | ||
</ | </ | ||
- | After launching | + | After running |
+ | |||
+ | To flash the firmware use the nrfbootload.py script: | ||
+ | |||
+ | < | ||
+ | > cd crazyradio-firmware | ||
+ | > python usbtools/ | ||
+ | Found nRF24LU1 bootloader version 18.0 | ||
+ | Flashing: | ||
+ | Flashing 5810 bytes... | ||
+ | Flashing done! | ||
+ | Verifying: | ||
+ | Reading cradio-pa-0.53.bin... | ||
+ | Reading 5810 bytes from the flash... | ||
+ | Verification succeded! | ||
+ | </ | ||
+ | |||
+ | ===== Step-by-step upgrade using the Bitcraze VM ===== | ||
+ | Below is a short guide with step-by-step instructions on how to upgrade the Crazyradio with the latest firmware using the [[projects: | ||
+ | |||
+ | * Start up the VM and download the latest firmware from [[https:// | ||
+ | * Open up a terminal | ||
+ | * Insert the Crazyradio and pass it to the VM | ||
+ | * Run the following commands: | ||
+ | * < | ||
+ | > cd ~/ | ||
+ | > python usbtools/ | ||
+ | Launch bootloader . | ||
+ | Bootloader started | ||
+ | </ | ||
+ | * Once the bootloader is started the Crazyradio dongle will dissapear ad a new device named **Nordic Semiconductor nRF24LU1P-F32 BOOT LDR** will appear. If you do not have a filter set up for the bootloader in the VM then script will say that it failed. This is ok. Pass the bootloader device into the VM and continue. | ||
+ | * Run the following command: | ||
+ | * < | ||
+ | > python usbtools/ | ||
+ | Found nRF24LU1 bootloader version 18.0 | ||
+ | Flashing: | ||
+ | Flashing 5810 bytes... | ||
+ | Flashing done! | ||
+ | Verifying: | ||
+ | Reading cradio-pa-0.53.bin... | ||
+ | Reading 5810 bytes from the flash... | ||
+ | Verification succeded! | ||
+ | </ | ||
+ | * If you see **Verification succeded** then unplug the dongle and re-insert it again. If you do not see this message, but instead some error. Do **NOT** unplug the dongle, try to reflash the firmware instead. | ||
+ | |||
+ | ===== Check your firmware version ===== | ||
+ | Run the following command: | ||
+ | < | ||
+ | > lsusb -d 1915:7777 -v | grep bcdDevice | ||
+ | </ | ||
+ | This should return the version (e.g. "0.52"). |