energia / Energia

Fork of Arduino for the Texas Instruments LaunchPad's
http://energia.nu
Other
795 stars 671 forks source link

FIXED — StellarPad — Successful Build but Upload Error on Mac OS X #116

Closed rei-vilo closed 11 years ago

rei-vilo commented 11 years ago

On Mac OS X 10.8.1, I installed the lm4f tools from http://github.com/energia/energia_tools/downloads under the folder /Applications/Energia.app/Contents/Resources/Java/hardware/tools/

The sketch compiles successfully but the upload doesn't seem to work.

Here the error message:

/Users/rei_vilo/github/Energia/build/macosx/work/Energia-StellarPad.app/Contents/Resources/Java/hardware/tools/lm4f/openocd/openocd null --force-reset prog /var/folders/95/qchnfz9d0854_3931bv30gt80000gn/T/build4942397272841147124.tmp/Blink.cpp.hex java.lang.NullPointerException at java.lang.ProcessBuilder.start(ProcessBuilder.java:442) at java.lang.Runtime.exec(Runtime.java:593) at java.lang.Runtime.exec(Runtime.java:466) at processing.app.debug.Uploader.executeUploadCommand(Uploader.java:125) at processing.app.debug.LM4FUploader.mspdebug(LM4FUploader.java:89) at processing.app.debug.LM4FUploader.uploadUsingPreferences(LM4FUploader.java:41) at processing.app.Sketch.upload(Sketch.java:1717) at processing.app.Sketch.exportApplet(Sketch.java:1666) at processing.app.Sketch.exportApplet(Sketch.java:1636) at processing.app.Editor$DefaultExportHandler.run(Editor.java:2376) at java.lang.Thread.run(Thread.java:680) at processing.app.debug.Uploader.executeUploadCommand(Uploader.java:125) at processing.app.debug.LM4FUploader.mspdebug(LM4FUploader.java:89) at processing.app.debug.LM4FUploader.uploadUsingPreferences(LM4FUploader.java:41) at processing.app.Sketch.upload(Sketch.java:1717) at processing.app.Sketch.exportApplet(Sketch.java:1666) at processing.app.Sketch.exportApplet(Sketch.java:1636) at processing.app.Editor$DefaultExportHandler.run(Editor.java:2376) at java.lang.Thread.run(Thread.java:680)

robertinant commented 11 years ago

Mac and Linux are not profisioned with an upload tool yet because it didn't exist ;0 Now that @utzig has created lm4flash, w'll soon update IDE and tools to take advantage of that.

rei-vilo commented 11 years ago

I've ß-tested lm4flash and it works fine.

You just may need to launch it a couple of time, and unplug / plug the StellarPad.

I used it successfully with my embedXcode template.

So I close the issue.

RickKimball commented 11 years ago

https://github.com/RickKimball/lm4tools/tree/master/lm4flash .. that one doesn't do a double erase.

rei-vilo commented 11 years ago

Thank you very much! This new release of lm4flash works the first time.

I can now build, link and upload from Xcode to my StellarPad!

Very nice.