Shop OBEX P1 Docs P2 Docs Learn Events
Problem Downloading to Javelin — Parallax Forums

Problem Downloading to Javelin

tbonesontboneson Posts: 2
edited 2005-04-25 16:11 in General Discussion
I am having trouble programming my Javelin. While I was downloading a program using the IDE I noticed an error in my code so I pressed the cancel button, intending to fix the error and download it again. When I tried to download the corrected program, or any other program such as the Hello World example I now get the following error:

[noparse][[/noparse]Error IDE-0024] Unknown bytecode in the JEM file (ldc2_w).

The Javelin is still seen correctly in the Identify window.

Using the Test Connection command I get:

[noparse][[/noparse]Debug] Found connected Javelin Stamp, now testing for power
[noparse][[/noparse]Debug] Resetting
[noparse][[/noparse]Debug] TSXComm::QueryStatus
[noparse][[/noparse]Debug] TSXComm::SendCommand(1)
[noparse][[/noparse]Debug] Received data on serial port
[noparse][[/noparse]Debug] TSXComm::Got kComEndLoad
[noparse][[/noparse]Debug] Received data on serial port
[noparse][[/noparse]Debug] TSXComm::QueryStatus
[noparse][[/noparse]Debug] TSXComm::SendCommand(1)
[noparse][[/noparse]Error IDE-0024] Unknown bytecode in the JEM file (ldc2_w).

I have tried a fresh 9V battery with the same results.
I am guessing the problem is on the Javelin itself because this happens for different programs. Is there some way to reset the Javelin so it will accept downloads again?

Thanks,
-Ben

Comments

  • dandreaedandreae Posts: 1,375
    edited 2005-04-23 23:24
    Is it possible to use a wal-mount power supply?· If so, this give us more information to work with.· There is no way to reset the Javelin to accept a program.· If it still doesn't work you can contact·Parallax's tech support at·1-888-997-8267 and have your set up ready to test in front of you.

    Dave··

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Dave Andreae

    Tech Support
    dandreae@parallax.com
    www.parallax.com

    ·
  • tbonesontboneson Posts: 2
    edited 2005-04-25 15:37
    Trying the wall-mount power supply helped. When I did that I also used a different computer and the actual problem appears to be the serial to usb adapter I was using on the first computer. When using the adapter, during a download the Javelin IDE tries to run the program after resetting it. When I run the IDE on a computer with a serial port, the Javelin is reset and the download is immediately started, it does not run the program first. Because the program that was on the Javelin was not complete and running, it would error out and the IDE would not start downloading after the program ran.

    After putting a working HelloWorld test on the Javelin, the computer with the adapter was able to program the stamp just fine. That is until I downloaded a program that took longer to run then the serial time-out value. In this case I would get a serial time-out error when trying to download a program because the IDE was waiting for the current program on the Javelin to finish before downloading a new one.

    It appears that though my adapter was able to program the Javelin in some cases, I will need to use a real serial port for consistent operation.

    Thanks,
    -Ben
  • Chris SavageChris Savage Parallax Engineering Posts: 14,406
    edited 2005-04-25 16:11
    Ben,

    ·· This is most likely one of two issues that you could be having with the USB Adapter.· The most likely is a latency setting.· This could also be true if it's the FTDI Adapter we sell being used on a laptop.· In any event, open your Device Manager (Control Panel/System/Hardware) and go to Ports.· Find the USB Adapter in the ports section and double click it's icon.· In the properties sheet, select Port Settings, then Advanced.

    ·· If you have an option for FIFO Buffers, uncheck it.· If you have an option for Latency Settings, usually under BM Options, set the value to 1.· You will probably have to restart your computer for the settings to take effect.· If this doesn't work, let me know.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Chris Savage
    Parallax Tech Support
    csavage@parallax.com
Sign In or Register to comment.