beautypg.com

Renesas Emulator System M3T-MR100 User Manual

Page 239

background image

- 223 -

The following explains the content of the C language startup program (crt0mr.a30).

4. Incorporate a section definition file [14 in Figure 7.11]

5. Incorporate an include file for MR100 [15 in Figure 7.11]

6. Incorporate a system ROM area definition file [16 in Figure 7.11]

7. Incorporate a system RAM area definition file [17 in Figure 7.11]

8. This is the initialization program __SYS_INITIAL that is activated immediately after a reset.

[55 - 207 in Figure 7.11]

♦ Setting the System Stack pointer [56 in Figure 7.11]

♦ Setting the SB,FB register [61 - 65 in Figure 7.11]

♦ Initial set the C language. [72 - 105 in Figure 7.11]

♦ Setting kernel interrupt mask level [111 in Figure 7.11]

♦ Setting the address of interrupt vector table [112 in Figure 7.11]

♦ Set MR100's system clock interrupt [114-122 in Figure 7.11]

♦ Initial set MR100's system timer [124-132 in Figure 7.11]

9. Initial set parameters inherent in the application [140 in Figure 7.11]

10. Initialize the RAM data used by MR100 [141- 197 in Figure 7.11]

11. Activate the initial startup task. [201-207 in Figure 7.11]

12. This is a system clock interrupt handler [235-248 in Figure 7.11]