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 16:02] arnaud [USB bootloader (command line instructions)] |
projects:crazyradio:programming [2013-05-14 09:18] 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 launching | + | After running |
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 firmware/bin/cradio.bin... | ||
+ | Reading 5771 bytes from the flash... | ||
+ | Verification succeded! | ||
</ | </ |