Pages: [1]   Go Down
Author Topic: Can't upload prog from Mac intl PB  (Read 340 times)
0 Members and 1 Guest are viewing this topic.
0
Offline Offline
Newbie
*
Karma: 0
Posts: 2
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi,

When I try to upload a program from Arduino I get the following message in red in the serial window area  below the program area:

java.lang.NullPointerException
      at processing.app.Serial.setDTR(Serial.java:480)
      at processing.app.Uploader.flushSerialBuffer(Uploader.java:76)
      at processing.app.AvrdudeUploader.uploadUsingPreferences(AvrdudeUploader.java:69)
      at processing.app.Sketch.upload(Sketch.java:1699)
      at processing.app.Sketch.exportApplet(Sketch.java:1761)
      at processing.app.Editor$42.run(Editor.java:1955)
      at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
      at java.awt.EventQueue.dispatchEvent(EventQueue.java:461)
      at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:269)
      at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:190)
      at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:184)
      at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:176)
      at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)

Any idea what is wrong? The port works with a mouse. The board was working yesterday on a different (PPC) powerBook. I'm trying to upload the "blink" program.

Thanks,

ergoman
Logged

Brisbane, Australia
Offline Offline
God Member
*****
Karma: 1
Posts: 593
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Thats a fancy way of saying "I cant find the Serial port." smiley

Double check that you've selected the correct one and that all the cables are connected properly.
Logged

0
Offline Offline
Newbie
*
Karma: 0
Posts: 2
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Thanks! That was the problem. I needed to select the correct serial port in the tools/serial port menu.

Wouldn't it be nice if the program error message were as clear and succinct as your message!

Ergoman
Logged

Pages: [1]   Go Up
Jump to: