Welcome to CS/EE 120B! This laboratory exercise is designed to ease you into the course material and get everyone on the same footing in regards to their C programing experience.
After this lab, we will assume for the rest of the quarter that you are:
proficient in C
know how to correctly submit labs following the submission guidelines
know how to use RIMS (used for homeworks)
This lab reviews C programming and introduces the RIMS (Riverside-Irvine Microcontroller Simulator) tool for compiling/testing embedded C programs — part of the RI Tools software package — which will be used extensively during the quarter. Additionally, it will teach you the submission format for all future lab assignments — not following these submission guidelines will result in a zero for any given assignment.
Students are encouraged to work in pairs. Don’t forget to get your partner’s name and contact info!
The course eBook, “Programming in C: A Simple Introduction” is posted on iLearn under ‘Course Materials.’. The second course eBook, “Programming Embedded Systems” (PES), is hosted by Zyante. Please see the course syllabus for information on subscribing (there is a discount code found in the syllabus).
You must subscribe to the Zyante PES book to get your RI Tools activation code found on the main welcome page after logging in.
The laboratory submission guidelines have been posted on iLearn under ‘Assignments;’ please review them now.’ You are expected to submit files in the correct format.
Download RI Tools from the following URL: http://ritools.cs.ucr.edu/.
RI Tools is written exclusively for Windows. It is used exclusively for this laboratory exercise and for Extra Credit Homework assignments.
If you do not have a Windows installation of your own, you may use VirtualBox in WCH 136, the room where your laboratory section meets. To access VirtualBox, log into to your CS account and open a terminal (right click anywhere on the Desktop) and execute the command ‘win7’ (without the quotes). If you do not have a CS account, please speak to your TA.
Important: NEVER close VirtualBox by pressing the “X” in the top right corner of the window. Doing so may leave the process running in the background, causing issues. Instead, shut down VirtualBox by going to Start > Shutdown from the start menu of Windows.
Important: VirtualBox is a static image and will not save local files when the virtual machine is rebooted, thus causing all of your work to be lost. It is important to save your work elsewhere. Either to a
mapped network drive (your CS home directory), a USB flash drive, GDrive, DropBox, or email your files to yourself. Instructions for how to map a network drive can be found in the Read Me!.txt file on the VirtualBox Windows Desktop.
Note: To exit full screen mode of VirtualBox at any time press (right)ctrl+f on the keyboard.
To Access RIMS unzip the RIToolkit_current.zip and execute the RIMS.exe link. You may wish to visit http://ritools.cs.ucr.edu/ to download a more up to date version. You will need to use the validation key from the Zyante PES site.
You should now be able to begin the lab.
Complete all “Try” activities in the “Programming in C: A Simple Introduction” book.
Submit 5 “Try” activities on iLearn per the submission guidelines on iLearn under ‘Syllabus.’
For this lab, read through the “Programming in C: A Simple Introduction” book, completing all “Try” activities in the book. To facilitate learning the lab submission guidelines, select five of the activities for submission. Be sure to create a unique .c file for each exercise following the naming conventions laid out in the submission guidelines. Don’t forget to place the file’s header comment at the top of each .c file.
Ensure that both you and your partner understand all the principles covered in the book as they will be assumed knowledge in this course. Partners should help one another and alternate for each activity — partner 1 doing the first activity, partner 2 doing the second activity, partner 1 doing the third, etc. This will be the pattern for all future labs.
You may wish to submit your incomplete lab assignment to iLearn, you can always resubmit later.
Each student must submit their .c source files according to instructions in the lab submission guidelines.
Trouble shooting: On occasion RIMS may refuse to compile with no error. Try saving your work and restarting RIMS.