Differences
This shows you the differences between two versions of the page.
boards:chipkitpi [2015/01/11 01:39] darron [Firmware update] |
boards:chipkitpi [2020/08/05 19:05] |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ==== ChipKIT Pi ==== | ||
- | <wrap right> | ||
- | {{: | ||
- | </ | ||
- | The ChipKITPi is a PIC32, MIPS32 based add-on board for the Raspberry Pi Model B. | ||
- | |||
- | It is designed to be used with the | ||
- | [[: | ||
- | |||
- | === RPi GPIO header (RPi-Connect) === | ||
- | < | ||
- | JP5 | ||
- | +---J4---+ | ||
- | NC 01 02 GPIO0/GPIO2 | ||
- | GPIO1/ | ||
- | GPIO4 | ||
- | GPIO18 | ||
- | GND | ||
- | GPIO23 | ||
- | GPIO24 | ||
- | GND | ||
- | GPIO25 | ||
- | GPIO8 | ||
- | GPIO7 | ||
- | +--------+ | ||
- | </ | ||
- | |||
- | === I/O headers (Arduino 3V3 compatible) === | ||
- | < | ||
- | JA1 | ||
- | === | ||
- | JA4 POWER | ||
- | ========= | ||
- | RESET | ||
- | 3V3 | ||
- | 5V0 11 D11 MOSI PWM 3 RA1 | ||
- | GND | ||
- | GND | ||
- | VIN | ||
- | |||
- | JA2 | ||
- | === | ||
- | JA3 ANALOG | ||
- | ========== | ||
- | A0 2 | ||
- | A1 26 RB15 JP11 4 NC | ||
- | NC 3 D3 INT1 PWM 24 RB13 | ||
- | NC 2 D2 INT2 14 RB5 | ||
- | SDA | ||
- | SCL | ||
- | </ | ||
- | |||
- | == LED/SW/JTAG == | ||
- | < | ||
- | LED | ||
- | === | ||
- | LED3 13,28 3V3 | ||
- | LED1 2 | ||
- | LED2 26 RB15 JP11 | ||
- | RX1 | ||
- | TX1 | ||
- | |||
- | SW PIC32MX250F128B | ||
- | == =============== | ||
- | BOOTLOAD-EN | ||
- | RESET | ||
- | |||
- | JTAG PIC32MX250128B | ||
- | ==== ============== | ||
- | 6 | ||
- | 4 | ||
- | 2 | ||
- | </ | ||
- | Orientation is ICSP port to the left and JTAG port to the right. | ||
- | |||
- | === ICSP === | ||
- | |||
- | < | ||
- | PIC32MX250F128B | ||
- | =============== | ||
- | |||
- | 1 | ||
- | 4 | ||
- | 5 | ||
- | </ | ||
- | ICSP is wired internally to the chipKIT Pi and no other wiring is necessary. | ||
- | |||
- | === Pickle Microchip PIC ICSP === | ||
- | |||
- | Using [[projects: | ||
- | it's firmware. | ||
- | |||
- | == Configuration == | ||
- | < | ||
- | DEVICE=RPI | ||
- | SLEEP=1 | ||
- | BITRULES=0x4F00 | ||
- | VPP=4 | ||
- | PGC=14 | ||
- | PGD=15 | ||
- | PGM=255 | ||
- | </ | ||
- | |||
- | The BITRULES release the RPi GPIOs after programming and return GPIO14/15 to the UART mode of operation for uploading objects to the bootloader. | ||
- | |||
- | == Detect chip == | ||
- | < | ||
- | p32 id | ||
- | [1D000000] [PROGRAM] | ||
- | [1F80F220] [DEVICEID] 26600053 PIC32MX270F256B | ||
- | [1FC00000] [BOOT] | ||
- | [1FC00BF0] [DEVCFG3] | ||
- | [1FC00BF4] [DEVCFG2] | ||
- | [1FC00BF8] [DEVCFG1] | ||
- | [1FC00BFC] [DEVCFG0] | ||
- | | ||
- | </ | ||
- | |||
- | [[projects: | ||
- | |||
- | |||
- | === Firmware update === | ||
- | |||
- | Here we will program the firmware for a PIC32MX270F256B with a 48MHz clock. | ||
- | |||
- | Install the PIC32 [[tools: | ||
- | |||
- | < | ||
- | hg clone http:// | ||
- | cd chipKITPi/ | ||
- | make | ||
- | p32 program CHIPKIT_PI_MX270_48.hex | ||
- | Total: 2900 | ||
- | p32 verify CHIPKIT_PI_MX270_48.hex | ||
- | Total: 2900 Fail: 0 | ||
- | cd .. | ||
- | </ | ||
- | |||
- | === Demo === | ||
- | Upload LED demo to flash using the bootloader firmware installed above. | ||
- | |||
- | < | ||
- | cd led | ||
- | make | ||
- | </ | ||
- | |||
- | Hold BOOTLOAD-EN and press RESET, release BOOTLOAD-EN. | ||
- | < | ||
- | kload program / | ||
- | </ | ||
- | |||
- | This uploads the hex file using 24-bit addressing mode required by the AVR boot loader. |