EE 319K�Introduction to Embedded Systems
Lecture 10: Exam2
Lab 7
Lab 8
Exam 2 and Quizzes 9,10
11-1
Bard, Tiwari, Telang, Holt, Cuevas, Gerstlauer, Valvano, Yerraballi
EE 319K�Introduction to Embedded Systems
Lecture 10: Exam2
Material
1) Book Chapters 1-7, ebook chapters 1-13,17
2) Labs 1-7
3) Lectures 1-9
4) Worksheet questions: 2.10, 4.1, 4.2, 4.3, 4.6, 5.1, 5.3, 5.4, 5.5, 5.6, 5.7, 5.8, 7.3, 7.4, 8.17, 9.4, 9.5, 9.13, 9.14
See Class website for practice exams
11-2
Bard, Tiwari, Telang, Holt, Cuevas, Gerstlauer, Valvano, Yerraballi
Agenda
Exam 2
Not on Exam 2
11-3
Bard, Tiwari, Telang, Holt, Cuevas, Gerstlauer, Valvano, Yerraballi
Exam 2 process
Like Exam 1, Quiz 9 and Quiz 10
Canvas quiz has a hard stop at 8:30
Upload source code files by 8:40
11-4
Bard, Tiwari, Telang, Holt, Cuevas, Gerstlauer, Valvano, Yerraballi
Exam 2 review
0) Being able to quickly design, implement, and debug software
1) Understanding differences between data and address, being able to use pointers and indices
2) Understanding differences between 8-bit, 16-bit data and 32-bit data
3) Understanding differences between signed and unsigned integers
4) Programming if-then if-then-else for-loops while-loops and do-while-loops in C/assembly
5) Processing a variable-length array or string, either size first or terminating code at end
6) Addition, subtraction, multiplication, division, shift, and, or, eor (signed and unsigned)
11-5
Bard, Tiwari, Telang, Holt, Cuevas, Gerstlauer, Valvano, Yerraballi
Exam 2 review
7) Structures
8) Call by value, call by reference, return by value
9) AAPCS Program conventions
10) Accessing arrays strings and structures
11-6
Bard, Tiwari, Telang, Holt, Cuevas, Gerstlauer, Valvano, Yerraballi
Exam 2 review
11-7
Bard, Tiwari, Telang, Holt, Cuevas, Gerstlauer, Valvano, Yerraballi
Easy Array problems
Your exam will be harder than these.
Solve the problem. Do not try and search for the answer
11-8
Bard, Tiwari, Telang, Holt, Cuevas, Gerstlauer, Valvano, Yerraballi
In class Problems
Assembly (20-30%)
C (80-70%)
Advice:
Don’t expect an Exam
pattern/template from previous years
11-9
Bard, Tiwari, Telang, Holt, Cuevas, Gerstlauer, Valvano, Yerraballi
Exam 2
11-10
Bard, Tiwari, Telang, Holt, Cuevas, Gerstlauer, Valvano, Yerraballi
Common mistakes
int function(int x){ int y[1000];
int size;
int x[size];
11-11
Bard, Tiwari, Telang, Holt, Cuevas, Gerstlauer, Valvano, Yerraballi
AAPCS or stack
11-12
Bard, Tiwari, Telang, Holt, Cuevas, Gerstlauer, Valvano, Yerraballi
Advice
During the exam we try to answer questions with “yes”, “no”, “won’t answer”
11-13
Bard, Tiwari, Telang, Holt, Cuevas, Gerstlauer, Valvano, Yerraballi
Summary
Grading based mostly on numerical results and some part of the grading will be based on programming style (needed to resolve inconsistencies). We consider it necessary to actually solve the problem. The autograder will lower your grade to 0 if you trick the grader into giving points (hard coding so it returns correct answers without actually calculating the output from the inputs).
Your laptop needs to be running Keil uVision 5 in simulation. You will use the internet to download the exam at the beginning, and then use the internet to upload the solution to canvas at the end. The instructions for your exam will be very similar to the practice exams.
11-14
Bard, Tiwari, Telang, Holt, Cuevas, Gerstlauer, Valvano, Yerraballi
Quiz 8 is Spring 2021 Exam 2
Directions�1) download the zip file containing the Exam Keil project. Link:
http://users.ece.utexas.edu/~valvano/Volume1/Exam2P/
user name: OLED�password 1306
2) UNZIP the Exam2_S21.zip file ON THE DESKTOP�3) Open the Exam2_S21.uvprojx with uVision v5
4) Enter your EID in Exam2CPart.c
5) Build the project
6) Start the debugger
7) Run
8) Observe that the UART#1 window
shows a score.
11-15
Bard, Tiwari, Telang, Holt, Cuevas, Gerstlauer, Valvano, Yerraballi
Old Exam 2
C/assembly exams (not all exams were the same length). �CExam2_StringCompare Easy practice Exam 2 involving ASCII strings�CExam2_CalculusSpring2013 Medium difficulty practice Exam 2 involving Math�CExam2_Merge Medium difficulty practice Exam 2 involving ASCII strings�CExam2_Unicode Practice Exam 2 involving 8 and 16-bit arrays�CExam2_PermuteCombine Medium difficulty practice Exam 2 involving Math�CExam2_Mode Practice Exam 2 involving arrays and structures�CExam2_DataBase Practice Exam 2 involving arrays and structures�CExam2_ManhattanDistance Exam 2 involving math and structures�CExam2_EKGprocess Medium difficulty�CExam2_HeartMonitor Medium difficulty�CExam2_StringConversions Extremely hard, string to octal
�Assembly only exams�Exam2_Mode8 Hard practice Exam 2 involving strings and pointers �Exam2_ArrayOfStruct Exam 2 with structures and arrays of structures
http://users.ece.utexas.edu/~valvano/Volume1/exams.htm
11-16
Bard, Tiwari, Telang, Holt, Cuevas, Gerstlauer, Valvano, Yerraballi