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

Command Tools Quick Start (Japanese)

Development Tools:

--
Version 9.9
Publication Date: 2009/09/24
Copyright © 2009 XMOS Ltd. All Rights Reserved.

-- (9.9)
2/11
1

XMOS

1.1


Windows
XP SP2 (3232JRE)
Linux
RHEL 4.6 (3232JRE)
RHEL 4.6 (6464JRE)
Mac
OS X 10.5 (Intel)
Java Runtime Environment (JRE)1.5
1
Linux XMOS2

Linux6432
Red Hat3
1http://java.sun.com/javase/downloads
2http://www.xmos.com/support
3http://www.redhat.com/support
www.xmos.com

-- (9.9)
3/11
2


2.1
Windows
1. :
http://www.xmos.com/downloads
2.
Desktop Tools Prompt (version)

3. Start>Programs>XMOS>XMOS>Desktop>Tools>version>
Desktop Tools Prompt(Desktop Tools Prompt
)
4.
Section 5
2.2
Linux
1. :
http://www.xmos.com/downloads
2. DesktopTools_<version>.tgz

tar -xzf DesktopTools_ <version >. tgz -C /home/user
3.
source SetEnv
4.
Section 5
www.xmos.com

-- (9.9)
4/11
2.3
Mac OS X
1. PCDMG:
http://www.xmos.com/downloads
2. DMG
XMOS

3. DMG(CMDE)
4. : SetEnv.command
5.
Section 5
3

JTAG
XMOSPCUSB-JTAG
USB

3.1
WindowsUSB
1. USB
2. WindowsYESNEXT
21
:Windows

Desktop Tools/Drivers
www.xmos.com

-- (9.9)
5/11
3.2
LinuxUSB
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
Mac OS XUSB
Mac OS XUSB

www.xmos.com

-- (9.9)
6/11
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
a.xe
4.2
XMOS

xsim hw.xe
"Hello World!"
4.3
XMOS

xrun --io hw.xe
www.xmos.com

-- (9.9)
7/11
--ioputs
I/O"Hello World!"

5



--help
XMOS
xcc --help
XMOS Tools User Guide [1]

5.1
XCC
XCC XMO C, C++, XC

ELF:
xcc -c file01 .xc
xcc -c file02 .c
xcc file01 .o file02 .o file03 .xc
-c

-Wall
xcc -Wall file.xc
-gXGDB

xcc -g file.xc
www.xmos.com

-- (9.9)
8/11
-O1, -O2, -O3

xcc -O2 file.xc
-I
xcc -I ./ headers file.xc
5.2
XGDB
XGDB XMOS C, C++, XC

XCC-g

xcc -g file.xc -o file.xe
XGDB
xgdb file.xe
XGDB:
(gdb) connect
XGDB:
(gdb) connect -s
:
(gdb) load
XGDB
main:
(gdb) break main
(gdb) continue
www.xmos.com

-- (9.9)
9/11
5.3
XSIM
XSIM XMOS

:
xsim file.xe

xsim -t file.xe
5.3.1

XSIM
:
NID@PID@TID FLAGS TSTATUS.ATSR.PC : INST @CYCLE
www.xmos.com

-- (9.9)
10/11
NID

PID

TID

D =
* =
FLAGS
P =
d = Xcore

a i(A /
I)
- =
a =
i = ININT bit set
m = MSYNC bit set
TSTATUS
s = SYNC bit set
w = WAITING bit set
p =
:
- =
b =
i =
e =

MSYNC bit = m set, - not set
ATSR
SSYNC bit = s set, - not set
INK bit = k set, - not set
INENB bit = n set, - not set
PC
Hexadecimal
INST

CYCLE

www.xmos.com
11/11
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

[1] Douglas Watt and Huw Geddes. The XMOS Tools User Guide. XMOS Limited, 2009.
http://www.xmos.com/published/xtools_en.
[2] Douglas Watt. XMOS. XMOS Limited, Sep 2009. http:
//www.xmos.com/published/xc_jp.
[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.xmos.

Revision History

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