Pb installing firmware with IR tower

This is where you talk about the RCX software itself, installation issues, and programming talk.

Moderator: roger

touffik
New User
Posts: 2
Joined: Wed Apr 11, 2007 7:54 am

Pb installing firmware with IR tower

Postby touffik » Wed Apr 11, 2007 7:58 am

Hey folks,
i was installing leJos 3.0 RC but after having set paths .. when I start firmdl.bat the shell returns me an error : Tower error : bar ir link.
However, I tryed to setup the lego's firmware with the same tower and using lego SDK and it works.
My paths are correct.

I'm running windows xp sp2 with a RCX1.0 block and and IR tower plugs in COM1

I know you have often heard this kind of message but i tryed all I found on the internet and nothing work..

Best regards

mdsmitty
Novice
Posts: 78
Joined: Tue Feb 27, 2007 3:07 am
Contact:

Postby mdsmitty » Thu Apr 12, 2007 1:50 am

If i recall properly at one time the serial interface was broken. But looking though old emails from the list i was unable to find the message with how to fix it. You could always get a tower from lego education.

touffik
New User
Posts: 2
Joined: Wed Apr 11, 2007 7:54 am

Postby touffik » Thu Apr 12, 2007 8:30 am

Although i succeed to upload the firmware from lejos 2 but the 3's version doesn't work ..

hok
New User
Posts: 2
Joined: Wed Aug 08, 2007 8:08 pm

Postby hok » Thu Aug 09, 2007 2:31 pm

touffik wrote:Although i succeed to upload the firmware from lejos 2 but the 3's version doesn't work ..


The tower is definitely not the problem here.

I have the same problem: firmdl.bat with lejos 2.1.0 works well, but when I use lejos 3.0.0-RC2 I get the same error:

Tower error: bad ir link. (This is with Java 1.4 or 5)

With Java 6, the error message is more elaborate, but still it doesn't work:

Code: Select all

D:\src\LEJOS\bin>firmdl.bat
read firmware srec
  100%
Installing firmware
Loading native libs
#
# An unexpected error has been detected by Java Runtime Environment:
#
#  EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x02fd1fe8, pid=4020, tid=800
#
# Java VM: Java HotSpot(TM) Client VM (1.6.0_02-b05 mixed mode, sharing)
# Problematic frame:
# C  [irtrcx.dll+0x1fe8]
#
# An error report file with more information is saved as hs_err_pid4020.log
#
# If you would like to submit a bug report, please visit:
#   http://java.sun.com/webapps/bugreport/crash.jsp
#


I am not a JNI expert, but it seems that Java code and native dll don't fit. (Just a guess)

The mentioned error log file is here:

#
# An unexpected error has been detected by Java Runtime Environment:
#
# EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x02fd1fe8, pid=4020, tid=800
#
# Java VM: Java HotSpot(TM) Client VM (1.6.0_02-b05 mixed mode, sharing)
# Problematic frame:
# C [irtrcx.dll+0x1fe8]
#
# If you would like to submit a bug report, please visit:
# http://java.sun.com/webapps/bugreport/crash.jsp
#

--------------- T H R E A D ---------------

Current thread (0x00297000): JavaThread "main" [_thread_in_native, id=800]

siginfo: ExceptionCode=0xc0000005, reading address 0x00385008

Registers:
EAX=0x00384fc8, EBX=0x0090da30, ECX=0x00001000, EDX=0x00384fc8
ESP=0x0090da00, EBP=0x0090da68, ESI=0x00000000, EDI=0x00001000
EIP=0x02fd1fe8, EFLAGS=0x00010206

Top of Stack: (sp=0x0090da00)
0x0090da00: 00000000 0090da30 0090da40 7ffdc000
0x0090da10: 0090da68 7c80243c 0090da2c 7c80240f
0x0090da20: 00297000 fe10fe10 000004c4 0090da50
0x0090da30: 7c8308cf 7c90d8ef 7c865d12 000004c0
0x0090da40: 000004c4 00000000 00000000 7c90d592
0x0090da50: 7c809b8b 000004c4 0090da78 00384fc8
0x0090da60: 0090daa0 00297000 0090da88 02fd134c
0x0090da70: 00384fc8 0090daa0 00001000 00000001

Instructions: (pc=0x02fd1fe8)
0x02fd1fd8: 83 ec 5c 8d 5d c8 8b 7d 10 89 5c 24 04 8b 55 08
0x02fd1fe8: 8b 42 40 89 04 24 e8 5d 0a 00 00 c7 45 c8 ff ff


Stack: [0x008c0000,0x00910000), sp=0x0090da00, free space=310k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
C [irtrcx.dll+0x1fe8]
C [irtrcx.dll+0x134c]
C [irtrcx.dll+0x19dc]
C [irtrcx.dll+0x1d72]
C [jirtrcx.dll+0x12c9]
j josx.rcxcomm.Tower.open(Ljava/lang/String;Z)I+0
j josx.rcxcomm.Tower.openTower(Z)V+6
j js.tools.Download.open(Ljava/lang/String;Z)V+60
j js.tools.FirmdlTool.start(Ljs/tools/FirmdlTool$Image;Ljava/lang/String;ZZ)V+186
j js.tools.FirmdlTool.start(Ljava/lang/String;ZZ)V+14
j js.tools.Firmdl.start([Ljava/lang/String;)V+84
j js.tools.Firmdl.main([Ljava/lang/String;)V+17
v ~StubRoutines::call_stub

Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
j josx.rcxcomm.Tower.open(Ljava/lang/String;Z)I+0
j josx.rcxcomm.Tower.openTower(Z)V+6
j js.tools.Download.open(Ljava/lang/String;Z)V+60
j js.tools.FirmdlTool.start(Ljs/tools/FirmdlTool$Image;Ljava/lang/String;ZZ)V+186
j js.tools.FirmdlTool.start(Ljava/lang/String;ZZ)V+14
j js.tools.Firmdl.start([Ljava/lang/String;)V+84
j js.tools.Firmdl.main([Ljava/lang/String;)V+17
v ~StubRoutines::call_stub

--------------- P R O C E S S ---------------

Java Threads: ( => current thread )
0x02a7d800 JavaThread "Low Memory Detector" daemon [_thread_blocked, id=2580]
0x02a79c00 JavaThread "CompilerThread0" daemon [_thread_blocked, id=4088]
0x02a77c00 JavaThread "Attach Listener" daemon [_thread_blocked, id=2376]
0x02a76c00 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=3328]
0x02a72400 JavaThread "Finalizer" daemon [_thread_blocked, id=3264]
0x02a6e000 JavaThread "Reference Handler" daemon [_thread_blocked, id=1752]
=>0x00297000 JavaThread "main" [_thread_in_native, id=800]

Other Threads:
0x02a64c00 VMThread [id=1844]
0x02a7f000 WatcherThread [id=2812]

VM state:not at safepoint (normal execution)

VM Mutex/Monitor currently owned by a thread: None

Heap
def new generation total 960K, used 542K [0x22990000, 0x22a90000, 0x22e70000)
eden space 896K, 53% used [0x22990000, 0x22a07b68, 0x22a70000)
from space 64K, 100% used [0x22a80000, 0x22a90000, 0x22a90000)
to space 64K, 0% used [0x22a70000, 0x22a70000, 0x22a80000)
tenured generation total 4096K, used 255K [0x22e70000, 0x23270000, 0x26990000)
the space 4096K, 6% used [0x22e70000, 0x22eaffb0, 0x22eb0000, 0x23270000)
compacting perm gen total 12288K, used 111K [0x26990000, 0x27590000, 0x2a990000)
the space 12288K, 0% used [0x26990000, 0x269abed8, 0x269ac000, 0x27590000)
ro space 8192K, 66% used [0x2a990000, 0x2aedd978, 0x2aedda00, 0x2b190000)
rw space 12288K, 52% used [0x2b190000, 0x2b7d9cb8, 0x2b7d9e00, 0x2bd90000)

Dynamic libraries:
0x00400000 - 0x00423000 D:\Program Files\Java\jdk1.6.0_02\bin\java.exe
0x7c900000 - 0x7c9b0000 C:\WINNT\system32\ntdll.dll
0x7c800000 - 0x7c8f5000 C:\WINNT\system32\kernel32.dll
0x77dd0000 - 0x77e6b000 C:\WINNT\system32\ADVAPI32.dll
0x77e70000 - 0x77f01000 C:\WINNT\system32\RPCRT4.dll
0x7c340000 - 0x7c396000 D:\Program Files\Java\jdk1.6.0_02\jre\bin\msvcr71.dll
0x6d870000 - 0x6dab9000 D:\Program Files\Java\jdk1.6.0_02\jre\bin\client\jvm.dll
0x7e410000 - 0x7e4a0000 C:\WINNT\system32\USER32.dll
0x77f10000 - 0x77f57000 C:\WINNT\system32\GDI32.dll
0x76b40000 - 0x76b6d000 C:\WINNT\system32\WINMM.dll
0x76390000 - 0x763ad000 C:\WINNT\system32\IMM32.DLL
0x629c0000 - 0x629c9000 C:\WINNT\system32\LPK.DLL
0x74d90000 - 0x74dfb000 C:\WINNT\system32\USP10.dll
0x77c10000 - 0x77c68000 C:\WINNT\system32\msvcrt.dll
0x6d3c0000 - 0x6d3c8000 D:\Program Files\Java\jdk1.6.0_02\jre\bin\hpi.dll
0x76bf0000 - 0x76bfb000 C:\WINNT\system32\PSAPI.DLL
0x6d820000 - 0x6d82c000 D:\Program Files\Java\jdk1.6.0_02\jre\bin\verify.dll
0x6d460000 - 0x6d47f000 D:\Program Files\Java\jdk1.6.0_02\jre\bin\java.dll
0x6d860000 - 0x6d86f000 D:\Program Files\Java\jdk1.6.0_02\jre\bin\zip.dll
0x10000000 - 0x10008000 D:\src\LEJOS\bin\jirtrcx.dll
0x02fd0000 - 0x02fd9000 D:\src\LEJOS\bin\irtrcx.dll

VM Arguments:
jvm_args: -Djava.library.path=D:\src\LEJOS\bin
java_command: js.tools.Firmdl --tty COM1
Launcher Type: SUN_STANDARD

Environment Variables:
JAVA_HOME=D:\Program Files\Java\jdk1.6.0_02
CLASSPATH=.;C:\Program Files\hok\Java;D:\Java\other\junit\junit3.8.1\junit.jar;D:\Java\other\jakarta-regexp-1.4\jakarta-regexp-1.4.jar;D:\Java\other\jfcunit\jfcunit.jar;D:\src\LEJOS\lib\classes.jar;D:\src\LEJOS\lib\pcrcxcomm.jar
PATH=D:\Programme\Perl\bin\;D:\Programme\MinGW\bin;D:\Programme\Tcl\bin;D:\Programme\msys\1.0\bin;C:\Program Files\CatPC\Bin;C:\Program Files\CatPC\Windows\System32;D:\Programme\Python24;C:\WINNT\system32;C:\WINNT;C:\WINNT\System32\Wbem;C:\Program Files\Rational\ClearCase\bin;C:\Program Files\Common Files\GTK\2.0\bin;;C:\home\mplayer;C:\Program Files\doxygen\bin;D:\Programme\Common Files\GTK\2.0\bin;D:\Programme\doxygen\bin;D:\Programme\splint-3.1.1\bin;C:\Program Files\IXOS\bin;D:\Programme\QuickTime\QTSystem\;D:\Program Files\Java\jdk1.6.0_02\bin;D:\src\LEJOS\bin;D:\Program Files\hok;D:\Java\other\jwsdp-1.6\jwsdp-shared\bin;D:\Java\other\apache-ant-1.6.5\bin;D:\Java\other\JacORB\bin
USERNAME=dems16v0
OS=Windows_NT
PROCESSOR_IDENTIFIER=x86 Family 15 Model 3 Stepping 4, GenuineIntel



--------------- S Y S T E M ---------------

OS: Windows XP Build 2600 Service Pack 2

CPU:total 2 (1 cores per cpu, 2 threads per core) family 15 model 3 stepping 4, cmov, cx8, fxsr, mmx, sse, sse2, sse3, ht

Memory: 4k page, physical 2087404k(1216608k free), swap 4021820k(3203592k free)

vm_info: Java HotSpot(TM) Client VM (1.6.0_02-b05) for windows-x86, built on Jun 14 2007 15:45:56 by "java_re" with unknown MS VC++:1310


dvdboom
New User
Posts: 5
Joined: Wed Nov 19, 2008 10:41 pm

serial ir tower RC 3.0

Postby dvdboom » Fri Oct 29, 2010 5:47 pm

Hi everyone,

same here, 3.0 RC won't upload the firmware to the RCX with a serial IR tower. Tried a lot of things but no success ... just "bad ir link"
I hope one of the developers has a look before the candidate gets released, because all the fun stops if you can't start ;-)
Back to the prior release for now i guess.


regards,

DvdBoom

3dp
New User
Posts: 3
Joined: Sun May 02, 2010 12:59 am

Postby 3dp » Tue Dec 21, 2010 5:08 am

Did anyone ever get 3.0 to work with an RCX? We're having the same problem!

Walt White
Novice
Posts: 44
Joined: Sun Aug 06, 2006 11:57 pm
Location: California Central Valley

Postby Walt White » Wed Dec 22, 2010 1:41 am

Yes, I got the leJOS RCX version 3.0 to work within Eclipse, running Windows XP Service Pack 3. I can download the firmware from Eclipse and download programs to the RCX from Eclipse.

However, I have always had a USB connected IR Tower. I have never owned a serial tower that had to be configured as a COM port.

Have you tried looking online for a USB IR Tower?

Walt


Return to “RCX Software”

Who is online

Users browsing this forum: No registered users and 0 guests