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.
To erase and rewrite the Flash-ROM for RoBIOS:
flash 11111110 robios.hex 0The file 'robios.hex' will be flashed with offset zero. Currently used is a 29F010 chip, which means 8 segments of 16 kB each. The first string of 8 "1"s or "0" determines how many segments are erased. Depending on program size, you may want to specify a smaller area, e.g. 11110000 for half the flash-ROM (check the assembler output file, not the S-record file).
To erase and rewrite only the Flash-ROM for the HDT, simply
download the HDT or:
(xxxx stand for a specific name, e.g. vehi
for vehicle)
flash 00000001 hdtxxxx.hex $1c000If everything worked properly, you should see the type of the F-ROM on the screen (currently: AMD 29F010) 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.
To erase and rewrite the Flash-ROM for RoBIOS and HDT:
(xxxx stand for a specific name, e.g. vehi for vehicle)
flash 11000000 robios.hex 0 flash 00000000 hdtxxxx.hex $1c000To update the HDT only, simply download the HDT or:
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.