OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [rtos/] [ecos-2.0/] [doc/] [html/] [user-guide/] [setup-sh-edk7708.html] - Blame information for rev 578

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 28 unneback
<!-- Copyright (C) 2003 Red Hat, Inc.                                -->
2
<!-- This material may be distributed only subject to the terms      -->
3
<!-- and conditions set forth in the Open Publication License, v1.0  -->
4
<!-- or later (the latest version is presently available at          -->
5
<!-- http://www.opencontent.org/openpub/).                           -->
6
<!-- Distribution of the work or derivative of the work in any       -->
7
<!-- standard (paper) book form is prohibited unless prior           -->
8
<!-- permission is obtained from the copyright holder.               -->
9
<HTML
10
><HEAD
11
><TITLE
12
>SH3/EDK7708 Hardware Setup</TITLE
13
><meta name="MSSmartTagsPreventParsing" content="TRUE">
14
<META
15
NAME="GENERATOR"
16
CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+
17
"><LINK
18
REL="HOME"
19
TITLE="eCos User Guide"
20
HREF="ecos-user-guide.html"><LINK
21
REL="UP"
22
TITLE="Target Setup"
23
HREF="appendix-target-setup.html"><LINK
24
REL="PREVIOUS"
25
TITLE=" Compaq iPAQ PocketPC Hardware Setup"
26
HREF="setup-arm-ipaq.html"><LINK
27
REL="NEXT"
28
TITLE="SH3/CQ7708 Hardware Setup"
29
HREF="setup-sh-cq7708.html"></HEAD
30
><BODY
31
CLASS="SECT1"
32
BGCOLOR="#FFFFFF"
33
TEXT="#000000"
34
LINK="#0000FF"
35
VLINK="#840084"
36
ALINK="#0000FF"
37
><DIV
38
CLASS="NAVHEADER"
39
><TABLE
40
SUMMARY="Header navigation table"
41
WIDTH="100%"
42
BORDER="0"
43
CELLPADDING="0"
44
CELLSPACING="0"
45
><TR
46
><TH
47
COLSPAN="3"
48
ALIGN="center"
49
>eCos User Guide</TH
50
></TR
51
><TR
52
><TD
53
WIDTH="10%"
54
ALIGN="left"
55
VALIGN="bottom"
56
><A
57
HREF="setup-arm-ipaq.html"
58
ACCESSKEY="P"
59
>Prev</A
60
></TD
61
><TD
62
WIDTH="80%"
63
ALIGN="center"
64
VALIGN="bottom"
65
>Appendix A. Target Setup</TD
66
><TD
67
WIDTH="10%"
68
ALIGN="right"
69
VALIGN="bottom"
70
><A
71
HREF="setup-sh-cq7708.html"
72
ACCESSKEY="N"
73
>Next</A
74
></TD
75
></TR
76
></TABLE
77
><HR
78
ALIGN="LEFT"
79
WIDTH="100%"></DIV
80
><DIV
81
CLASS="SECT1"
82
><H1
83
CLASS="SECT1"
84
><A
85
NAME="SETUP-SH-EDK7708">SH3/EDK7708 Hardware Setup</H1
86
><P
87
>The eCos Developer&#8217;s Kit package comes with a ROM
88
which provides GDB support for the Hitachi EDK7708 board (a big-endian
89
and a little-endian version). Images of these  ROMs are also provided
90
at <TT
91
CLASS="FILENAME"
92
>loaders/sh-edk7708/gdbload.bin</TT
93
> and
94
          <TT
95
CLASS="FILENAME"
96
>loaders/sh-edk7708le/gdbload.bin</TT
97
> under
98
the root of your eCos installation.</P
99
><P
100
>The ROM is installed to socket U6 on the board. When using
101
the big-endian ROM, jumper 9 must be set to 2-3. When using the
102
little-endian ROM, jumper 9 must be set to 1-2. Attention should
103
be paid to the correct orientation of the ROM during installation.
104
Only replace the board&quot;s existing ROM using a proper PLCC extraction
105
tool, as the socket would otherwise risk being damaged. </P
106
><P
107
>If you are going to program a new ROM or FLASH using the binary
108
image, you may have to experiment to get the right byte-order in
109
the device. Depending on the programming software you use, it might
110
be necessary to enable byte-swapping.  If the GDB stub ROM/FLASH
111
you program does not work, try reversing the byte-order.</P
112
><P
113
>The GDB stub in the EPROM allows communication with GDB using
114
the serial port at connector J1. The communication parameters are
115
fixed at 38400 baud, 8 data bits, no parity bit and 1 stop bit (8-N-1).
116
No flow control is employed. Connection to the host computer should
117
be made using the dedicated serial cable included in the EDK package. </P
118
><DIV
119
CLASS="SECT2"
120
><H2
121
CLASS="SECT2"
122
><A
123
NAME="AEN4067">Installing the Stubs into FLASH</H2
124
><DIV
125
CLASS="SECT3"
126
><H3
127
CLASS="SECT3"
128
><A
129
NAME="AEN4069">Preparing the Binaries</H3
130
><P
131
>These two binary preparation steps are not strictly necessary
132
as the eCos distribution ships with pre-compiled binaries in the
133
directory loaders/sh-edk7708 and loaders/sh-edk7708le
134
relative to the installation root.</P
135
><DIV
136
CLASS="SECT4"
137
><H4
138
CLASS="SECT4"
139
><A
140
NAME="AEN4072">Building the ROM images with the eCos Configuration Tool</H4
141
><P
142
></P
143
><OL
144
TYPE="1"
145
><LI
146
><P
147
>Start with a new document - selecting the
148
<SPAN
149
CLASS="emphasis"
150
><I
151
CLASS="EMPHASIS"
152
>File-&#62;New</I
153
></SPAN
154
>
155
 menu item if necessary to do this.</P
156
></LI
157
><LI
158
><P
159
>Choose the
160
<SPAN
161
CLASS="emphasis"
162
><I
163
CLASS="EMPHASIS"
164
>Build-&#62;Templates</I
165
></SPAN
166
>
167
 menu item, and then select the SH EDK7708 hardware.</P
168
></LI
169
><LI
170
><P
171
>While still displaying the
172
<SPAN
173
CLASS="emphasis"
174
><I
175
CLASS="EMPHASIS"
176
>Build-&#62;Templates</I
177
></SPAN
178
>
179
 dialog box, select the &#8220;stubs&#8221; package template
180
to build a GDB stub. Click
181
<SPAN
182
CLASS="emphasis"
183
><I
184
CLASS="EMPHASIS"
185
>OK</I
186
></SPAN
187
>.</P
188
></LI
189
><LI
190
><P
191
>If building a little-endian image, disable the &#8220;Use
192
big-endian mode&#8221; option in the SH EDK7708 HAL (CYGHWR_HAL_SH_BIGENDIAN).</P
193
></LI
194
><LI
195
><P
196
>Build eCos using
197
<SPAN
198
CLASS="emphasis"
199
><I
200
CLASS="EMPHASIS"
201
>Build-&#62;Library</I
202
></SPAN
203
>. </P
204
></LI
205
><LI
206
><P
207
>When the build completes, the image files can be found
208
in the bin/ subdirectory of the install tree. GDB stub
209
ROM images have the prefix &#8220;gdb_module&#8221;.</P
210
></LI
211
></OL
212
></DIV
213
><DIV
214
CLASS="SECT4"
215
><H4
216
CLASS="SECT4"
217
><A
218
NAME="AEN4092">Building the ROM images with ecosconfig</H4
219
><P
220
></P
221
><OL
222
TYPE="1"
223
><LI
224
><P
225
>Make an empty directory to contain the build tree,
226
and cd into it.</P
227
></LI
228
><LI
229
><P
230
>To build a GDB stub ROM image, enter the command:
231
 
232
<TABLE
233
BORDER="5"
234
BGCOLOR="#E0E0F0"
235
WIDTH="70%"
236
><TR
237
><TD
238
><PRE
239
CLASS="PROGRAMLISTING"
240
>$ ecosconfig new edk7708 stubs</PRE
241
></TD
242
></TR
243
></TABLE
244
>
245
 </P
246
></LI
247
><LI
248
><P
249
>If building a little-endian image, uncomment the user
250
value in ecos.ecc for CYGHWR_HAL_SH_BIGENDIAN
251
and change it to 0.   </P
252
></LI
253
><LI
254
><P
255
>Enter the commands:
256
 
257
<TABLE
258
BORDER="5"
259
BGCOLOR="#E0E0F0"
260
WIDTH="70%"
261
><TR
262
><TD
263
><PRE
264
CLASS="PROGRAMLISTING"
265
>$ ecosconfig tree
266
$ make </PRE
267
></TD
268
></TR
269
></TABLE
270
></P
271
></LI
272
><LI
273
><P
274
>When the build completes, the image files can be found
275
in the bin/ subdirectory of the install tree. GDB stub
276
ROM images have the  prefix &#8220;gdb_module&#8221;.</P
277
></LI
278
></OL
279
></DIV
280
></DIV
281
><DIV
282
CLASS="SECT3"
283
><H3
284
CLASS="SECT3"
285
><A
286
NAME="AEN4107">Installing the Stubs into ROM or FLASH</H3
287
><P
288
></P
289
><OL
290
TYPE="1"
291
><LI
292
><P
293
>Program the binary image file gdb_module.bin
294
into ROM or FLASH referring to the instructions of your ROM programmer.</P
295
></LI
296
><LI
297
><P
298
>Plug the ROM/FLASH into socket U6. If the image
299
is little-endian set jumper 9 to 1-2. If the image is big-endian
300
set jumper 9 to 2-3.</P
301
></LI
302
></OL
303
></DIV
304
></DIV
305
></DIV
306
><DIV
307
CLASS="NAVFOOTER"
308
><HR
309
ALIGN="LEFT"
310
WIDTH="100%"><TABLE
311
SUMMARY="Footer navigation table"
312
WIDTH="100%"
313
BORDER="0"
314
CELLPADDING="0"
315
CELLSPACING="0"
316
><TR
317
><TD
318
WIDTH="33%"
319
ALIGN="left"
320
VALIGN="top"
321
><A
322
HREF="setup-arm-ipaq.html"
323
ACCESSKEY="P"
324
>Prev</A
325
></TD
326
><TD
327
WIDTH="34%"
328
ALIGN="center"
329
VALIGN="top"
330
><A
331
HREF="ecos-user-guide.html"
332
ACCESSKEY="H"
333
>Home</A
334
></TD
335
><TD
336
WIDTH="33%"
337
ALIGN="right"
338
VALIGN="top"
339
><A
340
HREF="setup-sh-cq7708.html"
341
ACCESSKEY="N"
342
>Next</A
343
></TD
344
></TR
345
><TR
346
><TD
347
WIDTH="33%"
348
ALIGN="left"
349
VALIGN="top"
350
>Compaq iPAQ PocketPC Hardware Setup</TD
351
><TD
352
WIDTH="34%"
353
ALIGN="center"
354
VALIGN="top"
355
><A
356
HREF="appendix-target-setup.html"
357
ACCESSKEY="U"
358
>Up</A
359
></TD
360
><TD
361
WIDTH="33%"
362
ALIGN="right"
363
VALIGN="top"
364
>SH3/CQ7708 Hardware Setup</TD
365
></TR
366
></TABLE
367
></DIV
368
></BODY
369
></HTML
370
>

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.