background image

6.2

JTAG system-level debugger

27

6.1.1

mdebug

The mdebug image adds Ethernet and wireless download capabilities using
the

Blast

protocol to the Neon

R

. The

SSID

and

DLW

commands above are

only valid when

mdebug

is present.

The following is an example of the use of

mdebug

and

DLW

. Note that

the first commands used download mdebug to address

A1C00000

and run it

from there. Also note that the use of DLW requires a DHCP or BOOTP
server for IP address assignment.

DLW example

. dl a1c00000
CCCCCCCCCCC
enter binary file name: mdebug
CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC.....................
...................................................
73620 bytes, 72 packets, 0 retrys
OK A1C00000-A1C12000
. g a1c00000
$S00#b3
Reset A0008000
R0:

00000000

R1:

0000014C

R2:

00000001

R3:

00000060

R4:

A1F1D540

R5:

A1F22B1C

R6:

A1E9BECC

R7:

00000002

R8:

A1E9BFDC

R9:

A1E9BE88

SL:

00000000

FP:

A1E9BE10

IP:

A1E9BE14

SP:

A0003400

LR:

A0008000

PC:

A0008000

CPSR 600000D3

FP0: 0000000000

.
. dlw a0008000
Boundary Devices 1
SMC91C11xFD
%s: PHY=LAN83C183 (LAN91C111 Internal)
%s: PHY remote fault detected
%s: Ethernet Link Detected
%s: PHY 100BaseT
%s: PHY Half Duplex
valid mac address
00:50:C2:06:30:8F
..........DISC:received 0x012C bytes of reply
done
REQ:received 0x012C bytes of reply
done
router at 192.168.0.1
DNS server at 68.2.16.25
DNS server at 68.2.16.30
DNS server at 68.6.16.30
DHCP success, using IP 192.168.0.14
ready to receive file

enter binary file name: cramfs.img
...........................................................
................
transmitted in 52 seconds
.[eof]
lost 0x00000000 packets
[eof] in 52 seconds
sent 19783680 bytes of file to 192.168.0.14
Error free!!!

0x012DE000 bytes written to buffer at A0008000 A12E6000

6.2

JTAG system-level debugger

The jtag executable provided by Boundary Devices is based on the one
provided by the

Open WinCE

project.

Our main goals in developing the jtag program were to aid in hardware

debugging and to allow the first flash EEPROM image to be burned onto

December 28, 2005

Revision 2.8

Summary of Contents for Boundary Devices Neon Board 2.8

Page 1: ...1 User s Manual for the Boundary Devices NeonR board December 28 2005 December 28 2005 Revision 2 8...

Page 2: ...ector pin outs Figure 2 2005 07 23 2 2 Updated U Boot version 2005 08 09 2 3 Added notes on mac address command 2005 09 15 2 4 Bumped BSP revision 2005 10 21 2 5 Bumped U Boot revision 2005 11 07 2 6...

Page 3: ...Script 13 5 2 Windows CE 14 5 2 1 Prerequisites and components 14 5 2 2 BSP Installation 14 5 2 3 Building the demo 15 5 3 Linux Support 16 5 3 1 Crosstool Linux Toolchain 16 5 3 2 Crosstool Embedded...

Page 4: ...es 34 7 1 Display configuration 34 7 1 1 What display is currently selected 35 7 1 2 What displays are supported 36 7 1 3 Select a supported display 38 7 1 4 Define and test a new display 39 7 1 5 Sav...

Page 5: ...ive LCD Display Support 4 or 5 Wire Resistive Touch Screen Support 44KHz Stereo 16 Bit Audio Output for Headphones or Speakers 44KHz Monaural Audio Input microphone 1 RS 232 or TTL Serial Port 1 USB 1...

Page 6: ...h edge in each of the four corners and the holes are 1 8 in diameter 4 3 Connector reference The following is a list of all connector part numbers used on the NeonR platform for use in identifying mat...

Page 7: ...UART 1 PIN2 NO CONNECT PIN3 GROUND PIN4 DATA OUT PIN5 DATA IN PIN6 CLEAR TO SEND PIN1 REQUEST TO SEND UART2 PIN 1 POWER PIN2 DATA OUT PIN3 DATA IN PIN4 GROUND HD15 R G B ANALOG CONNECTOR J16 AND J16...

Page 8: ...KS 001 BNW I2C FCI 68897 001 Ethernet Halo HFJ11 2450E Stereo Audio Singatron 2SJ 43723N13 Backlight inverter Molex 53048 0210 MMC SD AVX 14 5638 009 511 862 TFT Display Touch Screen Molex 52207 0590...

Page 9: ...r building 5 1 1 Requirements for building under Linux Since the Das U Boot project uses GNU tools most of the required compo nents will generally be available on a GNU Linux system The three pieces w...

Page 10: ...y type DA640X240 DA320X240 DA800X480 DA640X480 DA240X320 DA1024X768 DA1024X768 answer Choose hardware type NEONB NEON BD2003 NEON answer Choose software type WINCE LINUX WINCE answer Include minidebug...

Page 11: ...operating system image from a file named nk nb0 to RAM address 0xa0030000 and executes it Both of these are defined by the lines which resemble this define CONFIG_BOOTCOMMAND mmcinit fatload mmc 0 a0...

Page 12: ...High 0xA1FFFFFF Extra space between Das U Boot and 32MB boundary Tail of 32MB 0xA1F00000 0xA1F00000 The Das U Boot image is loaded 1MB below the 32MB boundary Das U Boot image 0xA1EFFFFF 0xA1EFFFFF T...

Page 13: ...AUTOEXEC BAT The sample script is defined in u boot 1 1 2 board neon init script and performs the following steps 1 Loads and displays a logo The script looks for an image file named logo bmp on the M...

Page 14: ...te list of components and where they may be obtained Windows CE 5R Microsoft Embedded Visual C 4 0 Microsoft Embedded Visual C Service Pack Microsoft NeonR Board Support Package Boundary Devices 5 2 2...

Page 15: ...wget http boundarydevices com bdWeb pbxml 17 37 40 http boundarydevices com bdWeb pbxml bdWeb pbxml Resolving boundarydevices com 66 113 228 134 Connecting to boundarydevices com 66 113 228 134 80 con...

Page 16: ...ed in the crosstool Quick Start guide the next step is to choose a starting point with one of the demo build scripts We re currently using demo arm xscale sh with the following settings GCC 3 4 3 with...

Page 17: ...18 20 48 arm linux ranlib rwxr xr x 1 username cvsd 429743 Jul 18 20 48 arm linux readelf rwxr xr x 1 username cvsd 1806673 Jul 18 20 48 arm linux size rwxr xr x 1 username cvsd 1780595 Jul 18 20 48...

Page 18: ...n t need to run as root mkdir p RESULT_TOP Build the toolchain Takes a couple hours and a couple gigabytes eval cat arm elf newlib 1 12 0 dat sh all newlib sh notest echo Done Next edit the contrib ne...

Page 19: ...6 11 11 tar bz2 tar xvf wget http boundarydevices com boundary 2 6 11 11 2005 11 17 patch bz2 cd linux 2 6 11 11 bzcat boundary 2 6 11 11 2005 11 25 patch bz2 patch p1 cp arch arm configs neon_config...

Page 20: ...is process will fail If you do you may see a password prompt very near the end of the build process while installing tinylogin into the root filesystem To avoid this you can either set your sudo timeo...

Page 21: ...structions make The install target can be used to simply build the components with out making a root filesystem 4 Install libraries into install This mingling of various libraries is done to allow sim...

Page 22: ...e flash GPL d Flash Library Swift Tools freetype FreeType Text Rendering The FreeType Project jpeg JPEG image library Independent JPEG Group Javascript Javascript library Mozilla Project ID3 Tag Libra...

Page 23: ...ernel Miscellaneous Filesystems Journalling Flash File System v2 3 mmcinitrd mmcinitrd u boot Creates a single file as a read write uncompressed image of a filesystem tree suitable for use as an initi...

Page 24: ...tem within it Both the initrd and cramfs images may be used in this fashion as shown in the following examples Mount a cramfs file by far the simplest case sudo mount o loop t cramfs cramfs img mnt cr...

Page 25: ...to the root of the SD card Furthermore it presumes the existence of a script or executable named linux init in the root directory of the SD card This is done both as an example and as a useful way of...

Page 26: ...ger on the attached system The following is a list of commands that can be issued at the dot prompt Note that this list can also be retrieved through minidebug by entering a question mark command para...

Page 27: ...00 LR A0008000 PC A0008000 CPSR 600000D3 FP0 0000000000 dlw a0008000 Boundary Devices 1 SMC91C11xFD s PHY LAN83C183 LAN91C111 Internal s PHY remote fault detected s Ethernet Link Detected s PHY 100Bas...

Page 28: ...al and parallel ports Note that after the cygwin package is installed you still need to enable the driver through the use of the ioperm executable For the cmd exe inclined c c cygwin bin ioperm exe v...

Page 29: ...d option is used to load minidebug The d option just loads minidebug The x option then proceed to dowload a file over the serial port using xmodem The e option dowloads a file using ethernet wireless...

Page 30: ...bugger cd jtag d ioport 3bc wrote 5d read ff using printer port at 378 IDCODE 69264013 0110 1001001001100100 00000001001 1 Halt released Waiting for stub LDIC finished This uses the program minidebug...

Page 31: ...use ctrl C dl a1f00000 CCCCCCCCCCCCCC enter binary file name u boot bin CCCCCCCCCCCCCCCC 81292 bytes 80 packets 0 retrys OK A1F00000 A1F14000 To burn a range of data from RAM to the start of flash us...

Page 32: ...Does not require Cygwin and ioperm Because it s a WindowsR graphical application it s a bit simpler to use and has a file chooser dialog The drawback is that it does not support the jtag hardware con...

Page 33: ...oot files The second thing to note in the example is the use of the serverip environment variable This variable defines the IP address of the TFTP server in this case 192 168 0 26 If your DHCP server...

Page 34: ...can be saved in the environment as well as described below Name Resolution Description qvga portrait 240 x 320 Hitachi Quarter VGA 3 5 panel hitachi qvga 320 x 240 Hitachi High Brightness Quarter VGA...

Page 35: ...1 2 common lcd_panels c To allow the testing of these settings and the use of a different display without re compiling the lcdp boot loader command is available It may be used in one of the following...

Page 36: ...followed by a question mark will list the currently sup ported displays As shown in the following example the list is extensive and extensible as we ll show later lcdp name hitachi_qvga pixclock 0 xre...

Page 37: ...ync_len 20 upper_margin 8 lower_margin 3 active 1 name sharp_vga pixclock 1 xres 640 yres 480 act_high 1 hsync_len 64 left_margin 60 right_margin 60 vsync_len 20 upper_margin 34 lower_margin 3 active...

Page 38: ...a pixclock 1 xres 800 yres 480 act_high 1 hsync_len 64 left_margin 1 right_margin 39 vsync_len 20 upper_margin 8 lower_margin 3 active 1 The selection takes place immediately so if you have a panel co...

Page 39: ...F20500 BSS A1F54520 RAM Configuration Bank 0 a0000000 64 MB Flash 32 MB panel hitachi_wvga found 800 x 480 7 1 4 Define and test a new display If you add a plus sign to the lcdp command line you ll be...

Page 40: ...to Flash EEPROM All of the descriptions above are useful but don t address the issue of persis tence That is performed through the use of the panel environment variable and the saveenv Das U Boot com...

Page 41: ...zero If you have a new Das U Boot image typically u boot bin on an SD MMC card you can upgrade it by first unprotecting and erasing the first sector of flash then copying the new image to address zero...

Page 42: ...ch screen calibration settings If you re using bdScript startup code the cali bration routine will launch upon first boot if not defined Under Windows CE the touch screen settings are stored on the MM...

Page 43: ...mac command as shown below Invoked without an argument the command will display the current MAC address Used with a single parameter MAC address with colons separating each pair of hex digits the comm...

Reviews: