beautypg.com

2 build sti5100 ipstb code, Build sti5100 ipstb code, Location of source files – Maxim Integrated 78Q8430 ST 5100/OS-20 with NexGen TCP/IP Stack User Manual

Page 23: Build the software

background image

UM_8430_005

78Q8430 Driver Manual for ST5100/OS-20 with NexGen TCP/IP Stack

Rev. 1.0

23

ST5100 FMI Clock Rate Settings

The FMI clock rate settings in the file are shown below:

##TTPMOD TSC modified settings ##
## sdram refresh bank 5
## flash runs @ 1/2 bus clk
## sdram runs @ bus clk
poke -d (STI5100_FMI_GEN_CFG) 0x00000000
## poke -d (STI5100_FMI_FLASH_CLK_SEL) 0x00000001 ##1/2 ST bus clock (50.4MHz)
## poke -d (STI5100_FMI_FLASH_CLK_SEL) 0x00000002 ##1/3 ST bus clock (36MHz)
poke -d (STI5100_FMI_FLASH_CLK_SEL) 0x00000000

##1/1 ST bus clock (100.8MHz)

poke -d (STI5100_FMI_CLK_ENABLE) 0x00000001

5.2 Build STi5100 IPSTB Code

5.2.1 Location of Source Files

The relevant TSC and NexGen source files required to build and run the STi5100 video streaming
application example are listed below. The NexGen files include modifications to support the hardware
checksum.

TSC Source Files

• Directory path:

C:\ipstba5

\src\nexgen_drv

o

ether_tsc78q8430.c

Wrapper file which include Teridian source files

o

tsccore.c

Core code

o

tscport.c

OS and H/W dependent code

o

tsctest.c

Test application code

• Directory

path:

C:\ipstba5

\include

o

ether_tsc78q8430.h

Wrapper file which include Teridian header files

o

tscport.h

OS and H/W dependent headers

o

commem.h

Common memory, data structure declaration

o

comregs.h

Register

declaration

NexGen Files with Hardware Checksum

• Directory path:

C:\ipstba5

\src\nexgen_drv

o

ipncs.c

Enable HW checksum usage in IP files

o

udpncs.c

Enable HW checksum usage in UDP files

o

tcpncs.c

Enable HW checksum usage in TCP files

5.2.2 Build the Software

Use the following procedure to build the software:

STEP 1:

Use Windows File Manager to open a window.

STEP 2:

Select the directory C:\ipstba5.

STEP 3:

Double click to execute the ipstb_setup link. A blue DOS window will appear displaying:

Using 5100ref root: c:\ipstba5
c:\ipstba5

\src\ref_ipstb>


STEP 4:

Make the new Ethernet device driver and NexGen code (create nexgen_drv.lib).

Change to directory C:\ipstba5\src\nexgen_drv.

▪ gmake

clean

▪ gmake