This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
projects:crazyradio:spi_programming [2013-05-27 20:18] arnaud [Usage] |
projects:crazyradio:spi_programming [2020-05-12 14:14] (current) kimberly |
||
---|---|---|---|
Line 1: | Line 1: | ||
+ | <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:// | ||
+ | </ | ||
+ | |||
====== Crazyradio SPI programming ====== | ====== Crazyradio SPI programming ====== | ||
Line 63: | Line 67: | ||
</ | </ | ||
+ | ===== Using BusPirate ===== | ||
+ | <WRAP center round alert> | ||
+ | **WARNING** | ||
+ | This script will mass erase the nRF24 chip so it will erase the bootloader. Make sure you have a backup of the bootloader before using this script. | ||
+ | Unless you are absolutely sure of what you are doing, **do not use this script**. | ||
+ | </ | ||
+ | |||
+ | |||
+ | |||
+ | It's possible to re-program the Crazyradio using a BusPirate and [[https:// | ||
+ | |||
+ | Couple of caveats: | ||
+ | * Tested only on OS X. Should work on Linux without modification, | ||
+ | * It's very slow (~5 minutes to flash the entire .bin file). I deemed this acceptable as this script is for emergency recovery only. I can make it faster if necessary. | ||
+ | |||
+ | Prerequisites: | ||
+ | * A Bus Pirate (you should know where to get one of these, if you don't already have one). | ||
+ | * perl and either Device:: | ||
+ | * Some jumper wires to connect the SPI lines on the radio to the ones on the Bus Pirate. | ||
+ | |||
+ | Instructions: | ||
+ | - Solder a 2x5 pin header onto the programming port of the crazyradio. There' | ||
+ | - Connect the crazyradio to your Bus Pirate using the table below (also noted in the script and readme on git) < | ||
+ | Bus Pirate | ||
+ | =========================== | ||
+ | MOSI () -> MOSI (6) | ||
+ | MISO () -> MISO (8) | ||
+ | SCK () -> SCK (4) | ||
+ | CS | ||
+ | AUX () -> PROG (2) | ||
+ | 3V3 () -> 3V3 (5) | ||
+ | GND () -> GND (9) | ||
+ | </ | ||
+ | - Run the script: perl ./ | ||
+ | - Wait till you see lots of hex addresses crawling up your screen. Your device is programming. | ||
+ | - Go make a sandwich or have a beer (or both). |