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 [2012-09-17 17:05] arnaud [USB bootloader (command line instructions)] |
projects:crazyradio:programming [2013-05-14 09:19] arnaud [USB bootloader (command line instructions)] |
||
---|---|---|---|
Line 1: | Line 1: | ||
====== Radio programming ====== | ====== Radio programming ====== | ||
- | 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 | + | 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 will have to be reprogrammed via spi**). Unless you have equipment |
- | + | ||
- | In Linux it might be required to launch the commands accessing the USB port as root (ie. with '' | + | |
+ | In Linux it might be required to launch the commands accessing the USB port as root (ie. with '' | ||
===== USB bootloader (command line instructions) ===== | ===== USB bootloader (command line instructions) ===== | ||
- | First Crazyradio has to be reboted | + | 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/to/cradio.bin | + | > 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! | ||
</ | </ |