Embedded C

Page 56

8322 Chapter 3 p35-56

21/2/02

9:55 am

Page 39

Hello, Embedded World

39

Note: one of the key reasons for setting the oscillator frequency in the simulator is that any attempting at ‘profiling’ the application (for example, measuring function durations) will only be successful if the oscillator frequency in the simulator matches the frequency that will be used in the real system hardware (see Section 3.6e).

3.4 Building the target We next need to build the ‘target’, as illustrated in Figure 3.4.

FIGURE 3.4 Building the target (compiling and linking your source files) in the Keil environment

3.5 Running the simulation Having successfully built the target, we are now ready to start the debug session and run the simulator. First, start a debug session (Figure 3.5).


Issuu converts static files into: digital portfolios, online yearbooks, online catalogs, digital photo albums and more. Sign up and create your flipbook.