{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

EE319_lecture4 - EE319K Lecture4:Debugging,Arithmetic...

Info icon This preview shows pages 1–6. Sign up to view the full content.

View Full Document Right Arrow Icon
4-1 EE 319K Introduction to Microcontrollers Lecture 4: Debugging, Arithmetic  Operations, Condition Code Bits
Image of page 1

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
4-2 Ramesh Yerraballi Debugging Aka,Testing, Diagnostics,  Verification Debugging Actions Functional debugging , input/ output values Performance debugging input/output values with time Tracing , measure sequence  of operations Profiling o measure percentage for  tasks,  o time relationship between  tasks Performance  measurement , how fast it  executes Optimization , make  tradeoffs for overall good  o improve speed, o improve accuracy, o reduce memory, o reduce power, o reduce size, o reduce cost
Image of page 2
4-3 Ramesh Yerraballi Debugging Intrusiveness Intrusive Debugging degree of perturbation  caused by the debugging  itself how much the debugging  slows down execution Non-intrusive Debugging characteristic or quality of a  debugger allows system to operate  as if debugger did not exist e.g., logic analyzer, ICE,  BDM Minimally intrusive negligible effect on the  system being debugged e.g., dumps(ScanPoint)  and monitors Highly intrusive print statements,  breakpoints and single- stepping
Image of page 3

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
4-4 Ramesh Yerraballi Debugging Aids in TExas Interface uc  – ViewBox, BreakPoints stk – StackField, MemoryBox Modes FollowPC CycleView InstructionView LogRecord Single Step, Few, StepOver,  StepOut, Run Breakpoint versus ScanPoint Run time errors Read from un- programmed ROM Write to ROM Read from un-initialized  RAM Read/write  unimplemented I/O
Image of page 4
4-5 Ramesh Yerraballi … Debugging Instrumentation: Code we  add to the system that aids in  debugging E.g., print statements Good practice: Define  instruments with specific  pattern in their names Use instruments that test a  run time global flag o leaves a permanent copy 
Image of page 5

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Image of page 6
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern