CSCI 261 Lab Task 5 =================== The intent of this lab is to gain experience using the CME11E9-EVBU boards attached to one of the kits using sockets. The development environment consists of an EVBU board connected to a computer (neoware) running Linux (tiny core) and the GNU HC11 development tool-chain. To access the environment, login to one of the cub work-stations. You can down-load and run programs on the EVBU under the control of gdb or the board's Buffalo monitor. Consider the situation where you want to issue Buffalo commands to the EVBU connected to cscixtst. Power-on the EVBU, run term11 -m cscixtst -p 3001 on your work-station and reset the EVBU board; the Buffalo prompt should now appear in your term11 window. The command term11 -h displays the following: term11 flags: -h help -v version -m set EVBU host machine name -p set EVBU host port number -f set s19 records file name term11 commands: buffalo monitor commands are passed to the EVBU pwload will download the s19 records (specified using -f switch) to the EVBU CTRL C to exit term11 term11 example invocation: term11 -m kit70 -p 3001 -f pex0.s19 gdb Control =========== - Copy otter:/~pwalsh/csci261/HC11/swap to your work-station. - Edit the bats.script and modify the script such that the program is to run on the EVBU rather than the simulator. - Power-up the EVBU. - Press the EVBU's reset button. - Type make bats You can also type make and enter gdb (interactive). Before you can run the program, you must set the target and the baud rate as given at the top of the bats.script file. Buffalo Control =============== - Edit the bats.script and modify the script such that the program is to run on the EVBU rather than the simulator. - Power-up the EVBU. - Start a term11 session on your work-station. Make sure you specify the host machine, host port and s19 records file using switches -m, -p and -f. - Press the EVBU's reset button. - Issue the Buffalo command pwload. - Issue the Buffalo command g 2000 to execute the program. - Issue the Buffalo command call 2013 to execute the swap subroutine. Task ==== Verify that swap behaved to specification by running it on the EVBU as follows: 1. Under the control of gdb with cew. - Type make bats. 2. Under the control of gdb without cew. - Type make and issue gdb commands to verify the behaviour of swap. 3. Under the control of the Buffalo monitor using term11. Cub-Kit Mapping =============== The cubs are mapped to kits as follows: Development Machine EVBU Host Machine Port ------------------- ----------------- ---- cub1 kit60 3000 cub2 kit60 3001 cub3 kit71 3000 cub4 kit71 3001 cub5 kit55 3000 cub6 kit55 3001 cub7 kit66 3000 cub8 kit66 3001 cub9 kit67 3000 cub10 kit67 3001 cub11 kit56 3000 cub12 kit56 3001 EVBUs can only be accessed through their mapped work-stations. For example, the EVBU attached to kit60 on port 3000 can only be accessed through cub1. Note that cscixtst is accessible from all workstations on port 3001.