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

Command Tools Quick Start (Simplified)

Development Tools:

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

(9.9)
2/9
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 Sun
1
Linux XMOS 2
Linux 64 32
Red Hat Support 3
2


2.1
Windows
1. :
http://www.xmos.com/downloads
1http://java.sun.com/javase/downloads
2http://www.xmos.com/support
3http://www.redhat.com/support
www.xmos.com

(9.9)
3/9
2.
Desktop Tools Prompt (version)
3. · · XMOS · XMOS · Desktop Tools version · Desktop
Tools Prompt ( Desktop Tools Prompt )
4.
§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.
§5
2.3
Mac OS X
1. Macintosh DMG :
http://www.xmos.com/downloads
2. DMG XMOS
3. DMG (CMD+E)
4. :
SetEnv.command
5.
§5
www.xmos.com

(9.9)
4/9
3

JTAG XMOS USB-JTAG
USB
3.1 Windows USB
1. USB
2.
Windows

Windows
Desktop Tools/Drivers

3.2
Linux USB
1. USB
2. root shell
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. root
3.3
Mac OS X USB
Mac OS X USB
www.xmos.com

(9.9)
5/9
4
"Hello World"
"Hello World" XMOS

# include <stdio .h>
int main(void) {
puts("Hello World !");
return 0;
}
4.1


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

(9.9)
6/9
5


--help
XMOS
xcc --help
XMOS Tools User Guide[1]
5.1 XCC
XCC XMOS CC++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 XGDB
xcc -g file.xc
-O1 -O2-O3 /

xcc -O2 file.xc
-I
xcc -I ./ headers file.xc
5.2
XGDB
XGDB XMOS CC++XC ASM
XCC -g
www.xmos.com

(9.9)
7/9
xcc -g file.xc -o file.xe
XGDB :
xgdb file.xe
XGDB :
(gdb) connect

(gdb) connect -s
:
(gdb) load
XGDB main
(gdb) break main
(gdb) continue
5.3
XSIM
XSIM XMOS XCC XE

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)
8/9
NID

PID

TID

D =
* =
FLAGS
P =
d = XCore

a i (A/I)
- =
a =
i = ININT
m = MSYNC
TSTATUS
s = SSYNC
w = WAITING
p =

- =
b =
i =
e =

MSYNC = m -
ATSR
SSYNC = s -
INK = k -
INENB = n -
PC
program counter
INST

CYCLE

www.xmos.com

9/9
6


Programming XC on XCore XS1 Devices [2].
The XMOS Tools User Guide [1].
The XMOS XS1 Architecture [3].
:
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. Programming XC on XMOS Devices. XMOS Limited, Sep 2009.
http://www.xmos.com/published/xc_en.
[3] David May. The XMOS XS1 Architecture. XMOS

Revision History

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