Shop OBEX P1 Docs P2 Docs Learn Events
Problem running Javelin IDE in Windows XP (Error IDE 0022 - Error reading from — Parallax Forums

Problem running Javelin IDE in Windows XP (Error IDE 0022 - Error reading from

kd4ltlkd4ltl Posts: 2
edited 2007-03-31 03:23 in General Discussion
Hi Everyone!

I have been programming my Javelin Stamp with my old Presario 1230 laptop running Windows 98.· Everything was great until this laptop died a couple of days ago.· Now I am trying to program the Javelin Stamp using my other·laptop running Windows XP Pro.· I already had a USB-to-Serial cable (Iogear) so I thought that the installation and setup would be a breeze and I could continue programming my Javelin Stamp.

Man, what a nightmare.· The Javelin IDE can find the Stamp on either Com1 or Com3 and even performs a successful·Test Connection on Com Port 1 or Com Port 3.· But when it comes to downloading the program to the Stamp, watch out!!!!· The error above appears on Com Port 1 or Com Port 3.

I·would greatly appreciate any help in solving this problem.

Thank you in advance for any advice that you can give me.
·

Comments

  • Jon WilliamsJon Williams Posts: 6,491
    edited 2004-09-18 06:29
    We've had those problems with some USB adapters as well. We use the FTDI adapter internally -- you can either order one from use or pick one up locally if you can find it.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Jon Williams
    Applications Engineer, Parallax
    Dallas Office
  • kd4ltlkd4ltl Posts: 2
    edited 2004-09-18 16:44
    Hi Jon!

    Thank you so much for taking the time to help me with my problem!

    I just placed an order with Parallax.·

    Have a great weekend!!!!
  • Jon WilliamsJon Williams Posts: 6,491
    edited 2004-09-18 17:25
    I just got one of the FTDI adapters myself, as the old one I was using was causing the dreaded Blue Screen Of Death (BSOD) -- even on my XP Pro machine.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Jon Williams
    Applications Engineer, Parallax
    Dallas Office
  • WorapohtWorapoht Posts: 17
    edited 2004-09-19 17:22
    Hi, Jon
    did you re-assign port number to COM1-COM4? at FTDI Virtual COM Port driver on Control Panel.
    I'm not sure that Javelin IDE can use port name more than COM4 or not..
  • Jon WilliamsJon Williams Posts: 6,491
    edited 2004-09-19 19:32
    Ah, yes, I went into the registry and changed the setting (mine was COM9). We have a JIDE update in works shortly, so I'll ask the programmer to fix the "Edit Port List" dialog that currently isn't working. If you know how to use REGEDIT you can do it too

    HKEY_CURRENT_USE\Software\ParallaxInc\JavelinStamp\

    At the end of the list you'll see ValidPort0 - ValidPort3 -- change any of these to match your USB VCP.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Jon Williams
    Applications Engineer, Parallax
    Dallas Office
  • MarkVMarkV Posts: 12
    edited 2004-10-24 19:24
    Hi,
  • MarkVMarkV Posts: 12
    edited 2004-10-24 19:52
    Hi,

    I am also experiencing the same type of error, " [noparse][[/noparse]Error IDE-0022] Error reading from the serial port (timeout)." on my new USB BOE connected to my Dell 8300 (3.0 Ghz Pentium 4.0, 1.0 GB Ram) which is running Windows XP Professional Version 202 Service Pack 2.

    I am using version 1.0.2154.0 of the FTDI driver, which I downloaded from www.ftdichip.com. (The Parallax USB BOE web page indicates that drivers are not necessary on Windows XP systems. However, my computer would not recognize the hardware so I had to get the drivers from FTDI.)

    After installing the drivers, the Javelin appears on COM Port 5. Using the "Identify" Command, the Javelin Stamp IDE (V2.0.3), can see the Javelin on Port 5. Also the "Test Connection" appears to execute successfully. However, any attempt to download code to the Javelin using the "Program" command ends in an " [noparse][[/noparse]Error IDE-0022] Error reading from the serial port (timeout)." error.

    Any suggestions to fix this problem? Thanks!
  • Peter VerkaikPeter Verkaik Posts: 3,956
    edited 2004-10-24 21:15
    Set the FIFO settings for that comport as low as possible.

    That sometimes helps.

    regards peter
  • MarkVMarkV Posts: 12
    edited 2004-10-26 14:37
    Peter,

    I tried decreasing the both the COMPORT receive and transmits buffer size. Neither change fixed the problem. I still get the " [noparse][[/noparse]Error IDE-0022] Error reading from the serial port (timeout)." error.

    Mark
  • WorapohtWorapoht Posts: 17
    edited 2004-10-27 18:35
    Mark,

    [noparse][[/noparse]Error IDE-0022] cause of mapped port number is COM5, it's not direct support on Javelin IDE (valid on COM1-COM4).
    it's need to modified by edit registry key HKEY_CURRENT_USE\Software\ParallaxInc\JavelinStamp\
    and changed value that Jon had told above..

    or force FTDI USB to Serial port number within COM1-COM4 (that's currently not in used) on top most combobox on property near FIFO Rx-Tx buffer

    It's should to be okay.
  • MarkVMarkV Posts: 12
    edited 2004-10-29 00:36
    I have tried both and neither solves the problem.

    When I am using COM5, I am able to get the Javelin IDE to recognize COM5 by deleting all the ports listed in the "Edit Port List" dialog and typing the "auto" button in that dialog. At that point, the Javelin IDE seems to recognize that a Javelin in on COM5 (the "Identify" and "Test Connection" functions work). However, I get [noparse][[/noparse]Error IDE-0022] when I try to download. If I use REGEDIT at this time, one of the ValidPort will already be 5, so I don't need to edit any ValidPort.

    I have also changed COM5 to COM2 and I still get the same problems. The Javelin IDE is able to see the Javelin at COM2 (in the "Indentify" and "Test Connection" function), but errors out [noparse][[/noparse]Error IDE-0022] during a download.


    Mark
  • Peter VerkaikPeter Verkaik Posts: 3,956
    edited 2004-10-29 07:28
    Are the comport settings for handshake set to none?

    If it is set to hardware (RTS/CTS) that may be a problem.

    regards peter
  • 4ish4ish Posts: 24
    edited 2005-09-26 04:47
    did anyone manage to finally find a fix for this problem? I have the same problem and I've tried all the suggestions mentioned in the few threads regarding this topic, no one seems to have found a proper solution for it though...

    anyone?

    thanks
  • 4ish4ish Posts: 24
    edited 2005-09-26 04:56
    oh and one more thing... I'm not able to run any other program either... no matter what program I try to run (helloworld or whatever) it still seems to run terminaltest.java from the projects folder... I've tried deleting the file, restarting the computer, but it still manages to load that, which always runs into that same error...

    someone please help... thanks again
  • Ryan ClarkeRyan Clarke Posts: 738
    edited 2005-09-27 16:48
    You *can* use higher port numbers, I run the Javelin IDE on port 9 with a PDB all the time here. You DO have to go into the IDE and add the port.

    I am following the Javelin IDE closely right now-

    Jon is correct, certain USB to Serial devices DO NOT WORK. Certain ones do. I do not have an 'official' list as of yet.

    Ryan

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Ryan Clarke
    Parallax Tech Support

    RClarke@Parallax.com
  • Martin P.Martin P. Posts: 3
    edited 2007-03-29 21:34
    Hi there,

    I recently bought the Professional Development Board (PDB) together with the Javelin Stamp module. My problem is, that I can't program that module with either of my computers (the IDE can detect it on any COM port, even comunication works). I'm always getting the same errors as you guys did: [noparse][[/noparse]Error IDE-0022] Error reading from the serial port (timeout).
    I'm using the latest USB <-> Serial drivers from FTDI (2.00.0). I checked all my settings; baud rate, COM port #, etc.. but nothing works out!

    Please help me!

    Thank you,
    Martin
  • Chris SavageChris Savage Parallax Engineering Posts: 14,406
    edited 2007-03-30 14:15
    Martin,

    If you have a Serial Port try the standard Serial Port connection. The USB connection and the USB-BOE seem to have an unknown issue with timing once a very small program has been downloaded to the Javelin. You may need access to a PC with an on-board Serial Port to get a larger program downloaded, essentially refreshing the Javelin. I hope this helps. Take care.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Chris Savage
    Parallax Tech Support
  • Martin P.Martin P. Posts: 3
    edited 2007-03-31 01:11
    Well, the problem is, that I wasn't able to download anything to my Javelin yet. And my laptop doesn't have a serial port. that's why I wanted to use the USB port instead of a common serial port... Well, I have a desktop PC, but the problem is, that I don't have a serial cable right now. Alright, I could ask a friend, who has the BASIC Stamp board, but I don't think he'll just give that to me.. heehee
    I just hope, that FTDI can find a solution concerning this matter (If they know about this, that is)...

    Martin.
  • Chris SavageChris Savage Parallax Engineering Posts: 14,406
    edited 2007-03-31 02:42
    Martin, honestly it may not be an issue with FTDI. It's definately some sort of serial port timing situation, but a virtual COM Port will never be identical in terms of timing. Besides, the same symptoms don't seem to occur when using the USB to 232 adapter on a serial board, so there are still unknowns. I know it can be frustrating and I apologize for that. If you are unable to program it by Monday give me a call in Tech Support and we'll see what options are available. Take care.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Chris Savage
    Parallax Tech Support
  • Martin P.Martin P. Posts: 3
    edited 2007-03-31 03:23
    Thank you Chris, I really appreciate your help!
Sign In or Register to comment.