mirror of
https://github.com/hak5darren/wifipineapple-wiki.git
synced 2025-10-29 16:59:29 +00:00
Documentation Updates
This commit is contained in:
parent
6056727ac1
commit
13e21c3d3b
@ -7,7 +7,7 @@
|
||||
3. A Soldering iron
|
||||
4. A programmer (an arduino is fine)
|
||||
5. Wires
|
||||
6. (optionally) a USB to serial converter.
|
||||
6. (optionally, but highly recommended) a USB to serial converter.
|
||||
|
||||

|
||||
|
||||
@ -34,10 +34,22 @@ The easiest way to program the HDK is via an Arduino. This allows you to use the
|
||||
|
||||

|
||||
|
||||
### Example program
|
||||
### Programming the HDK
|
||||
|
||||

|
||||
|
||||
### Testing.
|
||||
|
||||
This program will echo out anything recieved on the SPI interface (from the pineapple) on the serial port (using the serial to USB adapter). This is by no means the only way to test everything is working, but serial is really helpful for debugging.
|
||||
|
||||
You can obtain the original of this code from here: https://gist.github.com/chrismeyersfsu/3317769
|
||||
|
||||
The program will need to be uploaded to the HDK. Once complete, run the command:
|
||||
|
||||
`echo "Testing 1 2 3" >/dev/spidev1.0`
|
||||
|
||||
On the serial console of the HDK, the words "Testing 1 2 3" should appear.
|
||||
|
||||
```C
|
||||
// Written by Nick Gammon
|
||||
// February 2011
|
||||
@ -104,13 +116,6 @@ void loop (void)
|
||||
} // end of loop
|
||||
```
|
||||
|
||||
### Programming the HDK
|
||||
|
||||

|
||||
|
||||
### Testing
|
||||
|
||||
|
||||
|
||||
## Additional Information + Useful Links
|
||||
|
||||
|
||||
@ -0,0 +1,26 @@
|
||||
# Programming the HDK
|
||||
|
||||
## Via the ICSP connectors
|
||||
|
||||
Plug the Connections in to the header as follows:
|
||||
|
||||
| Port | Connection | Port | Connection |
|
||||
|:----:|:----------:|:----:|:----------:|
|
||||
| 1 | MISO | 4 | VCC (5V) |
|
||||
| 2 | SCK | 5 | MOSI |
|
||||
| 3 | RESET | 6 | GND |
|
||||
|
||||
|
||||
|
||||
### Via The Arduino Software
|
||||
|
||||
|
||||
|
||||
|
||||
### Via AVRDude
|
||||
|
||||
|
||||
|
||||
## Via the SPI Interface on the WiFi Pineapple
|
||||
|
||||
The current version of AVRDude that comes from the pineapple repositories (version 5.8-1) does not support programming directly from the WiFi Pineapple.
|
||||
Loading…
x
Reference in New Issue
Block a user