<
From version < 30.1 >
edited by aas2
on 2016/01/05 14:40
To version < 37.1 >
edited by aas2
on 2016/11/25 16:26
>
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -12,6 +12,12 @@
12 12  
13 13  Several open-source, third-party replacements for the offical Lego firmware have been developed. These support many well known programming languages, such as Java, C/C++, Python, Lua, etc. In the following we will use KIELER SCCharts to program Mindstorms running the Lego Java Operating System ([[leJOS>>url:http://www.lejos.org/||shape="rect"]]). Therefore we will first install leJOS NXJ and flash its firmware. Afterwards we will create a simple SCCharts project in KIELER that we will compile and deploy to the NXT brick.
14 14  
15 +If you want to learn the SCCharts langugage first, you can follow these links:
16 +
17 +* [[Introduction to SCCharts>>doc:SCCharts]]
18 +* [[The Textual SCCharts Language SCT>>doc:Textual SCCharts Language SCT]]
19 +* [[SCCharts Examples>>doc:Examples]]
20 +
15 15  ----
16 16  
17 17  == Download and install leJOS ==
... ... @@ -20,6 +20,8 @@
20 20  
21 21  The further installation is explained in detail at [[http:~~/~~/www.lejos.org/nxt/nxj/tutorial/Preliminaries/GettingStarted.htm>>url:http://www.lejos.org/nxt/nxj/tutorial/Preliminaries/GettingStarted.htm||shape="rect"]].
22 22  
29 +Do not forget to flash the download leJOS firmware to the Mindstorms brick as explained in the tutorial!
30 +
23 23  === Known issues ===
24 24  
25 25  ==== Linux ====
... ... @@ -38,7 +38,7 @@
38 38  
39 39  The **leJOS NXJ** tools require a **32 Bit** version of Java. However, newer 32 Bit versions of Java are not longer available for Mac. Thus to use leJOS the installation of **Java 1.6 is required**, which is the last one that supports a 32 Bit mode. You can download the installer for Java 1.6 from [[https:~~/~~/support.apple.com/kb/dl1572?locale=en_US>>url:https://support.apple.com/kb/dl1572?locale=en_US||shape="rect"]]. It will install Java 1.6 to ///System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home// so that the environment variable //LEJOS_NXT_JAVA_HOME//, which is set in the installation instructions, points to the correct path.
40 40  
41 -The environment variable LEJOS_NXT_JAVA_HOME is set in the installation tutorial by editing ~~/.profile. However, on a Mac the environment variables defined in this file are not visible for GUI Applications, only for apps started from terminal. Thus to use leJOS together with KIELER one either has to start KIELER from terminal or set the environment variable so that all GUI applications can access it, which seems to be not trivial on Mac (see also [[http:~~/~~/stackoverflow.com/questions/135688/setting-environment-variables-in-os-x>>url:http://stackoverflow.com/questions/135688/setting-environment-variables-in-os-x||shape="rect"]]).
49 +The environment variable LEJOS_NXT_JAVA_HOME is set in the installation tutorial by editing ~~/.profile. However, on a Mac the environment variables defined in this file are not visible for GUI Applications, only for apps started from terminal. Thus to use leJOS together with KIELER, one either has to start KIELER from terminal or set the environment variable so that all GUI applications can access it. However, this does not seem to be trivial on Mac (see also [[http:~~/~~/stackoverflow.com/questions/135688/setting-environment-variables-in-os-x>>url:http://stackoverflow.com/questions/135688/setting-environment-variables-in-os-x||shape="rect"]]).
42 42  
43 43  ----
44 44  
... ... @@ -55,7 +55,7 @@
55 55  
56 56  Download and unpack the nightly build of KIELER for your OS. It is available at the [[doc:Downloads]] page.\\
57 57  
58 -**Note:** Java 1.8 is needed on all operating systems, with Java 1.7 not all plugins of KIELER will be loaded. **On Windows**, you will need to download the **32 Bit version of KIELER** – even if you have a 64 bit operating system! Otherwise flashing the brick and uploading to the brick will fail.
66 +**Note:** Java 1.8 is needed on all operating systems. With Java 1.7 not all plugins of KIELER will be loaded. **Furthermore on Windows**, you will need to download the **32 Bit version of KIELER** – even if you have a 64 bit operating system! Otherwise flashing the brick and uploading to the brick will fail.
59 59  
60 60  === The Eclipse plugin for leJOS ===
61 61  
... ... @@ -69,17 +69,19 @@
69 69  
70 70  If you have an **NXT** **brick**, install the **leJOS NXJ** Plug-in. If you have an **EV3 brick**, install the **leJOS EV3** plugin.
71 71  
80 +**Tip:** To speed up the installation, uncheck the option "Contact all update sites during install to find required software". This will reduce the installation time from drastically (around 30 seconds instead 10 minutes).
81 +
72 72  [[image:attach:lejos_eclipse_plugin.png]]
73 73  
74 74  After the installation, the plugin requires a **little configuration**. Go to //Window > Preferences > leJOS NXJ// (//Window > Preferences > leJOS EV3 //respectively) and enter the base directory of your **leJOS** **installation** in the **NXJ_HOME field**.
75 75  
76 -For EV3 the plugin requires the IP address to connect to the brick (it may work without, but its safer to directly set the name. Reduces headache ). Check **Connect to named brick** and enter the **IP adress** of the brick (displayed on the brick at startup).
86 +For EV3, the plugin requires the IP address to connect to the brick (it may work without, but its safer to directly set the name. Reduces headache ). Check **Connect to named brick** and enter the **IP adress** of the brick (displayed on the brick at startup).
77 77  
78 78  ----
79 79  
80 80  == Creating an Example Project ==
81 81  
82 -The following shows how to create a project, that will turn on a light if a button is pressed.
92 +The following shows how to create a project, which will turn on a light if a button is pressed.
83 83  
84 84  === Create a new project: ===
85 85  
... ... @@ -92,7 +92,7 @@
92 92  
93 93  Change the contents of the model file to the following code and save it.
94 94  
95 -{{code title="Floodlight.sct" theme="Eclipse" language="sct"}}
105 +{{code language="sct" theme="Eclipse" title="Floodlight.sct"}}
96 96  scchart Flashlight {
97 97  
98 98   @Wrapper TouchSensor, S4
... ... @@ -113,7 +113,7 @@
113 113  
114 114  The annotations on the input and output variable are used to define which wrapper code is used to set / read them. **@Wrapper TouchSensor, S4** will set the input variable to true iff the touch sensor on the port S4 is pressed. **@Wrapper Floodlight, S1** on the output variable will turn on the red led of the light sensor that is attatched to port S1 iff the variable is true.
115 115  
116 -The available wrapper code snippets are defined in the //snippets// directory of the project in ftl files (FreeMarker template files).
126 +The available wrapper code snippets are defined in the //snippets// directory of the project in ftl files (FreeMarker template files). The table below gives an overview of the available wrapper code snippets.
117 117  
118 118  **Note:** The Floodlight of the EV3 has a pretty high latency when switching between on and off.
119 119  
... ... @@ -128,6 +128,469 @@
128 128  
129 129  For a deeper understanding of the project launch and initialization, take a look at the [[wiki page for Prom>>url:http://rtsys.informatik.uni-kiel.de/confluence/pages/viewpage.action?pageId=13762626||shape="rect"]].
130 130  
141 +=== Available Wrapper Code Snippets ===
142 +
143 +There are several wrapper code snippets that can be used as annotations on input and output variables in the model file. These snippets are inserted in the main file template as part of the project launch. The available snippets are listed below.
144 +
145 +For sensors, the port has to be on of S1, S2, S3, S4.
146 +
147 +For motors / actuators the port has to be one of A, B, C, D.
148 +
149 +(% class="wrapped" %)
150 +|=(((
151 +Snippet Name and Parameters
152 +)))|=(((
153 +Description
154 +)))|=(((
155 +Use on
156 +)))|=(% colspan="1" %)(% colspan="1" %)
157 +(((
158 +Variable type
159 +)))|=(((
160 +Remark
161 +)))|=(% colspan="1" %)(% colspan="1" %)
162 +(((
163 +Defined in File
164 +)))
165 +|(% colspan="1" %)(% colspan="1" %)
166 +(((
167 +**Clock,** milliseconds
168 +)))|(% colspan="1" %)(% colspan="1" %)
169 +(((
170 +Sets a variable to true for one tick if the time in milliseconds passed since the last time it was set to true.
171 +)))|(% colspan="1" %)(% colspan="1" %)
172 +(((
173 +input
174 +)))|(% colspan="1" %)(% colspan="1" %)
175 +(((
176 +bool
177 +)))|(% colspan="1" %)(% colspan="1" %)
178 +(((
179 +See also ResetClock.
180 +)))|(% colspan="1" %)(% colspan="1" %)
181 +(((
182 +timing.ftl
183 +)))
184 +|(% colspan="1" %)(% colspan="1" %)
185 +(((
186 +**ResetClock,** clockVariableName, autoFalse
187 +)))|(% colspan="1" %)(% colspan="1" %)
188 +(((
189 +Resets a clock, such that the full time intervall of the clock has to elapse, before the clock will be set to true again.
190 +
191 +If autoFalse is true, the reset variable will be set to false automatically.
192 +)))|(% colspan="1" %)(% colspan="1" %)
193 +(((
194 +output
195 +)))|(% colspan="1" %)(% colspan="1" %)
196 +(((
197 +bool
198 +)))|(% colspan="1" %)(% colspan="1" %)
199 +(((
200 +autoFalse is true per default.
201 +)))|(% colspan="1" %)(% colspan="1" %)
202 +(((
203 +timing.ftl
204 +)))
205 +|(% colspan="1" %)(% colspan="1" %)
206 +(((
207 +**Time**
208 +)))|(% colspan="1" %)(% colspan="1" %)
209 +(((
210 +Reads the elapsed time since program start
211 +)))|(% colspan="1" %)(% colspan="1" %)
212 +(((
213 +input
214 +)))|(% colspan="1" %)(% colspan="1" %)
215 +(((
216 +int
217 +)))|(% colspan="1" %)(% colspan="1" %)
218 +(((
219 +
220 +)))|(% colspan="1" %)(% colspan="1" %)
221 +(((
222 +timing.ftl
223 +)))
224 +|(% colspan="1" %)(% colspan="1" %)
225 +(((
226 +**TickDuration,** targetInMilliseconds
227 +)))|(% colspan="1" %)(% colspan="1" %)
228 +(((
229 +Delays the execution until the tick loop takes at least as long as the given target duration.
230 +
231 +The input variable is set to the actual tick loop duration.
232 +)))|(% colspan="1" %)(% colspan="1" %)
233 +(((
234 +input
235 +)))|(% colspan="1" %)(% colspan="1" %)
236 +(((
237 +int
238 +)))|(% colspan="1" %)(% colspan="1" %)
239 +(((
240 +Should be used on the very first input variable in the model, such that waiting is the last action in the tick loop.
241 +)))|(% colspan="1" %)(% colspan="1" %)
242 +(((
243 +timing.ftl
244 +)))
245 +|(% colspan="1" %)(% colspan="1" %)
246 +(((
247 +**Sleep**
248 +)))|(% colspan="1" %)(% colspan="1" %)
249 +(((
250 +Lets the current thread sleep the time in milliseconds of the variable value.
251 +)))|(% colspan="1" %)(% colspan="1" %)
252 +(((
253 +output
254 +)))|(% colspan="1" %)(% colspan="1" %)
255 +(((
256 +int
257 +)))|(% colspan="1" %)(% colspan="1" %)
258 +(((
259 +
260 +)))|(% colspan="1" %)(% colspan="1" %)
261 +(((
262 +timing.ftl
263 +)))
264 +|(% colspan="1" %)(% colspan="1" %)
265 +(((
266 +**Print,** autoReset
267 +)))|(% colspan="1" %)(% colspan="1" %)
268 +(((
269 +Prints a string variable if the string is not empty. If autoReset is true then the string variable is set to the empty string after it has been printed
270 +)))|(% colspan="1" %)(% colspan="1" %)
271 +(((
272 +output
273 +)))|(% colspan="1" %)(% colspan="1" %)
274 +(((
275 +string
276 +)))|(% colspan="1" %)(% colspan="1" %)
277 +(((
278 +autoReset is true per default.
279 +)))|(% colspan="1" %)(% colspan="1" %)
280 +(((
281 +print.ftl
282 +)))
283 +|(% colspan="1" %)(% colspan="1" %)
284 +(((
285 +**DrawString,** x, y
286 +)))|(% colspan="1" %)(% colspan="1" %)
287 +(((
288 +Prints a string to the given x and y coordinate on the LCD.
289 +)))|(% colspan="1" %)(% colspan="1" %)
290 +(((
291 +output
292 +)))|(% colspan="1" %)(% colspan="1" %)
293 +(((
294 +string
295 +)))|(% colspan="1" %)(% colspan="1" %)
296 +(((
297 +
298 +)))|(% colspan="1" %)(% colspan="1" %)
299 +(((
300 +print.ftl
301 +)))
302 +|(% colspan="1" %)(% colspan="1" %)
303 +(((
304 +**Button, **buttonId
305 +)))|(% colspan="1" %)(% colspan="1" %)
306 +(((
307 +Sets a variable to true iff the button on the Mindstorms device is pressed.
308 +)))|(% colspan="1" %)(% colspan="1" %)
309 +(((
310 +input
311 +)))|(% colspan="1" %)(% colspan="1" %)
312 +(((
313 +bool
314 +)))|(% colspan="1" %)(% colspan="1" %)
315 +(((
316 +The buttonId has to be one of ENTER, LEFT, RIGHT
317 +)))|(% colspan="1" %)(% colspan="1" %)
318 +(((
319 +touch_and_buttons.ftl
320 +)))
321 +|(% colspan="1" %)(% colspan="1" %)
322 +(((
323 +**TouchSensor**, port
324 +)))|(% colspan="1" %)(% colspan="1" %)
325 +(((
326 +Sets a variable to true iff the touch sensor on the given port is pressed.
327 +)))|(% colspan="1" %)(% colspan="1" %)
328 +(((
329 +input
330 +)))|(% colspan="1" %)(% colspan="1" %)
331 +(((
332 +bool
333 +)))|(% colspan="1" %)(% colspan="1" %)
334 +(((
335 +
336 +)))|(% colspan="1" %)(% colspan="1" %)
337 +(((
338 +touch_and_buttons.ftl
339 +)))
340 +|(% colspan="1" %)(% colspan="1" %)
341 +(((
342 +**LightSensor,** port, percentValue
343 +)))|(% colspan="1" %)(% colspan="1" %)
344 +(((
345 +Reads  the value of a light sensor.
346 +
347 +If percentValue is true, the a percent value is retured, based on the light sensor calibration.
348 +)))|(% colspan="1" %)(% colspan="1" %)
349 +(((
350 +input
351 +)))|(% colspan="1" %)(% colspan="1" %)
352 +(((
353 +int
354 +)))|(% colspan="1" %)(% colspan="1" %)
355 +(((
356 +percentValue is not available on EV3
357 +)))|(% colspan="1" %)(% colspan="1" %)
358 +(((
359 +light.ftl
360 +)))
361 +|(% colspan="1" %)(% colspan="1" %)
362 +(((
363 +**CalibrateLightSensor,** port, signal
364 +)))|(% colspan="1" %)(% colspan="1" %)
365 +(((
366 +Calibrates a light sensors high or low values. This means if the variable is true, the current value of the light sensor is taken as its reference high / low value.
367 +)))|(% colspan="1" %)(% colspan="1" %)
368 +(((
369 +output
370 +)))|(% colspan="1" %)(% colspan="1" %)
371 +(((
372 +bool
373 +)))|(% colspan="1" %)(% colspan="1" %)
374 +(((
375 +signal has to be one of High, Low
376 +)))|(% colspan="1" %)(% colspan="1" %)
377 +(((
378 +light.ftl
379 +)))
380 +|(% colspan="1" %)(% colspan="1" %)
381 +(((
382 +**Floodlight,** port
383 +)))|(% colspan="1" %)(% colspan="1" %)
384 +(((
385 +Reads / Sets the state of the red lamp of the light sensor.
386 +)))|(% colspan="1" %)(% colspan="1" %)
387 +(((
388 +input
389 +
390 +output
391 +)))|(% colspan="1" %)(% colspan="1" %)
392 +(((
393 +bool
394 +)))|(% colspan="1" %)(% colspan="1" %)
395 +(((
396 +
397 +)))|(% colspan="1" %)(% colspan="1" %)
398 +(((
399 +light.ftl
400 +)))
401 +|(% colspan="1" %)(% colspan="1" %)
402 +(((
403 +**RCXLamp,** port
404 +)))|(% colspan="1" %)(% colspan="1" %)
405 +(((
406 +Turns an RCX lamp on (variable is true) or off (variable is false)
407 +)))|(% colspan="1" %)(% colspan="1" %)
408 +(((
409 +output
410 +)))|(% colspan="1" %)(% colspan="1" %)
411 +(((
412 +bool
413 +)))|(% colspan="1" %)(% colspan="1" %)
414 +(((
415 +
416 +)))|(% colspan="1" %)(% colspan="1" %)
417 +(((
418 +light.ftl
419 +)))
420 +|(% colspan="1" %)(% colspan="1" %)
421 +(((
422 +**MotorSpeed,** port, brake
423 +)))|(% colspan="1" %)(% colspan="1" %)
424 +(((
425 +Reads / Sets the speed of the motor in degrees per minute. If the speed value is negative, the motor will drive backwards. If the speed is zero, the motor will actively brake until it stops (brake is true) or remove all power and rollout (brake is false).
426 +)))|(% colspan="1" %)(% colspan="1" %)
427 +(((
428 +input
429 +
430 +output
431 +)))|(% colspan="1" %)(% colspan="1" %)
432 +(((
433 +int
434 +)))|(% colspan="1" %)(% colspan="1" %)
435 +(((
436 +brake is true per default.
437 +)))|(% colspan="1" %)(% colspan="1" %)
438 +(((
439 +motor.ftl
440 +)))
441 +|(% colspan="1" %)(% colspan="1" %)
442 +(((
443 +**MotorIsMoving,** port
444 +)))|(% colspan="1" %)(% colspan="1" %)
445 +(((
446 +Sets a variable to true iff the motor on the given port is moving.
447 +)))|(% colspan="1" %)(% colspan="1" %)
448 +(((
449 +input
450 +)))|(% colspan="1" %)(% colspan="1" %)
451 +(((
452 +bool
453 +)))|(% colspan="1" %)(% colspan="1" %)
454 +(((
455 +
456 +)))|(% colspan="1" %)(% colspan="1" %)
457 +(((
458 +motor.ftl
459 +)))
460 +|(% colspan="1" %)(% colspan="1" %)
461 +(((
462 +**MotorRotation,** port
463 +)))|(% colspan="1" %)(% colspan="1" %)
464 +(((
465 +Lets a motor rotate the variable value in degrees. This is only done if the value is unequal zero. If the value is negative, the motor rotates backwards. The variable is set to zero afterwards, such that setting the variable once to a value //X//, will let the motor rotate //X// degrees.
466 +)))|(% colspan="1" %)(% colspan="1" %)
467 +(((
468 +output
469 +)))|(% colspan="1" %)(% colspan="1" %)
470 +(((
471 +int
472 +)))|(% colspan="1" %)(% colspan="1" %)
473 +(((
474 +
475 +)))|(% colspan="1" %)(% colspan="1" %)
476 +(((
477 +motor.ftl
478 +)))
479 +|(% colspan="1" %)(% colspan="1" %)
480 +(((
481 +**Beep,** volume
482 +)))|(% colspan="1" %)(% colspan="1" %)
483 +(((
484 +Plays a beep sound as long as the variable is true.
485 +)))|(% colspan="1" %)(% colspan="1" %)
486 +(((
487 +output
488 +)))|(% colspan="1" %)(% colspan="1" %)
489 +(((
490 +bool
491 +)))|(% colspan="1" %)(% colspan="1" %)
492 +(((
493 +default volume is 10
494 +)))|(% colspan="1" %)(% colspan="1" %)
495 +(((
496 +sound.ftl
497 +)))
498 +|(% colspan="1" %)(% colspan="1" %)
499 +(((
500 +**Buzz,** volume
501 +)))|(% colspan="1" %)(% colspan="1" %)
502 +(((
503 +Plays a buzz sound as long as the variable is true.
504 +)))|(% colspan="1" %)(% colspan="1" %)
505 +(((
506 +output
507 +)))|(% colspan="1" %)(% colspan="1" %)
508 +(((
509 +bool
510 +)))|(% colspan="1" %)(% colspan="1" %)
511 +(((
512 +default volume is 10
513 +)))|(% colspan="1" %)(% colspan="1" %)
514 +(((
515 +sound.ftl
516 +)))
517 +|(% colspan="1" %)(% colspan="1" %)
518 +(((
519 +**BeepSequence,** direction, volume
520 +)))|(% colspan="1" %)(% colspan="1" %)
521 +(((
522 +Plays a sequence of tones in either ascending or descending tone frequency if the variable is true.
523 +
524 +The variable is set to false automatically.
525 +)))|(% colspan="1" %)(% colspan="1" %)
526 +(((
527 +output
528 +)))|(% colspan="1" %)(% colspan="1" %)
529 +(((
530 +bool
531 +)))|(% colspan="1" %)(% colspan="1" %)
532 +(((
533 +direction has to be one of Up, Down
534 +
535 +default volume is 10
536 +)))|(% colspan="1" %)(% colspan="1" %)
537 +(((
538 +sound.ftl
539 +)))
540 +|(% colspan="1" %)(% colspan="1" %)
541 +(((
542 +**UltrasonicSensor,** port
543 +)))|(% colspan="1" %)(% colspan="1" %)
544 +(((
545 +Reads the distance that an ultrasonic sensor measures.
546 +)))|(% colspan="1" %)(% colspan="1" %)
547 +(((
548 +input
549 +)))|(% colspan="1" %)(% colspan="1" %)
550 +(((
551 +int
552 +)))|(% colspan="1" %)(% colspan="1" %)
553 +(((
554 +
555 +)))|(% colspan="1" %)(% colspan="1" %)
556 +(((
557 +ultrasonic.ftl
558 +)))
559 +|(% colspan="1" %)(% colspan="1" %)
560 +(((
561 +**Gyro,** port, mode
562 +)))|(% colspan="1" %)(% colspan="1" %)
563 +(((
564 +Reads the value of a gyroscope.
565 +)))|(% colspan="1" %)(% colspan="1" %)
566 +(((
567 +input
568 +)))|(% colspan="1" %)(% colspan="1" %)
569 +(((
570 +int
571 +)))|(% colspan="1" %)(% colspan="1" %)
572 +(((
573 +Not available on NXT
574 +
575 +mode hat to be one of Angle, Rate
576 +)))|(% colspan="1" %)(% colspan="1" %)
577 +(((
578 +gyro.ftl
579 +)))
580 +|(% colspan="1" %)(% colspan="1" %)
581 +(((
582 +**CalibrateGyro,** port, autoReset
583 +)))|(% colspan="1" %)(% colspan="1" %)
584 +(((
585 +Resets a gyroscope if the variable is true.
586 +
587 +If autoReset is true, the variable is set to false automatically.
588 +)))|(% colspan="1" %)(% colspan="1" %)
589 +(((
590 +output
591 +)))|(% colspan="1" %)(% colspan="1" %)
592 +(((
593 +bool
594 +)))|(% colspan="1" %)(% colspan="1" %)
595 +(((
596 +autoReset is true per default
597 +)))|(% colspan="1" %)(% colspan="1" %)
598 +(((
599 +gyro.ftl
600 +)))
601 +
602 +
603 +
131 131  ----
132 132  
133 133  == Using the Remote Console (RConsole) ==
... ... @@ -144,6 +144,7 @@
144 144  
145 145  The following presents typical issues and how to solve them.
146 146  
620 +(% class="wrapped" %)
147 147  |=(((
148 148  Issue
149 149  )))|=(((
... ... @@ -164,9 +164,48 @@
164 164  )))|(((
165 165  Go to the project properties and switch to Java 7 (Right Click on project > Properties > Java Compiler > Compiler compliance level)
166 166  )))
641 +|(% colspan="1" %)(% colspan="1" %)
642 +(((
643 +Uploading to the brick does not respond
644 +)))|(% colspan="1" %)(% colspan="1" %)
645 +(((
646 +
647 +)))|(% colspan="1" %)(% colspan="1" %)
648 +(((
649 +You compile a file successfully and when uploading the result, the connected brick is found. Anyway the upload does not terminate and does not react.
650 +)))|(% colspan="1" %)(% colspan="1" %)
651 +(((
652 +Flash the brick with the current leJOS firmware. If the brick is recognized correctly and the attempt to upload a compiled file fails then the firmware on the brick might be outdated.
653 +)))
654 +|(% colspan="1" %)(% colspan="1" %)
655 +(((
656 +Compilation and uploading works from command line but not when using KIELER
657 +)))|(% colspan="1" %)(% colspan="1" %)
658 +(((
659 +This Java instance does not support a 32-bit JVM. Please install the desired version.
660 +)))|(% colspan="1" %)(% colspan="1" %)
661 +(((
662 +You can compile and upload code to the brick using the command line tools but when using KIELER an error message apprears because Java does not support 32-bit JVM.
663 +)))|(% colspan="1" %)(% colspan="1" %)
664 +(((
665 +Set the LEJOS_NXT_JAVA_HOME environment variable, such that it points to an 32-bit JDK and is visible for GUI applications (or at least KIELER). The process to do so differs on every OS. As alternative, execute KIELER from terminal.
666 +)))
667 +|(% colspan="1" %)(% colspan="1" %)
668 +(((
669 +Brick does nothing after program finished and prints "Program exit"
670 +)))|(% colspan="1" %)(% colspan="1" %)
671 +(((
672 +
673 +)))|(% colspan="1" %)(% colspan="1" %)
674 +(((
675 +A program was uploaded and finished without errors. Afterwards the brick prints "Program exit" but does not open the main menu.
676 +)))|(% colspan="1" %)(% colspan="1" %)
677 +(((
678 +This is normal behaviour if uploading a program in debug mode instead run mode (//Debug As// instead //Run As// in Eclipse). To get back to the main menu, press the ENTER and ESCAPE button of the brick at the same time.
679 +)))
167 167  
168 168  
169 169  
170 -----
171 -
172 172  
684 +
685 +input
Confluence.Code.ConfluencePageClass[0]
Id
... ... @@ -1,1 +1,1 @@
1 -14516331
1 +20153916
URL
... ... @@ -1,1 +1,1 @@
1 -https://rtsys.informatik.uni-kiel.de/confluence//wiki/spaces/KIELER/pages/14516331/LEGO Mindstorms with leJOS and SCCharts
1 +https://rtsys.informatik.uni-kiel.de/confluence//wiki/spaces/KIELER/pages/20153916/LEGO Mindstorms with leJOS and SCCharts