
rej06j0010_shc_startup2_an| Application Note
APPLICATION NOTE
SuperH RISC engine C/C++ Compiler Package
Application notes: [Introduction guide]Sample file Guide for SH-1, SH-2, and SH-2A
This document explains precautions for generating files and performing initial coding in High-performance Embedded Workshop (herein as HEW), for SuperH RISC engine C/C++ compiler V.9. Table of contents
1. Generating a Sample Program ......................................................................................................... 2 1.1 Project Generator Settings................................................................................................................ 2 (1) Create a new workspace......................................................................................................................... 2 (2) Select the CPU........................................................................................................................................ 3 (3) Optional settings ..................................................................................................................................... 4 (4) Set the generation file ............................................................................................................................. 5 (5) Set the standard library .........................................................................................
.................................. 6 (6) Set the stack area ................................................................................................................................... 7 (7) Set the vector .......................................................................................................................................... 8 (8) Set the debugger target .......................................................................................................................... 9 (9) Change the name of the generation file.................................................................................................. 9 1.2 List of Generation Files ................................................................................................................... 10 2. 2.1 2.2 2.3 3. 3.1 3.2 3.3 4. 4.1 4.2 4.3 4.4 5. 5.1 5.2 6. Reset Processing ............................................................................................................................ 12 Reset Vector Tabl
e (vecttbl.c)......................................................................................................... 12 Setting Stack Size (stacksct.h)........................................................................................................ 14 Reset Function (resetprg.c)............................................................................................................. 15 Non-reset Exception Processing..................................................................................................... 17 Non-reset Exception Processing Vector Table (vecttbl.c)............................................................... 17 Vector Base Register (VBR) Settings (set_vbr function) ................................................................ 18 Exception Processing Function (intprg.c, vect.h)............................................................................ 19 Memory Initialization.............................................................................................
........................... 20 Memory Initialization Function _INTSCT (dbsct.c).......................................................................... 20 If Initialized Data Areas Other Than the D Section Exist ................................................................ 21 If Unitialized Data Areas Other Than the B Section Exist ............................................................... 21 ROM Support Functionality ............................................................................................................. 22 Low-level Interface Routine Settings............................................................................................... 23 Memory Management (sbrk.c, sbrk.h) ............................................................................................ 23 I/O (lowlvl.src, lowsrc.c, lowsrc.h) ................................................................................................... 24 Precautions Regarding C++ Usage (_CALL_INIT Function and CALL_END Functi
on) ................ 25
7. Frequently Asked Questions ........................................................................................................... 27 7.1 End Processing ............................................................................................................................... 27 7.2 C++ Functions and Reciprocal C Function Calls ............................................................................ 27 Website and Support
REJ06J0010-0100/Rev.1.00
June 2007
Page 1 of 29
rej06j0010_shc_startup2_an Application Note renesas Download PDF
Add this permalink to your bookmarks for future download of rej06j0010_shc_startup2_an ApplicationNote
Permalink: http://application.emcelettronica.com/renesas/rej06j0010_shc_startup2_an