Docsity
Docsity

Prepare for your exams
Prepare for your exams

Study with the several resources on Docsity


Earn points to download
Earn points to download

Earn points by helping other students or get them with a premium plan


Guidelines and tips
Guidelines and tips

Development Environment - Embedded System Design - Lecture Slides, Slides of Computer Science

These are the Lecture Slides of Embedded System Design which includes Hardware Design, Elevator Controller, Simple Elevator Controller, Try Capturing, Unit Control, Request Resolver, Sequential Program Model, Partial English Description, System Interface etc. Key important points are: Development Environment , Processor, Programs, Target Processor, Compilers, Cross Compiler, Assemblers, Linkers, Debuggers, Profilers

Typology: Slides

2012/2013

Uploaded on 03/22/2013

dhritiman
dhritiman 🇮🇳

4.7

(6)

112 documents

1 / 15

Toggle sidebar

Related documents


Partial preview of the text

Download Development Environment - Embedded System Design - Lecture Slides and more Slides Computer Science in PDF only on Docsity! 4-Development Environment • Development processor – The processor on which we write and debug our programs • Usually a PC • Target processor – The processor that the program will run on in our embedded system • Often different from the development processor 1 Development processor Target processor Docsity.com Development Environment • Compilers – Cross compiler • Runs on one processor, but generates code for another • Assemblers • Linkers • Debuggers • Profilers 2 Compiler Linker C File C File Asm. File Binary File Binary File Binary File Exec. File Assemble r Library Implementation Phase Debugger Profiler Verification Phase Docsity.com Testing and Debugging • ISS – Gives us control over time – set breakpoints, look at register values, set values, step-by-step execution, ... – But, doesn’t interact with real environment • Download to board – Use device programmer – Runs in real environment, but not controllable • Compromise: emulator – Runs in real environment, at speed or near – Supports some controllability from the PC 5 Implementation Phase Implementation Phase Verification Phase Verification Phase Emulator Debugger / ISS Programmer Development processor (a) (b) External tools Docsity.com CodeWorrior Development Tool Bese eu a =I Ea} Edit view Search Project Processor Expert Window Help Bae Bot x hb OBaRea Gh Ee CodeWarrior oT fede wmaal eC) DE v Installed Products Example of File Menu ea Eali=leg} Edit View Search Project Processor Expert ‘Window Help Aan 4% 50 E New Text File Chrl+N New. CtrleshiFten Opens. Chto Find and Open File... C+D Close Corl Save Ctrl: Save All Ctrl+Shirt+s Save As... Save A Copy As... Revert Open Workspace... Close Workspace Save Workspace Save Workspace As, Import Project... Export Project, Page Setup... Print, Ctrl+P Open Recent Exit Project created from template 10 •Examine/ modify created source codes. Docsity.com Change Full chip simulation to HCS12 Serial Monitor 11 Docsity.com Compile project laretre eT Ute arth | HE Bie Edit view Search Project Processor Expert Window Help. 8x aa CR 3HER 4 beth me [| of ~ Path: [D:\LBESProject\Test'5 ources\main.c © Test este v7 Exanple 1s: Turn on every other seqnent on 7-seg displ Of #include chided .h> y* conmon defines and macros */ 4 HES12Serial Monitor | EY GY BG. #include <nc9s12dg256 .h> ve derivative infornation */—J #pragna LINK_INFO DERIVATIVE “wo9s12dg256b" Files | Link Order | Targets | #include "nain_asm.h" /* interface to the assembly nodule File Code | Data RAE |= BB readme.tat na ona * me void nain(woid) ¢ BB tips.tat nia nla e a oe “, © SEs Sources 0 | put your own code here */ h . . x PLL_init(): // set system clock frequency to 24 fB msin_asm : RE = Oxit: v/ Fort Bis output AB main.asm a Osea DDRI = Oxff: v¢ Port J is output ¢ AB maine o Or + ot DDRP = Oxff; 7/ Port P is output @ datapage.c o Ore ad PTI = 0x00; // enable LED queue.h o o- af PTP = 0x00: // enable all ?-segnent displays AB queue.c o | ¢/ turn on every other led and segment on ?-seg display @ © © Startup Code Q Oe + FORTB = On85; ¢ HQ Pim 9 | = Linker Map 0 a. for(::) {} -* wait forever */ © © Gl] Libraties 0 | } Ca Debugger Project File o a+ of (Ca Debugger Cimd Files o a+ oof 29 files a a y ctl 1?) bine Coli_||4] | off 12 Docsity.com
Docsity logo



Copyright © 2024 Ladybird Srl - Via Leonardo da Vinci 16, 10126, Torino, Italy - VAT 10816460017 - All rights reserved