0
您好我正嘗試使用Arduino Ide在BLE Nano設備上加載示例閃爍應用程序。它開始編譯,但比它崩潰BLE Nano使用Arduino Ide問題
processing.app.debug.RunnerException
at processing.app.debug.Compiler.compileHex(Compiler.java:793)
at processing.app.debug.Compiler.compile(Compiler.java:148)
at processing.app.Sketch.build(Sketch.java:1589)
at processing.app.Sketch.exportApplet(Sketch.java:1611)
at processing.app.Sketch.exportApplet(Sketch.java:1597)
at processing.app.Editor$DefaultExportHandler.run(Editor.java:2397)
at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.NullPointerException
at processing.app.helpers.StringReplacer.replaceFromMapping(StringReplacer.java:97)
at processing.app.helpers.StringReplacer.replaceFromMapping(StringReplacer.java:89)
at processing.app.helpers.StringReplacer.formatAndSplit(StringReplacer.java:37)
at processing.app.debug.Compiler.compileHex(Compiler.java:791)
... 6 more`enter code here`
所以問題是。這次事故的原因是什麼?以及如何解決它?
更新: 我用http://redbearlab.com/getting-started-nrf51822/來配置連接。 以下是示例代碼:
void setup() {
// initialize digital pin 13 as an output.
pinMode(13, OUTPUT);
}
// the loop function runs over and over again forever
void loop() {
digitalWrite(13, HIGH); // turn the LED on (HIGH is the voltage level)
delay(1000); // wait for a second
digitalWrite(13, LOW); // turn the LED off by making the voltage LOW
delay(1000); // wait for a second
}