Preparing to use the jtag debugger, Loading the rambased redboot via jtag, Loading the ram-based redboot via jtag – Comtrol eCos User Manual

Page 188

Advertising
background image

Chapter 5. Installation and Testing

The RedBoot binary image files should also be copied to the TFTP pickup area on the host providing TFTP services
if that is how RedBoot should pick up the images it is going to program into the flash. Alternatively, the images
can be passed by YMODEM over the serial link.

Preparing to use the JTAG debugger

The JTAG debugger will also need setting up:

1. Install the JTAG debugger software (WICE103E) on a PC running Windows (WinNT is probably the best

choice for this) in “C:/PanaX”.

2. Install the Matsushita provided “project” into the “C:/Panax/wice103e/prj” directory.

3. Install the RedBoot image files into the “C:/Panax/wice103e/prj” directory under the names redboot.ram and

redboot.prom.

4. Make sure the PC’s BIOS has the parallel port set to full bidirectional mode.

5. Connect the JTAG debugger to the PC’s parallel port.

6. Connect the JTAG debugger to the board.

7. Set the switch on the front of the board to boot from “boot PROM”.

8. Power up the JTAG debugger and then power up the board.

9. Connect the board’s Debug Serial port to a computer by a null modem cable.

10. Start minicom or some other serial communication software and set for 115200 baud, 1-N-8 with hardware

(RTS/CTS) flow control.

Loading the RAM-based RedBoot via JTAG

To perform the first half of the operation, the following steps should be followed:

1. Start the JTAG debugger software.

2. Run the following commands at the JTAG debugger’s prompt to set up the MMU registers on the CPU.

ed 0xc0002000, 0x12000580

ed 0xd8c00100, 0x8000fe01

ed 0xd8c00200, 0x21111000

ed 0xd8c00204, 0x00100200

ed 0xd8c00208, 0x00000004

ed 0xd8c00110, 0x8400fe01

ed 0xd8c00210, 0x21111000

ed 0xd8c00214, 0x00100200

ed 0xd8c00218, 0x00000004

ed 0xd8c00120, 0x8600ff81

ed 0xd8c00220, 0x21111000

ed 0xd8c00224, 0x00100200

ed 0xd8c00228, 0x00000004

84

Advertising