Problem downloading programs to BS2
ScaryTinker
Posts: 5
I'm having a problem downloading code to the BS2.· On the order of 19 times out of 20 I get a "Hardware communication failure!· Check serial cable and power supply" error.·· The BS2's are mounted on USB versions of the PDB and BOE.· I'm downloading the code from a Generic Desktop computer running Windows XP Pro.
When I press the "Identify" button the computer correctly sees a BS2
There is a message at the bottom of the Editor that reads "Tokenize successful, Download failed"
The·Download staus bar shows progress and then I get the error message.· Progress·varies from 1% to·100%(rarely)
The problem occurs on two different development boards (A PDB and a BOE)
The problem happens more with longer programs but it also happens with clear.bs2 (a 4 line program)
I am using a 9volt battery on the BOE and the Parallax supplied adapter on the PDB.
I've changed out the USB cable using the cable from the PDB kit and the BOE kit.
I've tried different USB ports on and off a powered USB Hub and have plugged the cable directly into the PC.
I've uninstalled and reinstalled the drivers from the July 2005 Parallax CD.
I went to ftdichip.com and downloaded the VCP drivers for Windows XP (version 1.0.2176), uninstalled the old drivers and install the new drivers.
Device Manager in Windows does not show any malfunctioning drivers or devices.·
The problem has remained consistant through all of the above changes.
Any ideas what I might try next?
Steve
When I press the "Identify" button the computer correctly sees a BS2
There is a message at the bottom of the Editor that reads "Tokenize successful, Download failed"
The·Download staus bar shows progress and then I get the error message.· Progress·varies from 1% to·100%(rarely)
The problem occurs on two different development boards (A PDB and a BOE)
The problem happens more with longer programs but it also happens with clear.bs2 (a 4 line program)
I am using a 9volt battery on the BOE and the Parallax supplied adapter on the PDB.
I've changed out the USB cable using the cable from the PDB kit and the BOE kit.
I've tried different USB ports on and off a powered USB Hub and have plugged the cable directly into the PC.
I've uninstalled and reinstalled the drivers from the July 2005 Parallax CD.
I went to ftdichip.com and downloaded the VCP drivers for Windows XP (version 1.0.2176), uninstalled the old drivers and install the new drivers.
Device Manager in Windows does not show any malfunctioning drivers or devices.·
The problem has remained consistant through all of the above changes.
Any ideas what I might try next?
Steve
Comments
I'd try using the BOE with a new battery. See what happens then.
Regards,
Bruce Bates
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
1 + 1 = Window
/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
0............................................0
0............................................0
0.(Microman171@hotmail.com)..0
0............................................0
0............................................0
\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/
·· This sounds like a possible latency issue on the USB Port.· Try this...Go into your System Properties, Hardware Tab, Device Manager.· In the Ports category find the entry for the· USB Serial Port (Board must be plugged in) and double-click this entry.· This should open the USB Serial Port Properties.· Go to the Port Settings Tab and click Advanced.· Set the Latency Timer from 16 down to 1 and click Okay.· Click Okay on the previous Window as well then retry your code download.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support
csavage@parallax.com
···· You are the man!·· I cranked the latency down to 1 and·downloads have succeeded 100% of the time so far.·· Thanks!
···· Can you briefly explain (in simple terms)· what was wrong and why changing the latency fixed things.·
Thanks
Steve
·· Since you mentioned a Desktop Computer I am at a loss to explain it myself.· Usually on laptops the power management and other settings (including hardware) can affect things like USB Latency and Serial FIFO operation, adversely affecting the BASIC Stamp, which has precise timing requirements for programming.· Thing is, this isn't usually a problem on a desktop.· But it's now something to keep in mind.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support
csavage@parallax.com
Steve