??? ???? ????
Login |
  • Why Register?
  • Download development tools
  • Create and track support tickets
  • Subscribe to resource updates
  • Access latest developer news
Register

Command Tools Quick Start (Korean)

Development Tools:

Version 9.9
Publication Date: 2009/09/24
Copyright © 2009 XMOS Ltd. All Rights Reserved.
(9.9)
2/12
1

XMOS ( )
XMOS
.
1.1

.
Windows
XP SP2 (32-bit with 32-bit JRE)
Linux
RHEL 4.6 (32-bit with 32-bit JRE)
RHEL 4.6 (64-bit with 64-bit JRE)
Mac
OS X 10.5 (Intel)
Java Runtime Environment (JRE) 1.5
, JRE Sun 1 .
. XMOS 2
.
64 32
. Red Hat
Support 3
.
1http://java.sun.com/javase/downloads
2http://www.xmos.com/support
3http://www.redhat.com/support
www.xmos.com
(9.9)
3/12
2

.
2.1

1. .
http://www.xmos.com/downloads
2.
.
3. ()
.
4. Select >>XMOS>XMOS>Desktop>Tools>version>
Desktop Tools Prompt ( Desktop Tools Prompt
).
5. .
, 5 .
2.2

1. .
http://www.xmos.com/downloads
2. DesktopTools_<version>.tgz
.
tar -xzf DesktopTools_ <version >. tgz -C /home/user
3. .
source SetEnv
4. .
, 5 .
www.xmos.com
(9.9)
4/12
2.3
OSX
1. DMG .
http://www.xmos.com/downloads
2. DMG XMOS
.
3. , DMG (CMD+E)
.
4. .
SetEnv.command
5. .
, 5 .
3

JTAG . XMOS
PC USB-JTAG .
USB .
3.1
USB
1. USB
.
2. ' ' . '
' ' ' ''
. ,
.
:
, .
Desktop Tools/Drivers .
www.xmos.com
(9.9)
5/12
3.2
USB
1. USB
.
2. .
3. /etc/fstab .
none /proc/bus/usb usbfs defaults , devmode =0666 0 0
4. USB .
umount /proc/bus/usb
5. USB .
mount /proc/bus/usb
6. .
3.3
OS X USB
OS X USB
. .
www.xmos.com
(9.9)
6/12
4
"Hello World"
"Hello World"
XMOS .
,
.
helloworld.xc
# include <stdio .h>
int main(void) {
puts("Hello World !");
return 0;
}
4.1

.
xcc helloworld .xc -o hw.xe
-o hw.xe . -o
a.xe .
4.2
XMOS
XMOS .
xsim hw.xe
"Hello World!" .
4.3
XMOS
XMOS .
xrun --io hw.xe
--io I/O ,
(puts ) . "Hello World"
.
www.xmos.com
(9.9)
7/12
5


.
--help
. , XMOS
.
xcc --help
XMOS (XMOS Tools User
Guide) [1] .
5.1 XCC
XCC XMOS ,C, C++, XC ASM
.
ELF
.
xcc -c file01 .xc
xcc -c file02 .c
xcc file01 .o file02 .o file03 .xc
-c .
.
-Wall .
xcc -Wall file.xc
-g
.
xcc -g file.xc
-O1, -O2, -O3 ()
.
xcc -O2 file.xc
-I
.
xcc -I ./ headers file.xc
www.xmos.com
(9.9)
8/12
5.2
XGDB
GDB C, C++, XC ASM
XMOS .
XCC -g
. .
xcc -g file.xc -o file.xe
.
xgdb file.xe
.
(gdb) connect
.
(gdb) connect -s
.
(gdb) load
.
main .
(gdb) break main
(gdb) continue
5.3
XSIM
XSIM XCC XE XMOS
.
.
xsim file.xe

xsim -t file.xe
www.xmos.com
(9.9)
9/12
5.3.1

XSIM
. .
NID@PID@TID FLAGS TSTATUS.ATSR.PC : INST @CYCLE
www.xmos.com
(9.9)
10/12
NID

PID

TID

D =
* =
FLAGS
P =
d = XCore
. .
. a i (A / I)
.
- =
a = (active)
i = ININT
m = MSYNC
TSTATUS
s = SSYNC
w = WAITING
p =
:
- =
b =
i = ,
e = ,

MSYNC bit = m , -
ATSR
SSYNC bit = s , -
INK bit = k , -
INENB bit = n , -
PC
16
INST

CYCLE

www.xmos.com
(9.9)
11/12
6

.
· Programming XC on XMOS Devices [2].
· XMOS Tools User Guide [1].
· GDB Manual [3].
· The XMOS XS1 Architecture [4].
.
· http://www.xmos.com/documentation
www.xmos.com
12/12

[1] Douglas Watt and Huw Geddes. The XMOS Tools User Guide. XMOS Limited,
2009. http://www.xmos.com/published/xtools_en.
[2] Douglas Watt. Programming XC on XMOS Devices. XMOS Limited, Sep 2009.
http://www.xmos.com/published/xc_kr.
[3] The Free Software Foundation. Debugging with GDB. Website, 2008. http:
//www.xmos.com/published/xgdb87.
[4] David May. The XMOS XS1 Architecture. XMOS Limited, 2009. http://www.

Revision History

Revision Released Formats Supported Tools
Version: 9.9-[Y-M] September 15, 2010 download N/A