This is a connector that plugs a Raspberry Pi to a board, and can be used to:
- Have a Raspberry Pi programming multiple microcontroller types in the board (AVR, ARM, etc.)
- Debug protocols in the board using the Raspberry Pi (UART, SPI, I²C, SWD)
The connector contains:
- A female header to connect to the Raspberry Pi GPIOs
- A male header to connect the Raspberry Pi to the board using a flat cable.
- A male and female header to help debug any problems in communication (for example, using a digital analyzer)
- A button to turn on/off power from the Pi to the board.
- LEDs indicating power and activity in the protocols.
Top side
Pin | Type | Classification | Pin in RPI | # pin in RPI |
---|---|---|---|---|
1 | MOSI | SPI | MOSI (GPIO10) | 19 |
2 | RX | Serial | RDX | 10 |
3 | RST | SPI | GPIO1 | 28 |
4 | SCK | SPI | SCK (GPIO11) | 23 |
5 | MISO | SPI | MISO (GPIO9) | 21 |
Bottom side (notch)
Pin | Type | Classification | Pin in RPI | # pin in RPI |
---|---|---|---|---|
6, 7, 8 | GND | Power | GND | 6, 9, 14, 25, 30, 34, 39 |
9 | TX | Serial | TDX | 8 |
10 | VCC | Power | 5V or 3V3 | 2, 4 |
A few sample project skeletons are provided in the package.
The Makefile needs to be configured to choose the correct MCU, speed, etc.. The following make
commands are available:
make
: compile source codemake size
: print size of executable generated for the MCUmake test-connection
: test if communication with the MCU is workingmake fuse
: program fuses (AVR only)make upload
: upload executable to the MCUmake talk
: opens a serial connection from the computer to the MCUmake clean
: delete the intermediate files generated
A program called reset
is also made available that simply resets the MCU.