In this practical guide, experienced embedded engineer Lewin Edwards demonstrates faster, lower-cost methods for developing high-end embedded systems. With today's tight schedules and lower budgets, embedded designers are under greater pressure to deliver prototypes and system designs faster and cheaper. Edwards demonstrates how the use of the right tools and operating systems can make seemingly impossible deadlines possible.
Designer's Guide to Embedded Systems Development shares many advanced, in-the-trenches design secrets to help engineers achieve better performance on the job. In particular, it covers many of the newer design tools supported by the GPL (GNU Public License) system. Code examples are given to provide concrete illustrations of tasks described in the text. The general procedures are applicable to many possible projects based on any 16/32-bit microcontroller. The book covers choosing the right architecture and development hardware to fit the project; choosing an operating system and developing a toolchain; evaluating software licenses and how they affect a project; step-by-step building instructions for gcc, binutils, gdb and newlib for the ARM7 core used in the case study project; prototyping techniques using a custom printed circuit board; debugging tips; and portability considerations.
- A wealth of practical tips, tricks and techniques
- Design better, faster and more cost-effectively
Inhaltsverzeichnis
1;Cover;1 2;Copyright Page;5 3;Contents;6 4;Acknowledgments;10 5;Chapter 1. Introduction;12 6;Chapter 2. Before You StartFundamental Decisions;20 6.1;General Microcontroller Selection Considerations;20 6.2;Choosing the Right Core;24 6.3;Building Custom Peripherals with FPGAs;30 6.4;Whose Development Hardware to UseChicken or Egg?;32 6.5;Our Hardware ChoiceThe Atmel EB40;40 6.6;Recommended Laboratory Equipment;41 6.7;Free Development Toolchains;43 6.8;Free Embedded Operating Systems;47 6.9;GNU and YouHow Using Free Software Affects Your Product;55 6.10;Choices of Development Operating System;62 6.11;Special PCB Layout and Initial Bring-Up Rules For the Shoestring prototype;64 6.12;Hints for Surface-Mounting by Hand;73 6.13;Choosing PCB Layout Software;76 7;Chapter 3. The GNU Toolchain;82 7.1;Building the Toolchain;82 7.2;Overview of the GNU Build Environment;87 7.3;GNU Make and an Introduction to Makefiles;91 7.4;GasThe GNU Assembler;98 7.5;LdGNU Linker;125 7.6;Converting Files with Objcopy;149 7.7;ObjdumpCheck Your Executables Layout;150 7.8;SizeCheck the Load Size of Your Executable;154 7.9;GdbThe GNU Debugger;154 8;Chapter 4. Example Firmware Walkthroughs and Debugging Techniques;164 8.1;A Quick Introduction to ARM and the Atmel EB40;164 8.2;First Stepthe LED Flasher (in Assembler);169 8.3;Bringing Up a Simple C Program The LED Flasher (in C);178 8.4;Writing a Simple Flash-Loader (and Inspecting Memory with gdb);183 8.5;A Simple ROM-Startup Program;191 8.6;A Complete ROM-Startup Application in C;196 8.7;Blind-Debugging Your Program;205 8.8;Miscellaneous GlueHandling Hardware Exceptions in C with gcc;210 9;Chapter 5. Portability and Reliability Considerations;214 10;Chapter 6. Useful Vendors and Other Web Resources;232 10.1;Index of CD-ROM Contents;234 11;About the Author;238 12;Index;240