Dangerous Prototypes

In development => Project logs => Topic started by: systemstech on October 26, 2012, 05:19:05 pm

Title: Free PCB - Bus Pirate Demo Board v5
Post by: systemstech on October 26, 2012, 05:19:05 pm
Here's my build of the free pcb I received yesterday.

(http://http://www.flickr.com/photos/79192364@N07/8124874893/)
IMG_3082 (http://http://www.flickr.com/photos/79192364@N07/8124874893/) by systems tech (http://http://www.flickr.com/people/79192364@N07/), on Flickr
Just finished soldering the resistor networks.

http://http://youtu.be/2WuZkRY_Aho?hd=1
Checking one of the LED's.

(http://http://www.flickr.com/photos/79192364@N07/8125029744/)
IMG_3095 (http://http://www.flickr.com/photos/79192364@N07/8125029744/) by systems tech (http://http://www.flickr.com/people/79192364@N07/), on Flickr
Completed board.

http://http://youtu.be/Clffn7GGypc
Soldering the pic.
Title: Re: Free PCB - Bus Pirate Demo Board v5
Post by: arakis on October 26, 2012, 11:16:50 pm
Try out the firmware and let us know how it goes, I'll be here to help if any snags are hit...
It's in the SVN under Breakou Boards/ Bus Pirate Demo/Firmware
Title: Re: Free PCB - Bus Pirate Demo Board v5
Post by: systemstech on October 27, 2012, 03:01:25 am
Ok looks like I am in need of help. For starters I've never programmed a pic before. Equipment I have: BPv4, Pickit3, MPLAB X IDE.
Were do I start?
Title: Re: Free PCB - Bus Pirate Demo Board v5
Post by: Sjaak on October 27, 2012, 09:03:33 am
From scratch :-)

Get the sourcecode from our svn, fire up mplabx. I dont see a mplabx project file, so create a new project, point to the downloaded directory and select import mplab8 project. Everything will be convertedto mplabx. You should leave your programmer connected.

To compile and program klik the green playbutton icon. If no errors it will program the pic.
Title: Re: Free PCB - Bus Pirate Demo Board v5
Post by: arakis on October 27, 2012, 11:56:43 am
What he said :), also you seem to have an older version so the DAC probably won;t work..
Title: Re: Free PCB - Bus Pirate Demo Board v5
Post by: systemstech on October 27, 2012, 01:15:55 pm
Thanks guys I'll try that now. Let you know what happens in a few.
Title: Re: Free PCB - Bus Pirate Demo Board v5
Post by: Sjaak on October 27, 2012, 01:21:52 pm
[quote author="arakis"]What he said :), also you seem to have an older version so the DAC probably won;t work..[/quote]

I even think the /cs is swapped on this board..
Title: Re: Free PCB - Bus Pirate Demo Board v5
Post by: systemstech on October 27, 2012, 01:44:42 pm
This is what I'm get from mplab

Code: [Select]
make -f nbproject/Makefile-default.mk SUBPROJECTS= .build-conf
make[1]: Entering directory `C:/Users/Ernie/Documents/eagle/BusPirateDemoBoard.source/BP Demoboard v5.X'
make  -f nbproject/Makefile-default.mk dist/default/production/BP_Demoboard_v5.X.production.hex
make[2]: Entering directory `C:/Users/Ernie/Documents/eagle/BusPirateDemoBoard.source/BP Demoboard v5.X'
"C:Program Files (x86)HI-TECH SoftwarePICC9.83binpicc.exe" --pass1 ../../../../Downloads/Eagle/BusPirateDemoBoard.source.r1702.v5b/Firmware/main.c  -q --chip=16F1829 -P  --outdir="build/default/production_ext748306169" -N31 -I"../../../../Downloads/Eagle/BusPirateDemoBoard.source.r1702.v5b/Firmware" --warn=0 --runtime=default,+clear,+init,-keep,+osccal,-resetbits,-download,-stackcall,+clib --summary=default,-psect,-class,+mem,-hex --opt=default,+asm,-asmfile,-speed,+space,-debug,9  --double=24 --float=24 --addrqual=ignore --mode=lite -g --asmlist "--errformat=%%f:%%l: error: %%s" "--msgformat=%%f:%%l: advisory: %%s" "--warnformat=%%f:%%l warning: %%s"
"C:Program Files (x86)HI-TECH SoftwarePICC9.83binpicc.exe" --pass1 ../../../../Downloads/Eagle/BusPirateDemoBoard.source.r1702.v5b/Firmware/i2c.c  -q --chip=16F1829 -P  --outdir="build/default/production_ext748306169" -N31 -I"../../../../Downloads/Eagle/BusPirateDemoBoard.source.r1702.v5b/Firmware" --warn=0 --runtime=default,+clear,+init,-keep,+osccal,-resetbits,-download,-stackcall,+clib --summary=default,-psect,-class,+mem,-hex --opt=default,+asm,-asmfile,-speed,+space,-debug,9  --double=24 --float=24 --addrqual=ignore --mode=lite -g --asmlist "--errformat=%%f:%%l: error: %%s" "--msgformat=%%f:%%l: advisory: %%s" "--warnformat=%%f:%%l warning: %%s"
"C:Program Files (x86)HI-TECH SoftwarePICC9.83binpicc.exe" --pass1 ../../../../Downloads/Eagle/BusPirateDemoBoard.source.r1702.v5b/Firmware/spi.c  -q --chip=16F1829 -P  --outdir="build/default/production_ext748306169" -N31 -I"../../../../Downloads/Eagle/BusPirateDemoBoard.source.r1702.v5b/Firmware" --warn=0 --runtime=default,+clear,+init,-keep,+osccal,-resetbits,-download,-stackcall,+clib --summary=default,-psect,-class,+mem,-hex --opt=default,+asm,-asmfile,-speed,+space,-debug,9  --double=24 --float=24 --addrqual=ignore --mode=lite -g --asmlist "--errformat=%%f:%%l: error: %%s" "--msgformat=%%f:%%l: advisory: %%s" "--warnformat=%%f:%%l warning: %%s"
"C:Program Files (x86)HI-TECH SoftwarePICC9.83binpicc.exe" --pass1 ../../../../Downloads/Eagle/BusPirateDemoBoard.source.r1702.v5b/Firmware/uart.c  -q --chip=16F1829 -P  --outdir="build/default/production_ext748306169" -N31 -I"../../../../Downloads/Eagle/BusPirateDemoBoard.source.r1702.v5b/Firmware" --warn=0 --runtime=default,+clear,+init,-keep,+osccal,-resetbits,-download,-stackcall,+clib --summary=default,-psect,-class,+mem,-hex --opt=default,+asm,-asmfile,-speed,+space,-debug,9  --double=24 --float=24 --addrqual=ignore --mode=lite -g --asmlist "--errformat=%%f:%%l: error: %%s" "--msgformat=%%f:%%l: advisory: %%s" "--warnformat=%%f:%%l warning: %%s"
"C:Program Files (x86)HI-TECH SoftwarePICC9.83binpicc.exe" --pass1 ../../../../Downloads/Eagle/BusPirateDemoBoard.source.r1702.v5b/Firmware/easteregg.c  -q --chip=16F1829 -P  --outdir="build/default/production_ext748306169" -N31 -I"../../../../Downloads/Eagle/BusPirateDemoBoard.source.r1702.v5b/Firmware" --warn=0 --runtime=default,+clear,+init,-keep,+osccal,-resetbits,-download,-stackcall,+clib --summary=default,-psect,-class,+mem,-hex --opt=default,+asm,-asmfile,-speed,+space,-debug,9  --double=24 --float=24 --addrqual=ignore --mode=lite -g --asmlist "--errformat=%%f:%%l: error: %%s" "--msgformat=%%f:%%l: advisory: %%s" "--warnformat=%%f:%%l warning: %%s"
"C:Program Files (x86)HI-TECH SoftwarePICC9.83binpicc.exe" --pass1 ../../../../Downloads/Eagle/BusPirateDemoBoard.source.r1702.v5b/Firmware/eeprom.c  -q --chip=16F1829 -P  --outdir="build/default/production_ext748306169" -N31 -I"../../../../Downloads/Eagle/BusPirateDemoBoard.source.r1702.v5b/Firmware" --warn=0 --runtime=default,+clear,+init,-keep,+osccal,-resetbits,-download,-stackcall,+clib --summary=default,-psect,-class,+mem,-hex --opt=default,+asm,-asmfile,-speed,+space,-debug,9  --double=24 --float=24 --addrqual=ignore --mode=lite -g --asmlist "--errformat=%%f:%%l: error: %%s" "--msgformat=%%f:%%l: advisory: %%s" "--warnformat=%%f:%%l warning: %%s"
"C:Program Files (x86)HI-TECH SoftwarePICC9.83binpicc.exe" --pass1 ../../../../Downloads/Eagle/BusPirateDemoBoard.source.r1702.v5b/Firmware/adc.c  -q --chip=16F1829 -P  --outdir="build/default/production_ext748306169" -N31 -I"../../../../Downloads/Eagle/BusPirateDemoBoard.source.r1702.v5b/Firmware" --warn=0 --runtime=default,+clear,+init,-keep,+osccal,-resetbits,-download,-stackcall,+clib --summary=default,-psect,-class,+mem,-hex --opt=default,+asm,-asmfile,-speed,+space,-debug,9  --double=24 --float=24 --addrqual=ignore --mode=lite -g --asmlist "--errformat=%%f:%%l: error: %%s" "--msgformat=%%f:%%l: advisory: %%s" "--warnformat=%%f:%%l warning: %%s"
"C:Program Files (x86)HI-TECH SoftwarePICC9.83binpicc.exe" --pass1 ../../../../Downloads/Eagle/BusPirateDemoBoard.source.r1702.v5b/Firmware/dac.c  -q --chip=16F1829 -P  --outdir="build/default/production_ext748306169" -N31 -I"../../../../Downloads/Eagle/BusPirateDemoBoard.source.r1702.v5b/Firmware" --warn=0 --runtime=default,+clear,+init,-keep,+osccal,-resetbits,-download,-stackcall,+clib --summary=default,-psect,-class,+mem,-hex --opt=default,+asm,-asmfile,-speed,+space,-debug,9  --double=24 --float=24 --addrqual=ignore --mode=lite -g --asmlist "--errformat=%%f:%%l: error: %%s" "--msgformat=%%f:%%l: advisory: %%s" "--warnformat=%%f:%%l warning: %%s"
"C:Program Files (x86)HI-TECH SoftwarePICC9.83binpicc.exe"  -odist/default/production/BP_Demoboard_v5.X.production.cof  -mdist/default/production/BP_Demoboard_v5.X.production.map --summary=default,-psect,-class,+mem,-hex --chip=16F1829 -P --runtime=default,+clear,+init,-keep,+osccal,-resetbits,-download,-stackcall,+clib --summary=default,-psect,-class,+mem,-hex --opt=default,+asm,-asmfile,-speed,+space,-debug,9 -N31 -I"../../../../Downloads/Eagle/BusPirateDemoBoard.source.r1702.v5b/Firmware" --warn=0  --double=24 --float=24 --addrqual=ignore --mode=lite --output=default,-inhx032 -g --asmlist "--errformat=%%f:%%l: error: %%s" "--msgformat=%%f:%%l: advisory: %%s" "--warnformat=%%f:%%l warning: %%s" build/default/production/_ext/748306169/main.p1 build/default/production/_ext/748306169/i2c.p1 build/default/production/_ext/748306169/spi.p1 build/default/production/_ext/748306169/uart.p1 build/default/production/_ext/748306169/easteregg.p1 build/default/production/_ext/748306169/eeprom.p1 build/default/production/_ext/748306169/adc.p1 build/default/production/_ext/748306169/dac.p1 
HI-TECH C Compiler for PIC10/12/16 MCUs (Lite Mode)  V9.83
Copyright (C) 2011 Microchip Technology Inc.
(1273) Omniscient Code Generation not available in Lite mode (warning)

Memory Summary:
    Program space        used  5FFh (  1535) of  2000h words  ( 18.7%)
    Data space          used    38h (    56) of  400h bytes  (  5.5%)
    EEPROM space        used    0h (    0) of  100h bytes  (  0.0%)
    Configuration bits  used    2h (    2) of    2h words  (100.0%)
    ID Location space    used    0h (    0) of    4h bytes  (  0.0%)


Running this compiler in PRO mode, with Omniscient Code Generation enabled,
produces code which is typically 40% smaller than in Lite mode.
The HI-TECH C PRO compiler output for this code could be 456 words smaller.
See http://microchip.htsoft.com/portal/pic_pro for more information.

make[2]: Leaving directory `C:/Users/Ernie/Documents/eagle/BusPirateDemoBoard.source/BP Demoboard v5.X'
make[1]: Leaving directory `C:/Users/Ernie/Documents/eagle/BusPirateDemoBoard.source/BP Demoboard v5.X'

BUILD SUCCESSFUL (total time: 8s)
Loading code from C:/Users/Ernie/Documents/eagle/BusPirateDemoBoard.source/BP Demoboard v5.X/dist/default/production/BP_Demoboard_v5.X.production.hex...
Loading symbols from C:/Users/Ernie/Documents/eagle/BusPirateDemoBoard.source/BP Demoboard v5.X/dist/default/production/BP_Demoboard_v5.X.production.cof...
Loading completed
Connecting to programmer...
Programming target...
The programmer could not be started: Failed to program the target device

*****************************************************

Connecting to MPLAB PICkit 3...
Firmware Suite Version.....01.28.07
Firmware type..............Enhanced Midrange
"Target device was not found. You must connect to a target device to use PICkit 3."
All three led's are on on the pickit3.

(http://http://www.flickr.com/photos/79192364@N07/8127356764/)
IMG_4500 (http://http://www.flickr.com/photos/79192364@N07/8127356764/) by systems tech (http://http://www.flickr.com/people/79192364@N07/), on Flickr
Title: Re: Free PCB - Bus Pirate Demo Board v5
Post by: systemstech on October 27, 2012, 02:38:00 pm
Restarted MPLAB and This is what I get now.

Code: [Select]
*****************************************************

Connecting to MPLAB PICkit 3...
Firmware Suite Version.....01.28.07
Firmware type..............Enhanced Midrange

Target detected
Device ID Revision = 0


The following memory area(s) will be programmed:
program memory: start address = 0x0, end address = 0x7bf
configuration memory

Programming...
configuration memory
Address: 8008 Expected Value: 1613 Received Value: 3613
Failed to program device

I changed the programming voltage to low voltage programming.

Code: [Select]
*****************************************************

Connecting to MPLAB PICkit 3...
Firmware Suite Version.....01.28.07
Firmware type..............Enhanced Midrange

Target detected
Device ID Revision = 0

The following memory area(s) will be programmed:
program memory: start address = 0x0, end address = 0x7bf
configuration memory

Programming...
Programming/Verify complete
Title: Re: Free PCB - Bus Pirate Demo Board v5
Post by: systemstech on October 27, 2012, 03:08:11 pm
Tried the bus pirate and I get the leds to light up. of course I don't know what the heck I'm donig but something is happening. lol

Code: [Select]
HiZ>m
1. HiZ
2. 1-WIRE
3. UART
4. I2C
5. SPI
6. 2WIRE
7. 3WIRE
8. KEYB
9. LCD
10. PIC
11. DIO
x. exit(without change)

(1)>5
Set speed:
 1. 30KHz
 2. 125KHz
 3. 250KHz
 4. 1MHz

(1)>3
Clock polarity:
 1. Idle low *default
 2. Idle high

(1)>1
Output clock edge:
 1. Idle to active
 2. Active to idle *default

(2)>2
Input sample phase:
 1. Middle *default
 2. End

(1)>1
CS:
 1. CS
 2. /CS *default

(2)>2
Select output type:
 1. Open drain (H=Hi-Z, L=GND)
 2. Normal (H=3.3V, L=GND)

(1)>2
Ready
SPI>W
POWER SUPPLIES ON
SPI>v
Pinstates:
#12    #11    #10    #09    #08    #07    #06    #05    #04    #03    #
02      #01
GND    5.0V    3.3V    VPU    ADC    AUX2    AUX1    AUX    CS      MISO  C
LK      MOSI
P      P      P      I      I      I      O      I      O      I      O
GND    4.98V  3.37V  0.00V  0.07V  L      L      L      H      H      L
SPI>w
POWER SUPPLIES OFF
SPI>v
Pinstates:
#12    #11    #10    #09    #08    #07    #06    #05    #04    #03    #
02      #01
GND    5.0V    3.3V    VPU    ADC    AUX2    AUX1    AUX    CS      MISO  C
LK      MOSI
P      P      P      I      I      I      O      I      O      I      O
GND    0.00V  0.77V  0.00V  0.03V  L      L      L      L      L      L
SPI>m
1. HiZ
2. 1-WIRE
3. UART
4. I2C
5. SPI
6. 2WIRE
7. 3WIRE
8. KEYB
9. LCD
10. PIC
11. DIO
x. exit(without change)

(1)>1
Ready
HiZ>
Title: Re: Free PCB - Bus Pirate Demo Board v5
Post by: arakis on October 27, 2012, 04:40:10 pm
I just moved the demo board firmware dev thread to a public forum, viewtopic.php?f=19&t=4363 (http://dangerousprototypes.com/forum/viewtopic.php?f=19&t=4363)

at this post I pasted the termnal windows from all the modes I tested, below are aslo datasheets to all the devices we're trying to emulate

viewtopic.php?f=19&t=4363&start=15#p43521 (http://dangerousprototypes.com/forum/viewtopic.php?f=19&t=4363&start=15#p43521)

basically just put the jumpers into the mode you want and follow the terminal windows :) if the CS pin is wrongly routed SPI  probably won't work...
Title: Re: Free PCB - Bus Pirate Demo Board v5
Post by: systemstech on October 27, 2012, 04:45:07 pm
Thanks I'll check it out.
Title: Re: Free PCB - Bus Pirate Demo Board v5
Post by: arakis on October 27, 2012, 04:49:27 pm
I checked the pinouts, it seems everythin is exacly the same as the most current board, only you're missing the buffer for the DAC so the ADC pin won't work quite as well, anoyingly the ADC pin (demoboard) is the dac output which is connected to the PGD pin of the pic as well, so programming can be anoying if you have the BP connected there...my advice, since the DAC functionality on your board is out...just leave the ADC pin unconected...

Don't get confused wiht my use ofthe ADC and DAC mentioning the same pin :)

the ADC pin on the demo board's Bus pirate connector is connected to the DAC output/PGD... this is because the BP is reading the DAC with a ADC :)
Title: Re: Free PCB - Bus Pirate Demo Board v5
Post by: systemstech on October 27, 2012, 05:07:02 pm
So should I connect the bp and the pickit3 at the same time? I thought the pickit3 provided the power to the demo board. Also should the voltage to the demo board be 5v or 3.3 the data sheet said 3.3-5v.
Title: Re: Free PCB - Bus Pirate Demo Board v5
Post by: systemstech on October 27, 2012, 05:39:13 pm
Tried the I2C and this is what I get.

Code: [Select]
HiZ>m
1. HiZ
2. 1-WIRE
3. UART
4. I2C
5. SPI
6. 2WIRE
7. 3WIRE
8. KEYB
9. LCD
10. PIC
11. DIO
x. exit(without change)

(1)>4
I2C mode:
 1. Software
 2. Hardware

(1)>2
Set speed:
 1. 100KHz
 2. 400KHz
 3. 1MHz
(1)>1
Ready
I2C>W
POWER SUPPLIES ON
I2C>p
Pull-up resistors OFF
I2C>p
Pull-up resistors OFF
I2C>P
Pull-up resistors ON
Warning: no voltage on Vpullup pin
I2C>(1)
Searching I2C address space. Found devices at:
Warning: *Short or no pull-up

I2C>v
Pinstates:
#12    #11    #10    #09    #08    #07    #06    #05    #04    #03    #
02      #01
GND    5.0V    3.3V    VPU    ADC    AUX2    AUX1    AUX    -      -      S
CL      SDA
P      P      P      I      I      I      I      I      I      I      I
GND    4.97V  3.47V  0.00V  0.00V  L      L      L      L      L      L
I2C>w
POWER SUPPLIES OFF
I2C>m
1. HiZ
2. 1-WIRE
3. UART
4. I2C
5. SPI
6. 2WIRE
7. 3WIRE
8. KEYB
9. LCD
10. PIC
11. DIO
x. exit(without change)

(1)>1
Ready
HiZ>

I don't think the pic is programmed and I keep on getting "Target detected Target Device ID (0x0) does not match expected Device ID (0x27e0)"
Title: Re: Free PCB - Bus Pirate Demo Board v5
Post by: systemstech on October 27, 2012, 05:47:36 pm
arakis;

"
Quote
*cap on the PGD/DACOUT pin is interfering with programming, so it must be removed, or a solder jumper added to stop it interfering..

I removed the cap. I tried to sort across the cap but that just gave me an error of "too much current flow from adc pin" from the programmer. Removed the sort but still incorrect ID from pic. no joy.
Title: Re: Free PCB - Bus Pirate Demo Board v5
Post by: systemstech on October 27, 2012, 06:28:55 pm
Here's some pictures of the chip to check for sorts between the pins.

Pin 1 side.
(http://http://www.flickr.com/photos/79192364@N07/8128019221/)
_MG_4507 (http://http://www.flickr.com/photos/79192364@N07/8128019221/) by systems tech (http://http://www.flickr.com/people/79192364@N07/), on Flickr

Pin 20 side.
(http://http://www.flickr.com/photos/79192364@N07/8128020065/)
_MG_4504 (http://http://www.flickr.com/photos/79192364@N07/8128020065/) by systems tech (http://http://www.flickr.com/people/79192364@N07/), on Flickr
Title: Re: Free PCB - Bus Pirate Demo Board v5
Post by: arakis on October 27, 2012, 08:13:54 pm
[quote author="systemstech"]So should I connect the bp and the pickit3 at the same time? I thought the pickit3 provided the power to the demo board. Also should the voltage to the demo board be 5v or 3.3 the data sheet said 3.3-5v.[/quote]

once you program it, you shouldn't need the PK3 at all, the BP can power it... I'd go for the 3.3V...
Title: Re: Free PCB - Bus Pirate Demo Board v5
Post by: arakis on October 27, 2012, 08:16:17 pm
[quote author="systemstech"]Tried the I2C and this is what I get.

Code: [Select]
HiZ>m
1. HiZ
2. 1-WIRE
3. UART
4. I2C
5. SPI
6. 2WIRE
7. 3WIRE
8. KEYB
9. LCD
10. PIC
11. DIO
x. exit(without change)

(1)>4
I2C mode:
 1. Software
 2. Hardware

(1)>2
Set speed:
 1. 100KHz
 2. 400KHz
 3. 1MHz
(1)>1
Ready
I2C>W
POWER SUPPLIES ON
I2C>p
Pull-up resistors OFF
I2C>p
Pull-up resistors OFF
I2C>P
Pull-up resistors ON
Warning: no voltage on Vpullup pin
I2C>(1)
Searching I2C address space. Found devices at:
Warning: *Short or no pull-up

I2C>v
Pinstates:
#12    #11    #10    #09    #08    #07    #06    #05    #04    #03    #
02      #01
GND    5.0V    3.3V    VPU    ADC    AUX2    AUX1    AUX    -      -      S
CL      SDA
P      P      P      I      I      I      I      I      I      I      I
GND    4.97V  3.47V  0.00V  0.00V  L      L      L      L      L      L
I2C>w
POWER SUPPLIES OFF
I2C>m
1. HiZ
2. 1-WIRE
3. UART
4. I2C
5. SPI
6. 2WIRE
7. 3WIRE
8. KEYB
9. LCD
10. PIC
11. DIO
x. exit(without change)

(1)>1
Ready
HiZ>

I don't think the pic is programmed and I keep on getting "Target detected Target Device ID (0x0) does not match expected Device ID (0x27e0)"[/quote]

Did you connect the VPU pin to power, when activating pullups on a BPv3 you need the VPU pin to be powereed... I just power the demoboard from the BP, and get power for  the VPU pin from the pwr pin on  the ADC header on the demoboard..
Title: Re: Free PCB - Bus Pirate Demo Board v5
Post by: arakis on October 27, 2012, 08:19:01 pm
[quote author="systemstech"]Here's some pictures of the chip to check for sorts between the pins.

Pin 1 side.
(http://http://www.flickr.com/photos/79192364@N07/8128019221/)
_MG_4507 (http://http://www.flickr.com/photos/79192364@N07/8128019221/) by systems tech (http://http://www.flickr.com/people/79192364@N07/), on Flickr

Pin 20 side.
(http://http://www.flickr.com/photos/79192364@N07/8128020065/)
_MG_4504 (http://http://www.flickr.com/photos/79192364@N07/8128020065/) by systems tech (http://http://www.flickr.com/people/79192364@N07/), on Flickr[/quote]

donno what cap you removed, but you'r board shouldn't have a cap on the PGD pin :) better to put it back :)

regarding programing, do not connect the Bus pirate at all when programing....try like this and let me know...

so basicly, once you get the demoboard programed, you can store the pk3 in a drawr and forget about it...(but wile programing do not connet the BP...)
Title: Re: Free PCB - Bus Pirate Demo Board v5
Post by: systemstech on October 28, 2012, 01:01:26 am
Ok I'll try it again with the cap back in place when I get back home tonight.
Title: Re: Free PCB - Bus Pirate Demo Board v5
Post by: systemstech on October 28, 2012, 04:15:05 pm
I can't find the correct schematic for the board that I have. Version v5 from the svn is not the correct board. In the silkscreen it shows as v5a. The board that I have doesn't have the d1, d2, r3, and the 3pin ADC.
Title: Re: Free PCB - Bus Pirate Demo Board v5
Post by: arakis on October 28, 2012, 04:59:56 pm
sorry Sjaak was right your board has a few miss connected pins, namely CS and X1 have their places switched... so hardware SPI is out, and for it to work in any what, you'' have to change a few parameters on X1 definition, also as already mentioned DAC is out...

so basicly you have I2C/UART  mem, PWM, and ADC, at your disposal..

in the  firmware you need to change the folowing...
in the hardware.h file at the bottom you need to change the #define X1 RA2 into => #define X1 RC0

This should perhaps work :)...if you're still having issues, we can get you an updated board (if Ian has any left)...

**I updated the SVN, now the v5 is actually v5 and v5a is v5a.. :) there was a mess up where the v5a was erroneously named v5...and it overwrote the original v5

If your feeling lucky with an iron, you could cut away the offending traces, and connect the X1 and CS pins the right way around using "green" wire, or any color you prefer :)
Title: Re: Free PCB - Bus Pirate Demo Board v5
Post by: arakis on October 28, 2012, 05:04:02 pm
regarding the PWR pin in the ADC to use for the pullups VPU connection, you could use the ICSP pwr pin instead..
Title: Re: Free PCB - Bus Pirate Demo Board v5
Post by: systemstech on October 28, 2012, 06:00:02 pm
[quote author="arakis"]If your feeling lucky with an iron, you could cut away the offending traces, and connect the X1 and CS pins the right way around using "green" wire, or any color you prefer :)[/quote]

"Do you feel lucky, punk?" lol  I'm feeling lucky. :) Cutting. Pictures of the Frankenstein board soon to come.
Title: Re: Free PCB - Bus Pirate Demo Board v5
Post by: Sjaak on October 28, 2012, 09:50:36 pm
Why use green wire? you can just connect the /cs on the x1 and vice versa :) both are broken out..

reworking a board with green wire is way coooler though :D
Title: Re: Free PCB - Bus Pirate Demo Board v5
Post by: systemstech on October 28, 2012, 10:38:13 pm
Go green I say.
Title: Re: Free PCB - Bus Pirate Demo Board v5
Post by: systemstech on October 29, 2012, 09:10:33 pm
Somehow I misplaced my 30awg green wire Everything is on hold till I get some green or maybe red 30awg wire.
Title: Re: Free PCB - Bus Pirate Demo Board v5
Post by: arakis on October 29, 2012, 09:53:35 pm
yellow is ok as well..unless you have purple which is best:)
Title: Re: Free PCB - Bus Pirate Demo Board v5
Post by: systemstech on October 29, 2012, 09:59:40 pm
Just ordered some and guess what I found? the green wire. working on it now.
Title: Re: Free PCB - Bus Pirate Demo Board v5
Post by: systemstech on October 30, 2012, 01:04:03 pm
[quote author="arakis"]regarding the PWR pin in the ADC to use for the pullups VPU connection, you could use the ICSP pwr pin instead..[/quote]

I've tried this and still this is what I get. w/mem, I2C jumpered.
Code: [Select]
HiZ>m
1. HiZ
2. 1-WIRE
3. UART
4. I2C
5. SPI
6. 2WIRE
7. 3WIRE
8. KEYB
9. LCD
10. PIC
11. DIO
x. exit(without change)

(1)>4
I2C mode:
 1. Software
 2. Hardware

(1)>1
Set speed:
 1. ~5KHz
 2. ~50KHz
 3. ~100KHz
 4. ~400KHz

(1)>3
Ready
I2C>W
POWER SUPPLIES ON
I2C>v
Pinstates:
#12    #11    #10    #09    #08    #07    #06    #05    #04    #03    #
02      #01
GND    5.0V    3.3V    VPU    ADC    AUX2    AUX1    AUX    -      -      S
CL      SDA
P      P      P      I      I      I      I      I      I      I      I
GND    4.98V  3.36V  3.40V  0.00V  L      H      L      H      H      L
I2C>(1)
Searching I2C address space. Found devices at:
Warning: *Short or no pull-up
Title: Re: Free PCB - Bus Pirate Demo Board v5
Post by: arakis on October 30, 2012, 01:54:41 pm
got everthing right except the pull ups :)

so setup the I2C
then:

W for the power,
P for the people (kidding) for the pull ups

now you can search the address space.

se now you have power on the VPU pin, but you haven;t connected the pullups... :)
Title: Re: Free PCB - Bus Pirate Demo Board v5
Post by: systemstech on October 30, 2012, 04:23:16 pm
Ok then,  must be a sort between the ears. Lets see what we get now. without the cs and x1 traces cut and swapped.

BP vpu  to icsp(vdd) and BP cs to X1
Code: [Select]
HiZ>m
1. HiZ
2. 1-WIRE
3. UART
4. I2C
5. SPI
6. 2WIRE
7. 3WIRE
8. KEYB
9. LCD
10. PIC
11. DIO
x. exit(without change)

(1)>4
I2C mode:
 1. Software
 2. Hardware

(1)>1
Set speed:
 1. ~5KHz
 2. ~50KHz
 3. ~100KHz
 4. ~400KHz

(1)>3
Ready
I2C>W
POWER SUPPLIES ON
I2C>P
Pull-up resistors ON
I2C>v
Pinstates:
#12    #11    #10    #09    #08    #07    #06    #05    #04    #03    #
02      #01
GND    5.0V    3.3V    VPU    ADC    AUX2    AUX1    AUX    -      -      S
CL      SDA
P      P      P      I      I      I      I      I      I      I      I
GND    4.98V  3.41V  3.35V  0.00V  L      H      L      H      H      H
I2C>(1)
Searching I2C address space. Found devices at:


I2C>

lets try with the BP cs to X1 and disconnect the BP vpu to icsp(vdd)
Code: [Select]
HiZ>m
1. HiZ
2. 1-WIRE
3. UART
4. I2C
5. SPI
6. 2WIRE
7. 3WIRE
8. KEYB
9. LCD
10. PIC
11. DIO
x. exit(without change)

(1)>4
I2C mode:
 1. Software
 2. Hardware

(1)>1
Set speed:
 1. ~5KHz
 2. ~50KHz
 3. ~100KHz
 4. ~400KHz

(1)>3
Ready
I2C>W
POWER SUPPLIES ON
I2C>P
Pull-up resistors ON
I2C>(1)
Searching I2C address space. Found devices at:
0x00(0x00 W) 0x01(0x00 R) 0x02(0x01 W) 0x03(0x01 R) 0x04(0x02 W) 0x05(0x02 R) 0x
06(0x03 W) 0x07(0x03 R) 0x08(0x04 W) 0x09(0x04 R) 0x0A(0x05 W) 0x0B(0x05 R) 0x0C
(0x06 W) 0x0D(0x06 R) 0x0E(0x07 W) 0x0F(0x07 R) 0x10(0x08 W) 0x11(0x08 R) 0x12(0
x09 W) 0x13(0x09 R) 0x14(0x0A W) 0x15(0x0A R) 0x16(0x0B W) 0x17(0x0B R) 0x18(0x0
C W) 0x19(0x0C R) 0x1A(0x0D W) 0x1B(0x0D R) 0x1C(0x0E W) 0x1D(0x0E R) 0x1E(0x0F
W) 0x1F(0x0F R) 0x20(0x10 W) 0x21(0x10 R) 0x22(0x11 W) 0x23(0x11 R) 0x24(0x12 W)
 0x25(0x12 R) 0x26(0x13 W) 0x27(0x13 R) 0x28(0x14 W) 0x29(0x14 R) 0x2A(0x15 W) 0
x2B(0x15 R) 0x2C(0x16 W) 0x2D(0x16 R) 0x2E(0x17 W) 0x2F(0x17 R) 0x30(0x18 W) 0x3
1(0x18 R) 0x32(0x19 W) 0x33(0x19 R) 0x34(0x1A W) 0x35(0x1A R) 0x36(0x1B W) 0x37(
0x1B R) 0x38(0x1C W) 0x39(0x1C R) 0x3A(0x1D W) 0x3B(0x1D R) 0x3C(0x1E W) 0x3D(0x
1E R) 0x3E(0x1F W) 0x3F(0x1F R) 0x40(0x20 W) 0x41(0x20 R) 0x42(0x21 W) 0x43(0x21
 R) 0x44(0x22 W) 0x45(0x22 R) 0x46(0x23 W) 0x47(0x23 R) 0x48(0x24 W) 0x49(0x24 R
) 0x4A(0x25 W) 0x4B(0x25 R) 0x4C(0x26 W) 0x4D(0x26 R) 0x4E(0x27 W) 0x4F(0x27 R)
0x50(0x28 W) 0x51(0x28 R) 0x52(0x29 W) 0x53(0x29 R) 0x54(0x2A W) 0x55(0x2A R) 0x
56(0x2B W) 0x57(0x2B R) 0x58(0x2C W) 0x59(0x2C R) 0x5A(0x2D W) 0x5B(0x2D R) 0x5C
(0x2E W) 0x5D(0x2E R) 0x5E(0x2F W) 0x5F(0x2F R) 0x60(0x30 W) 0x61(0x30 R) 0x62(0
x31 W) 0x63(0x31 R) 0x64(0x32 W) 0x65(0x32 R) 0x66(0x33 W) 0x67(0x33 R) 0x68(0x3
4 W) 0x69(0x34 R) 0x6A(0x35 W) 0x6B(0x35 R) 0x6C(0x36 W) 0x6D(0x36 R) 0x6E(0x37
W) 0x6F(0x37 R) 0x70(0x38 W) 0x71(0x38 R) 0x72(0x39 W) 0x73(0x39 R) 0x74(0x3A W)
 0x75(0x3A R) 0x76(0x3B W) 0x77(0x3B R) 0x78(0x3C W) 0x79(0x3C R) 0x7A(0x3D W) 0
x7B(0x3D R) 0x7C(0x3E W) 0x7D(0x3E R) 0x7E(0x3F W) 0x7F(0x3F R) 0x80(0x40 W) 0x8
1(0x40 R) 0x82(0x41 W) 0x83(0x41 R) 0x84(0x42 W) 0x85(0x42 R) 0x86(0x43 W) 0x87(
0x43 R) 0x88(0x44 W) 0x89(0x44 R) 0x8A(0x45 W) 0x8B(0x45 R) 0x8C(0x46 W) 0x8D(0x
46 R) 0x8E(0x47 W) 0x8F(0x47 R) 0x90(0x48 W) 0x91(0x48 R) 0x92(0x49 W) 0x93(0x49
 R) 0x94(0x4A W) 0x95(0x4A R) 0x96(0x4B W) 0x97(0x4B R) 0x98(0x4C W) 0x99(0x4C R
) 0x9A(0x4D W) 0x9B(0x4D R) 0x9C(0x4E W) 0x9D(0x4E R) 0x9E(0x4F W) 0x9F(0x4F R)
0xA0(0x50 W) 0xA1(0x50 R) 0xA2(0x51 W) 0xA3(0x51 R) 0xA4(0x52 W) 0xA5(0x52 R) 0x
A6(0x53 W) 0xA7(0x53 R) 0xA8(0x54 W) 0xA9(0x54 R) 0xAA(0x55 W) 0xAB(0x55 R) 0xAC
(0x56 W) 0xAD(0x56 R) 0xAE(0x57 W) 0xAF(0x57 R) 0xB0(0x58 W) 0xB1(0x58 R) 0xB2(0
x59 W) 0xB3(0x59 R) 0xB4(0x5A W) 0xB5(0x5A R) 0xB6(0x5B W) 0xB7(0x5B R) 0xB8(0x5
C W) 0xB9(0x5C R) 0xBA(0x5D W) 0xBB(0x5D R) 0xBC(0x5E W) 0xBD(0x5E R) 0xBE(0x5F
W) 0xBF(0x5F R) 0xC0(0x60 W) 0xC1(0x60 R) 0xC2(0x61 W) 0xC3(0x61 R) 0xC4(0x62 W)
 0xC5(0x62 R) 0xC6(0x63 W) 0xC7(0x63 R) 0xC8(0x64 W) 0xC9(0x64 R) 0xCA(0x65 W) 0
xCB(0x65 R) 0xCC(0x66 W) 0xCD(0x66 R) 0xCE(0x67 W) 0xCF(0x67 R) 0xD0(0x68 W) 0xD
1(0x68 R) 0xD2(0x69 W) 0xD3(0x69 R) 0xD4(0x6A W) 0xD5(0x6A R) 0xD6(0x6B W) 0xD7(
0x6B R) 0xD8(0x6C W) 0xD9(0x6C R) 0xDA(0x6D W) 0xDB(0x6D R) 0xDC(0x6E W) 0xDD(0x
6E R) 0xDE(0x6F W) 0xDF(0x6F R) 0xE0(0x70 W) 0xE1(0x70 R) 0xE2(0x71 W) 0xE3(0x71
 R) 0xE4(0x72 W) 0xE5(0x72 R) 0xE6(0x73 W) 0xE7(0x73 R) 0xE8(0x74 W) 0xE9(0x74 R
) 0xEA(0x75 W) 0xEB(0x75 R) 0xEC(0x76 W) 0xED(0x76 R) 0xEE(0x77 W) 0xEF(0x77 R)
0xF0(0x78 W) 0xF1(0x78 R) 0xF2(0x79 W) 0xF3(0x79 R) 0xF4(0x7A W) 0xF5(0x7A R) 0x
F6(0x7B W) 0xF7(0x7B R) 0xF8(0x7C W) 0xF9(0x7C R) 0xFA(0x7D W) 0xFB(0x7D R) 0xFC
(0x7E W) 0xFD(0x7E R) 0xFE(0x7F W) 0xFF(0x7F R)
I2C>v
Pinstates:
#12    #11    #10    #09    #08    #07    #06    #05    #04    #03    #
02      #01
GND    5.0V    3.3V    VPU    ADC    AUX2    AUX1    AUX    -      -      S
CL      SDA
P      P      P      I      I      I      I      I      I      I      I
GND    5.00V  3.42V  1.50V  0.00V  L      H      L      H      H      H
I2C>


Also both leds were on all the time.
Title: Re: Free PCB - Bus Pirate Demo Board v5
Post by: arakis on October 30, 2012, 06:05:56 pm
What can I say except cut that turkey like it's thanksgiving :)

don;t have  a clue what happend,  whne you diconect VPU(BP) from the vddd(ICSP DEMO BOARD) you have no pull ups.....

I sugest cutting the traces close to the pic  and then soldering wires directly from the uC leads to the corresponding pin headers...
Title: Re: Free PCB - Bus Pirate Demo Board v5
Post by: arakis on October 30, 2012, 06:09:51 pm
[quote author="arakis"]What can I say except cut that turkey like it's thanksgiving :)

don;t have  a clue what happend,  whne you diconect VPU(BP) from the vddd(ICSP DEMO BOARD) you have no pull ups.....

I sugest cutting the traces close to the pic  and then soldering wires directly from the uC leads to the corresponding pin headers...[/quote]

you'll have to do this as the X1 pin needs a pull-up...

so cut the traces neer the PIC pins. (traces coresponding to X1 nad C!, on you r board.) Then solder wire from the uC pins to the breakout pinheaders for X1 /cs  this time the other way around.

now when you test.
connect the Vdd ICSP to VPU (you can use BP's ICSP as well if the wire lenght is bugging you)

W
P
(1)

and a happy face
Title: Re: Free PCB - Bus Pirate Demo Board v5
Post by: Sjaak on October 30, 2012, 08:34:53 pm
I dont think the pullups are needed on the demo board as the pins supports a programmable weakpullupresistor. I cant remember if it is a global setting or it can be set on each pin individual. If it is a global setting it would not teach the 'enable pullups and power the Vpu pin' lesson :)
Title: Re: Free PCB - Bus Pirate Demo Board v5
Post by: systemstech on October 31, 2012, 05:38:42 am
Looks like i'm not getting anywhere with this board. so I'm going to bread board this circuit and program the pic out of circuit. On the pic standalone programmer software I get a yellow dot  next to the type of micro being used. I can't seem to find the meaning of this yellow dot or what to do about it.
Title: Re: Free PCB - Bus Pirate Demo Board v5
Post by: arakis on October 31, 2012, 09:17:35 am
Sorry to hear that, if you'd like we could send you one of the latest PCBs..but it'll get there in two weeks at best...
Title: Re: Free PCB - Bus Pirate Demo Board v5
Post by: systemstech on October 31, 2012, 02:50:18 pm
Thanks arakis;

A new board would be nice thanks again. I placed a sample order with microchip yesterday for three pic16f1829  so I'll  have some extras to try. I'm thinking of picking up a IC test socket for the chip so that it can be programmed out of circuit.
Title: Re: Free PCB - Bus Pirate Demo Board v5
Post by: arakis on October 31, 2012, 03:14:24 pm
No problem, PM Ian with your address, and he'll mail it to you, when he sends out the next batch of free PCBs...
Title: Re: Free PCB - Bus Pirate Demo Board v5
Post by: ian on November 06, 2012, 11:55:46 am
free pcb on the way
Title: Re: Free PCB - Bus Pirate Demo Board v5
Post by: systemstech on November 06, 2012, 01:02:19 pm
Thanks can't wait to get it.

( ! ) Fatal error: Uncaught exception 'Elk_Exception' with message 'Please try again. If you come back to this error screen, report the error to an administrator.' in /var/www/dangerousprototypes/forum/sources/database/Db-mysql.class.php on line 696
( ! ) Elk_Exception: Please try again. If you come back to this error screen, report the error to an administrator. in /var/www/dangerousprototypes/forum/sources/database/Db-mysql.class.php on line 696
Call Stack
#TimeMemoryFunctionLocation
10.01852268792session_write_close ( )...(null):0
20.01882400384ElkArte\sources\subs\SessionHandler\DatabaseHandler->write( )...(null):0
30.01882401160Database_MySQL->query( ).../DatabaseHandler.php:119
40.06442539896Database_MySQL->error( ).../Db-mysql.class.php:273