Install the background debugger on the PC (Windows) and connect the debugger cable on the EyeBot. Then start the debugger:
bd32
stopThe user program is now located at $20000 (hex) and can be viewed with the dis-assemble debugger command:
dasm $20000
Further helpful commands are:
window onto show all registers, memory contents and debugger commands.
br $20a44for settting breakpoints at a certain address
sfor single-stepping through the program
For detailed information see debugger description.
stop[In case the EyeBot does not stop, you'll have to press the reset button on the board.]
do mapcsNow you can use all debugger commands, e.g. breakpoints, single step, memory display and memory modify. The command "window on" allows to see registers, memory contents, and commands all at once.
There is additional space to save up to 3 user programs in ROM. These can be saved and loaded from the "USR"/"ROM" menu.
To erase and rewrite the Flash-ROM for RoBIOS and HDT:
(xxxx stands for a specific name, e.g. vehi for vehicle)
flash 11000000 robios.hex 0 flash 00000000 hdtxxxx.hex $1c000The file 'robios.hex' will be flashed with offset zero. Currently used is a 29F040 chip, which means 8 segments of 64 kB each. The first string of 8 "1"s or "0" determines how many segments are erased.
On the PC screen you will see one digit printed for every record being stored in the flash-ROM, e.g.:
3333333333333333333333333333333333333333333333333333333333333333333 3333333333333333333333333333333333333333333333333333333333333333333 ...Please note: DO NOT PRESS RESET during the flashing procedure, as this may damage the CPU!!
To update the HDT only, simply download the HDT or:
(xxxx stand for a specific name, e.g. vehi for vehicle)
flash 00110000 hdtxxxx.hex $20000The HDT will be copied into its original place upon restart of the system. This will erase any user program stored in the first ROM slot.
If everything worked properly, you should see the type of the flash-ROM on the screen and the programming should start (you will be able to see the progress). Depending on the system you are using, this takes a few seconds to a few minutes.