CMPE401 Lab Directory Setup

After untarring cmpe401.tar you should have the directory cmpe401/ with the following subdirectory structure in your home directory.
include/ Contains c headers for libraries that will be used in more than one lab project
uC_OS/ The entire uC/OS-II source code. You must build and install the uC/OS library using the makefile in the directory. Make will build the file libuC.a which is a library containing the uC/OS kernel and all OS functions. Make will also copy the library to the lib/ directory for your programs to link with. Read through the source code in this directory to learn the structure of the uC/OS system. All files named with capital letters are processor specific and have been written for the MC68332 laboratory system. Read the makefile to understand how the system is built.
lib/ This directory contains code that is used in every lab project. You must read and understand how each of the functions in this directory work.
boot.s The bootloader for every lab program. go 10000 will call this code which initializes memory, I/O space and runs the main program.
boot_only.cA program for initializing memory and I/O space without running a user program.
io.cM68332 specific stdio routines.
scope.sRoutines for triggering oscilloscope channels for testing and debugging.
default.lnkThe linker memory map for the m68332 system.
MakefileRun make to build scope.o io.o and boot.o which you will link to your main application later.
Run make mem to build the file mem.s19 which you can upload to the system and run go 10000.
This will initialize the memory and I/O space which must be done prior to certain lab projects ( not used in lab 1 )
libuC.a 
liblwip4.aThese files will appear only after running make install from the uC_OS and lwip/build directories. The libraries must exist here in order for the programs to link with them.
lwip/ Code for the lwip TCP/IP stack to be used in lab 3. Run make from the lwip/build directory. You should also read and understand the Makefile in lwip/build.
lab1-5/ Your project directories. Templates and makefiles have been placed in each directory. The main program is called labN.c and after running make will produce labN.s19 to be uploaded to the M68332. make will also produce the file labN.map which is a memory map showing where all global symbols are located in memory. The map files will be used extensively in debugging.