Abatron BDI2000 Installation Manual - page 13
bdi
Access
JTAG interface library, BDI2000 (MIPS32)
Installation Manual
13
© Copyright 1992-2004 by ABATRON AG
V 1.00
2.6 BDI2000 Setup/Update
First make sure that the BDI is properly connected (see Chapter 2.1 to 2.4). The BDI must be con-
nected via RS232 to the Windows host.
To avoid data line conflicts, the BDI2000 must be disconnected from the target system while
programming the logic for an other target CPU (see Chapter 2.1.1).
2.6.1 Linux/Unix Hosts
In order to update the firmware / logic of the BDI and to set the network parameters, a setup tool is
included for Linux/Unix hosts. In the ZIP Archive bdisetup.zip are all sources to build this utility.
This command line utility can be used to update the firmware and logic of the BDI2000. It is also used
to transfer the network configuration. There are 4 tasks the utility can process:
• Reading the current loaded firmware / logic version
• Erasing the firmware and logic
• Updating the firmware and logic
• Storing the network configuration parameters into the BDI flash
Every of this task is started by executing the setup utility with different parameters. The first param-
eter always selects the task to execute:
bdisetup { -v | -e | -u | -c } [additional parameters]
-v
Read version
-e
Erase firmware and logic
-u
Update firmware and/or logic
-c
Store network configuration
There are two common additional parameters which define the serial port and the serial baudrate:
-pP
Port to use, replace P with the port to use e.g. /dev/ttyS0
-bB
Baudrate to use, replace B with 9, 19, 38, 57 or 115
Additional parameters for update (-u):
-aA
Application type, replace A with ACC
-tT
Target type, replace T with MIPS
-dD
Replace D with the directory with the firmware/logic files
Additional parameters for network configuration (-c):
-iI
Replace I with the BDI IP address (format: xxx.xxx.xxx.xxx)
-mM
Replace M with the subnet mask.
A subnet mask of 255.255.255.255 disables the gateway function
-gG
Replace G with the default gateway IP address
All parameters have default values. See function main(). You may adjust this default values for your
convenience. See also bdisetup.c and document BDIACC.PDF for additional information
To build the setup utility use: gcc bdisetup.c bdidll.c -o bdisetup
!