Shop OBEX P1 Docs P2 Docs Learn Events
debug error — Parallax Forums

debug error

chino angelochino angelo Posts: 20
edited 2008-02-01 13:48 in General Discussion
when i tried to do CountDown'java and debug it like what it says in the manual, i get the error message "unable to do line number translation in pc=%d" can you pls help me...

the message window doesnt appear also when i tried to run porgrams such as "HelloWorld" and others...

--Chino

Comments

  • chino angelochino angelo Posts: 20
    edited 2008-01-30 02:29
    here is the picture of the error..
    1280 x 800 - 127K
  • Peter VerkaikPeter Verkaik Posts: 3,956
    edited 2008-01-30 08:20
    Have you tried the suggestion to download again?
    (command Project->Program)

    If that does not help, try restarting your pc. Yesterday I had an issue with
    a serial port in that apparently it did not receive characters,· but the device
    connected to the serial port was transmitting and had been working all day.
    After I restarted my PC the serial port worked again.
    Now, the IDE message window only comes up if the IDE receives some data from the serial port,
    so perhaps the serial port is locked up as it was on my PC.

    regards peter
  • chino angelochino angelo Posts: 20
    edited 2008-01-30 11:30
    what do these lines mean??

    error shows: "UnABLE TO DO LINE NUMBER for pc = %d"

    description: the translation from the program counter to a line number
    could not be performed.

    Solution: the .jem file on the device is probably not current with the
    one in memory. try downloading again."

    i already tried downloading it again, restarting my pc and the
    program... still no luck. [noparse]:([/noparse]
  • Peter VerkaikPeter Verkaik Posts: 3,956
    edited 2008-01-30 11:57
    The lines mean that the IDE has in its memory a program
    that differs from the program in the javelin. That's why you
    must download your program again.
    To download:
    Do you use Project->Program
    or do you use Project->Debug?
    I suggest you try Project->Program after closing all files
    except the file that you want to download. This file
    must have a static void main() method.
    The CountDown.java will do.

    Then tell us your exact setup:
    What Windows OS do you use (win98,winXP,Vista)
    What board do you use (Javelin DemoBoard, Super Carrier Board, Board of Education)
    How do you power the javelin (adapter or batteries)
    What connection do you use to program the javelin (USB2SER cable or serial port connection)

    regards peter
  • chino angelochino angelo Posts: 20
    edited 2008-01-30 14:15
    I am using Vista. I bought the Javelin Starter Kit. and i'm using prolific usb to serial adapter, i already installed a driver for it... and right now i cant download... (just yesterday i was able to download with no messages) but now i can't download also...
  • chino angelochino angelo Posts: 20
    edited 2008-01-30 14:19
    I am using a 3 to 15 volts adapter and i'm powering it at 12 volts...
  • Peter VerkaikPeter Verkaik Posts: 3,956
    edited 2008-01-30 16:01
    This usb2ser cable you are using is probably the source of your errors.
    The prolific website
    http://www.prolific.com.tw/eng/downloads.asp?ID=31
    does provide drivers but not for Vista. I have a prolific usb2ser cable
    myself and luckily that one does work with the prolific driver. I use winXP.
    Prolific does give four links to manufacturers of Vista drivers.
    Maybe these are useful.

    You should get yourself a usb2ser cable with FTDI chipset like
    the ones Parallax sells. These are guaranteed to work with all
    products Parallax sells and support Vista.
    http://www.parallax.com/Store/Accessories/CablesConverters/tabid/166/CategoryID/40/List/0/Level/a/ProductID/379/Default.aspx?SortField=ProductName%2cProductName

    regards peter
  • chino angelochino angelo Posts: 20
    edited 2008-01-31 07:53
    It still doesnt work... after compiling i can download the program, but after that i cant perform what it was supposed to do...

    the same is true with the message window.. it doesnt show up... [noparse]:([/noparse] is it possible that my stamp is bot working properly? one more error i encountered is that

    it says about icompatible firmware.. (i forgot the exact words though)... please help me..
  • Peter VerkaikPeter Verkaik Posts: 3,956
    edited 2008-01-31 08:52
    I don't think there is anything wrong with your javelin or your board.
    I suspect it is the usb-to-serial cable you use. Many usb2ser cables don't
    work properly due to timing requirements. The effect is that downloads sometimes
    work or appear to work but then all kinds of errors arise.
    Are you still using that prolific cable?

    Again:
    You should get yourself a usb2ser cable with FTDI chipset like
    the ones Parallax sells. These are guaranteed to work with all
    products Parallax sells and support Vista.
    http://www.parallax.com/Store/Accessories/CablesConverters/tabid/166/CategoryID/40/List/0/Level/a/ProductID/379/Default.aspx?SortField=ProductName%2cProductName

    regards peter
  • chino angelochino angelo Posts: 20
    edited 2008-01-31 12:49
    Actually the same thing happens when i'm connecting it to a pc with com port.. (so its straight through) i tried it with 2 PC.. but the same thing happens...

    Why do i still get those kind of messages if i'm using astraight through? we were stucked here... I can't even run any programs now... [noparse]:([/noparse]

    Is there any way?
  • Peter VerkaikPeter Verkaik Posts: 3,956
    edited 2008-01-31 14:53
    Have you tried it on a PC running winXP or win98 (not Vista !!)
    with a com port? The IDE is developed under XP so I don't know if
    there are potential problems when using Vista, though I have
    confirmation from one person that runs the IDE from Vista
    that it works.

    regards peter
  • Chris SavageChris Savage Parallax Engineering Posts: 14,406
    edited 2008-01-31 15:54
    Chino,

    On the PC with the serial port, have you tried disabling the FIFO buffers on the port? Does that PC have any Palm/PDA software installed, such as Active/Hot-Sync? Have you tried using the Prime-Javelin program from the PC with the serial port?

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Chris Savage
    Parallax Tech Support
  • chino angelochino angelo Posts: 20
    edited 2008-02-01 01:31
    I already tried it in winxp and 98.. (with usb2serial cable and com port cable) and the error still shows... i also tried what you suggested.. is there any other way?
  • Peter VerkaikPeter Verkaik Posts: 3,956
    edited 2008-02-01 09:00
    Chino,
    That PC with the com port, does that happen to be a Dell PC ?
    If so, what type? There are two other recent threads about problems
    using the com port and those users have a·Dell PC.

    regards peter
  • chino angelochino angelo Posts: 20
    edited 2008-02-01 13:48
    Peter,

    I am using HP DV6607nr for my laptop.... I'm not using dell, but i will look at the link also... thanks

    Chino
Sign In or Register to comment.