This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
projects:crazyradio:programming [2013-05-07 16:04] skube [Radio programming] |
projects:crazyradio:programming [2013-05-19 17:31] macke |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== | + | ====== |
- | 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-proof (if the flash procedure does not complete well the dongle | + | **Please note: The current implementation |
- | In Linux it might be required | + | **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 |
- | Launching | + | Launch |
- | Bootloader | + | Bootloader |
- | > | + | |
</ | </ | ||
- | After running this tool the Crazyradio dongle should have disapeared | + | After running this tool the Crazyradio dongle should have disappeared |
To flash the firmware use the nrfbootload.py script: | To flash the firmware use the nrfbootload.py script: | ||
< | < | ||
- | > python nrfbootload.py flash /path/ | + | > cd crazyradio-firmware |
+ | > python | ||
+ | Found nRF24LU1 bootloader version 18.0 | ||
+ | Flashing: | ||
+ | Flashing 5771 bytes... | ||
+ | Flashing done! | ||
+ | Verifying: | ||
+ | Reading cradio-0.51.bin... | ||
+ | Reading 5771 bytes from the flash... | ||
+ | Verification succeded! | ||
+ | </code> | ||
+ | |||
+ | ===== 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 ~/projects/ | ||
+ | > python usbtools/ | ||
+ | Launch bootloader . | ||
+ | Bootloader started | ||
+ | </ | ||
+ | * Once the bootloader is started the Crazyradio dongle will dissapear ad a new device named **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 5771 bytes... | ||
+ | Flashing done! | ||
+ | Verifying: | ||
+ | Reading cradio-0.51.bin... | ||
+ | Reading 5771 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. |