Instructions Circuit Diagram
- 50 -
The “Process Exit Code: 0“ at the end is most important. It means that no error
occurred during compilation. If another code appears there, the sourcecode
contains an error that must be corrected before it will work. In this case, the
compiler will output various error messages that give some more information.
Please note however that the “Process Exit Code: 0“ is not a guarantee of a
fully error-free program! The compiler will not nd awed thinking in your pro-
gram and it can’t prevent the robot from running into a wall ;-)
IMPORTANT: You might nd warnings and other messages further above.
These are often very helpful and always indicate important problems! That’s
why these always need to be solved. PN2 highlights warnings and errors by
colours to make the identication easier. Even the line number is indicated
that the compiler is criticizing. If you click on the coloured error message, PN2
skips in the relevant editor directly to the faulty line.
The indication at the end “AVR Memory Usage“ is also very useful.
----------------
Size after:
AVR Memory Usage
----------------
Device: atmega64
Program: 3074 bytes (4.7% Full)
(.text + .data + .bootloader)
Data: 68 bytes (1.7% Full)
(.data + .bss + .noinit)
This means for the Atmega64 processor that our program has a size of 3074
bytes and that 68 bytes of RAM are reserved for static variables (you have to
add to this the dynamic ranges for heap and stack but this would go too far...
just keep always at least a few hundred bytes of memory free). We dispose in
total of 64kb (65536 bytes) of Flash ROM and 2kb (2028 bytes) of RAM. On
the 64kb, 2k are occupied by the bootloader - so we can only use 62kb. Make
always sure that the program ts into the available memory space!
(The RobotLoader doesn’t transfer the program if it is too big!)