Instructions Circuit Diagram
- 51 -
This means that the example programs above leave 60414 bytes of free
space. The relatively short example program Example_01_Leds.c is only so
big because the Robot ArmBaseLibrary is included! So, don’t worry, there is
enough space for your programs and so small programs usually don’t need so
much memory space. The function library on its own needs several kb of Flash
memory but makes your job much easier and therefore your own programs
will generally be quite small compared to the Robot ArmBaseLibrary.
The just compiled program can now be uploaded via the RobotLoader into
the robot. To do that, you have to add the newly generated hex le into the
list in the RobotLoader via the button “Add”, select it and click on the “Upload”
button exactly as you did for the selftest program. After that you can switch
back to the terminal and look at the output of the program. Of course you
need to launch the execution of the program. The easiest way to do it in the
terminal is to press the key combination [STRG]+[S] on the keyboard or to
use the menu (or just to send an “s” - after a reset you have to wait a little bit
though until the message “[READY]” is displayed in the terminal!). The key
combination [STRG]+ [Y] is also very convenient as the currently selected
program is uploaded into the Robot Arm and immediately started. This avoids
to click on the “Flash Loader” tab in the terminal or to use the menu.
The example program is very simple and is only composed of a small LED
running light and some text output.
-