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

Subversion Repositories openrisc_me

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

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/CQ7708 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="SH3/EDK7708 Hardware Setup"
26
HREF="setup-sh-edk7708.html"><LINK
27
REL="NEXT"
28
TITLE="SH3/HS7729PCI Hardware Setup"
29
HREF="setup-sh-hs7729pci.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-sh-edk7708.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-hs7729pci.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-CQ7708">SH3/CQ7708 Hardware Setup</H1
86
><DIV
87
CLASS="SECT2"
88
><H2
89
CLASS="SECT2"
90
><A
91
NAME="AEN4116">Preparing the board</H2
92
><P
93
>Make sure the DIP switches on the board are set as follows:
94
  </P
95
><TABLE
96
BORDER="5"
97
BGCOLOR="#E0E0F0"
98
WIDTH="70%"
99
><TR
100
><TD
101
><PRE
102
CLASS="PROGRAMLISTING"
103
>SW1-1 ON
104
SW1-2 OFF
105
SW1-3 ON
106
SW1-4 OFF</PRE
107
></TD
108
></TR
109
></TABLE
110
><TABLE
111
BORDER="5"
112
BGCOLOR="#E0E0F0"
113
WIDTH="70%"
114
><TR
115
><TD
116
><PRE
117
CLASS="PROGRAMLISTING"
118
>SW2-1 ON
119
SW2-2 ON
120
SW2-3 OFF
121
SW2-4 OFF</PRE
122
></TD
123
></TR
124
></TABLE
125
><P
126
>If you are using a straight through serial cable which has
127
flow control lines, you will also need to cut JP12 (5-6) as the
128
flow control lines can cause NMIs.</P
129
></DIV
130
><DIV
131
CLASS="SECT2"
132
><H2
133
CLASS="SECT2"
134
><A
135
NAME="AEN4122">eCos GDB Stubs</H2
136
><P
137
>The eCos installation CD contains a copy of the eCos GDB stubs
138
in  binary format which must be programmed into an EPROM or FLASH
139
and  installed on the board.</P
140
><DIV
141
CLASS="SECT3"
142
><H3
143
CLASS="SECT3"
144
><A
145
NAME="AEN4125">Preparing the GDB stubs</H3
146
><P
147
>These stub preparation steps are not strictly necessary as
148
the eCos distribution ships with pre-compiled stubs in the directory
149
loaders/sh3-cq7708 relative to the installation root.</P
150
></DIV
151
><DIV
152
CLASS="SECT3"
153
><H3
154
CLASS="SECT3"
155
><A
156
NAME="AEN4128">Building the GDB stub image with the eCos Configuration Tool</H3
157
><P
158
></P
159
><OL
160
TYPE="1"
161
><LI
162
><P
163
>Start with a new document - selecting the
164
<SPAN
165
CLASS="emphasis"
166
><I
167
CLASS="EMPHASIS"
168
>File-&#62;New</I
169
></SPAN
170
>
171
 menu item if necessary to do this.</P
172
></LI
173
><LI
174
><P
175
>Choose the
176
<SPAN
177
CLASS="emphasis"
178
><I
179
CLASS="EMPHASIS"
180
>Build-&#62;Templates</I
181
></SPAN
182
>
183
 menu item, and then select the SH3 cq7708 hardware.</P
184
></LI
185
><LI
186
><P
187
>While still displaying the
188
<SPAN
189
CLASS="emphasis"
190
><I
191
CLASS="EMPHASIS"
192
>Build-&#62;Templates</I
193
></SPAN
194
>
195
 dialog box, select the stubs package template to build a GDB stub.
196
Click
197
<SPAN
198
CLASS="emphasis"
199
><I
200
CLASS="EMPHASIS"
201
>OK</I
202
></SPAN
203
>.</P
204
></LI
205
><LI
206
><P
207
> Build eCos stubs using
208
<SPAN
209
CLASS="emphasis"
210
><I
211
CLASS="EMPHASIS"
212
>Build-&#62;Library</I
213
></SPAN
214
>.</P
215
></LI
216
><LI
217
><P
218
> When the build completes, the image files can be found
219
in the
220
<TT
221
CLASS="FILENAME"
222
>bin/</TT
223
>
224
 subdirectory of the install tree. GDB stub images have the prefix
225
<TT
226
CLASS="FILENAME"
227
>gdb_module</TT
228
>.</P
229
></LI
230
></OL
231
></DIV
232
><DIV
233
CLASS="SECT3"
234
><H3
235
CLASS="SECT3"
236
><A
237
NAME="AEN4148">Building the GDB stub image with ecosconfig</H3
238
><P
239
></P
240
><OL
241
TYPE="1"
242
><LI
243
><P
244
>Make an empty directory to contain the build tree,
245
and cd into it.</P
246
></LI
247
><LI
248
><P
249
> To build a GDB stub ROM image, enter the command:
250
 
251
<TABLE
252
BORDER="5"
253
BGCOLOR="#E0E0F0"
254
WIDTH="70%"
255
><TR
256
><TD
257
><PRE
258
CLASS="PROGRAMLISTING"
259
>$ ecosconfig new cq7708 stubs </PRE
260
></TD
261
></TR
262
></TABLE
263
></P
264
></LI
265
><LI
266
><P
267
> Enter the commands:
268
 
269
<TABLE
270
BORDER="5"
271
BGCOLOR="#E0E0F0"
272
WIDTH="70%"
273
><TR
274
><TD
275
><PRE
276
CLASS="PROGRAMLISTING"
277
>$ ecosconfig tree
278
$ make</PRE
279
></TD
280
></TR
281
></TABLE
282
></P
283
></LI
284
><LI
285
><P
286
>When the build completes, the image files can be found
287
in the
288
<TT
289
CLASS="FILENAME"
290
>bin/</TT
291
>
292
 subdirectory of the install tree. GDB stub images have the prefix
293
<TT
294
CLASS="FILENAME"
295
>gdb_module</TT
296
>.  </P
297
></LI
298
></OL
299
></DIV
300
></DIV
301
><DIV
302
CLASS="SECT2"
303
><H2
304
CLASS="SECT2"
305
><A
306
NAME="AEN4163">Programming the stubs in EPROM/FLASH</H2
307
><P
308
>The board can use different sizes of ROMs. Use this table
309
to adjust the board&#8217;s jumpers to the ROM sizes you are
310
using.</P
311
><TABLE
312
BORDER="5"
313
BGCOLOR="#E0E0F0"
314
WIDTH="70%"
315
><TR
316
><TD
317
><PRE
318
CLASS="PROGRAMLISTING"
319
>size(kbit)    JP7   JP9   JP10   JP11
320
256           2-3   2-3   open   open
321
512           1-2   2-3   open   open
322
1000          1-2   open  open   2-3
323
2000          1-2   1-2   open   2-3
324
4000          1-2   1-2   short  2-3
325
8000          1-2   1-2   short  1-2</PRE
326
></TD
327
></TR
328
></TABLE
329
><P
330
>There are two ways to program the stubs. We advise you to
331
use method 1, since it is simpler. Method 2 is unsupported and requires
332
a bit of fiddling.</P
333
><P
334
><SPAN
335
CLASS="emphasis"
336
><I
337
CLASS="EMPHASIS"
338
>Method 1: </I
339
></SPAN
340
> </P
341
><P
342
>Program the binary stub image into two EPROMs, E and O. EPROM
343
E should  contain the even bytes, and O the odd bytes (your EPROM
344
programmer should  have the ability to split the image).</P
345
><P
346
>EPROM E should be installed in socket IC8, and EPROM O should
347
be  installed in socket IC4.</P
348
><P
349
>Set JP6 to 16 bit mode (1-2 soldered, 2-3 cut)  Set SW1-4
350
to ON and SW2-1 to OFF.</P
351
><P
352
></P
353
><P
354
><SPAN
355
CLASS="emphasis"
356
><I
357
CLASS="EMPHASIS"
358
>Method2: </I
359
></SPAN
360
> </P
361
><P
362
>Assuming that the stub binary is smaller than 32 KB, you can
363
install it in a single EPROM.</P
364
><P
365
>Compile the <TT
366
CLASS="FILENAME"
367
>mkcqrom.c</TT
368
> program
369
found in the <TT
370
CLASS="FILENAME"
371
>misc</TT
372
> directory.</P
373
><P
374
>Use it to convert the binary image to the required format.
375
See the  <TT
376
CLASS="FILENAME"
377
>mkcqrom.c</TT
378
> source for a
379
description of what is done, and why it is  necessary. </P
380
><TABLE
381
BORDER="5"
382
BGCOLOR="#E0E0F0"
383
WIDTH="70%"
384
><TR
385
><TD
386
><PRE
387
CLASS="PROGRAMLISTING"
388
> % mkcqrom gdb_module.bin gdb_mangled.bin</PRE
389
></TD
390
></TR
391
></TABLE
392
><P
393
>Program the <TT
394
CLASS="FILENAME"
395
>gdb_mangled.bin</TT
396
> file
397
into an EPROM and install it in  socket IC4</P
398
><P
399
>Set JP6 to 8 bit mode (cut 1-2, solder 2-3)</P
400
><P
401
>The GDB stubs allow communication with GDB using the serial
402
port at connector CN7. The communication parameters are fixed at
403
38400 baud, 8 data bits, no parity bit and 1 stop bit (8-N-1). No
404
flow control is employed. Connection to the host computer should
405
be made using a  straight through serial cable.</P
406
></DIV
407
></DIV
408
><DIV
409
CLASS="NAVFOOTER"
410
><HR
411
ALIGN="LEFT"
412
WIDTH="100%"><TABLE
413
SUMMARY="Footer navigation table"
414
WIDTH="100%"
415
BORDER="0"
416
CELLPADDING="0"
417
CELLSPACING="0"
418
><TR
419
><TD
420
WIDTH="33%"
421
ALIGN="left"
422
VALIGN="top"
423
><A
424
HREF="setup-sh-edk7708.html"
425
ACCESSKEY="P"
426
>Prev</A
427
></TD
428
><TD
429
WIDTH="34%"
430
ALIGN="center"
431
VALIGN="top"
432
><A
433
HREF="ecos-user-guide.html"
434
ACCESSKEY="H"
435
>Home</A
436
></TD
437
><TD
438
WIDTH="33%"
439
ALIGN="right"
440
VALIGN="top"
441
><A
442
HREF="setup-sh-hs7729pci.html"
443
ACCESSKEY="N"
444
>Next</A
445
></TD
446
></TR
447
><TR
448
><TD
449
WIDTH="33%"
450
ALIGN="left"
451
VALIGN="top"
452
>SH3/EDK7708 Hardware Setup</TD
453
><TD
454
WIDTH="34%"
455
ALIGN="center"
456
VALIGN="top"
457
><A
458
HREF="appendix-target-setup.html"
459
ACCESSKEY="U"
460
>Up</A
461
></TD
462
><TD
463
WIDTH="33%"
464
ALIGN="right"
465
VALIGN="top"
466
>SH3/HS7729PCI Hardware Setup</TD
467
></TR
468
></TABLE
469
></DIV
470
></BODY
471
></HTML
472
>

powered by: WebSVN 2.1.0

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