Error when uploading standard program to NXT?

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

Moderators: 99jonathan, roger, imaqine

Error when uploading standard program to NXT?

Postby p-moynihan » Wed Jun 04, 2014 11:24 am

Hello,
I am receiving an error when trying to connect upload the hello world example to the brick.

The brick hangs when I try to upload the program and then the bricks turns itself off outputting this message:

Code: Select all
leJOS NXJ> Linking...
leJOS NXJ> Uploading...
Found NXT: NXT 00165312C15B
Got exception during close: java.io.IOException: Error in write
java.io.IOException: Error in write
   at lejos.pc.comm.NXTCommUSB.rawWrite(NXTCommUSB.java:271)
   at lejos.pc.comm.NXTCommUSB.flushBuffer(NXTCommUSB.java:212)
   at lejos.pc.comm.NXTCommUSB.write(NXTCommUSB.java:556)
   at lejos.pc.comm.NXTCommUSB.sendRequest(NXTCommUSB.java:496)
   at lejos.nxt.remote.NXTCommand.openWrite(NXTCommand.java:175)
   at lejos.nxt.remote.NXTCommand.uploadFile(NXTCommand.java:398)
   at lejos.pc.tools.Upload.upload(Upload.java:46)
   at lejos.pc.tools.NXJLinkAndUpload.run(NXJLinkAndUpload.java:148)
   at lejos.pc.tools.NXJLinkAndUpload.start(NXJLinkAndUpload.java:49)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
   at java.lang.reflect.Method.invoke(Method.java:606)
   at lejos.pc.tools.ToolStarter.startTool(ToolStarter.java:31)
   at lejos.pc.tools.NXJLinkAndUpload.main(NXJLinkAndUpload.java:42)


I have both libusb-1 and 0.1-4 so I dont think it is that.

Anybody encounter a similar problem? I have looked but cant seem to find a solution.

Kind Regards,
p-moynihan
p-moynihan
New User
 
Posts: 2
Joined: Wed Jun 04, 2014 11:04 am

Re: Error when uploading standard program to NXT?

Postby gloomyandy » Wed Jun 04, 2014 11:31 am

What version of leJOS? What PC operating system? If on a PC or a Mac what version of the Lego Fantom driver? Has this ever worked for you, if it did what has changed since it was working? Can you run tne nxjbrowsse program? Does it work? What sort of USB port are you using? If it is a USB 3 port please try using a USB 2 port.
User avatar
gloomyandy
leJOS Team Member
 
Posts: 4174
Joined: Fri Sep 28, 2007 2:06 pm
Location: UK

Re: Error when uploading standard program to NXT?

Postby p-moynihan » Wed Jun 04, 2014 11:41 am

Different port worked (luckly my laptop has both)... Thank you so much. :D
p-moynihan
New User
 
Posts: 2
Joined: Wed Jun 04, 2014 11:04 am


Return to NXJ Software

Who is online

Users browsing this forum: Yahoo [Bot] and 2 guests

more stuff