- improved ethernet initialization order for LM3S.

git-svn-id: https://svn.code.sf.net/p/openblt/code/trunk@93 5dc33758-31d5-4daf-9ae8-b24bf3d40d73
This commit is contained in:
Frank Voorburg 2014-07-17 08:36:41 +00:00
parent da0194b0ac
commit 523961a7de
41 changed files with 3706 additions and 3696 deletions

View File

@ -574,6 +574,7 @@ Discarded input sections
0x00000000 0xa4 THUMB Debug/../../obj/uip.o
.text.uip_unlisten
0x00000000 0x24 THUMB Debug/../../obj/uip.o
.text.htons 0x00000000 0xa THUMB Debug/../../obj/uip.o
.text 0x00000000 0x0 THUMB Debug/../../obj/uip_arp.o
.data 0x00000000 0x0 THUMB Debug/../../obj/uip_arp.o
.bss 0x00000000 0x0 THUMB Debug/../../obj/uip_arp.o
@ -1282,7 +1283,7 @@ Linker script and memory map
0x00000001 . = ASSERT (((__init_end__ >= __FLASH_segment_start__) && (__init_end__ <= __FLASH_segment_end__)), error: .init is too large to fit in FLASH memory segment)
0x00000290 __text_load_start__ = ALIGN (__init_end__, 0x4)
.text 0x00000290 0x55e0
.text 0x00000290 0x55c4
0x00000290 __text_start__ = .
*(.text .text.* .glue_7t .glue_7 .gnu.linkonce.t.* .gcc_except_table .ARM.extab* .gnu.linkonce.armextab.*)
.glue_7 0x00000000 0x0 linker stubs
@ -1444,11 +1445,11 @@ Linker script and memory map
0x00001c30 0x8 THUMB Debug/../../obj/mmc.o
0x00001c30 get_fattime
.text.netdev_init
0x00001c38 0x90 THUMB Debug/../../obj/netdev.o
0x00001c38 0x18 THUMB Debug/../../obj/netdev.o
0x00001c38 netdev_init
.text.netdev_setmacaddr
0x00001cc8 0x94 THUMB Debug/../../obj/netdev.o
0x00001cc8 netdev_setmacaddr
.text.netdev_init_mac
0x00001c50 0x10c THUMB Debug/../../obj/netdev.o
0x00001c50 netdev_init_mac
.text.netdev_read
0x00001d5c 0x34 THUMB Debug/../../obj/netdev.o
0x00001d5c netdev_read
@ -1737,51 +1738,48 @@ Linker script and memory map
.text.uip_process
0x00004960 0x9b8 THUMB Debug/../../obj/uip.o
0x00004960 uip_process
.text.htons 0x00005318 0xa THUMB Debug/../../obj/uip.o
0x00005318 htons
*fill* 0x00005322 0x2 00
.text.uip_send
0x00005324 0x24 THUMB Debug/../../obj/uip.o
0x00005324 uip_send
0x00005318 0x24 THUMB Debug/../../obj/uip.o
0x00005318 uip_send
.text.uip_arp_update.constprop.0
0x00005348 0xd4 THUMB Debug/../../obj/uip_arp.o
0x0000533c 0xd4 THUMB Debug/../../obj/uip_arp.o
.text.uip_arp_timer
0x0000541c 0x58 THUMB Debug/../../obj/uip_arp.o
0x0000541c uip_arp_timer
0x00005410 0x58 THUMB Debug/../../obj/uip_arp.o
0x00005410 uip_arp_timer
.text.uip_arp_arpin
0x00005474 0xbc THUMB Debug/../../obj/uip_arp.o
0x00005474 uip_arp_arpin
0x00005468 0xbc THUMB Debug/../../obj/uip_arp.o
0x00005468 uip_arp_arpin
.text.uip_arp_out
0x00005530 0x140 THUMB Debug/../../obj/uip_arp.o
0x00005530 uip_arp_out
.text.NetInit 0x00005670 0x60 THUMB Debug/../../obj/net.o
0x00005670 NetInit
0x00005524 0x140 THUMB Debug/../../obj/uip_arp.o
0x00005524 uip_arp_out
.text.NetInit 0x00005664 0x60 THUMB Debug/../../obj/net.o
0x00005664 NetInit
.text.NetTransmitPacket
0x000056d0 0x38 THUMB Debug/../../obj/net.o
0x000056d0 NetTransmitPacket
0x000056c4 0x38 THUMB Debug/../../obj/net.o
0x000056c4 NetTransmitPacket
.text.NetReceivePacket
0x00005708 0xb0 THUMB Debug/../../obj/net.o
0x00005708 NetReceivePacket
.text.NetApp 0x000057b8 0x6c THUMB Debug/../../obj/net.o
0x000057b8 NetApp
0x000056fc 0xa0 THUMB Debug/../../obj/net.o
0x000056fc NetReceivePacket
.text.NetApp 0x0000579c 0x6c THUMB Debug/../../obj/net.o
0x0000579c NetApp
.text.libc.isdigit
0x00005824 0xc C:/Program Files (x86)/Rowley Associates Limited/CrossWorks for ARM 2.3/lib/libc_v7m_t_le_eabi_small.a(libc2.o)
0x00005824 isdigit
0x00005808 0xc C:/Program Files (x86)/Rowley Associates Limited/CrossWorks for ARM 2.3/lib/libc_v7m_t_le_eabi_small.a(libc2.o)
0x00005808 isdigit
.text.libc.toupper
0x00005830 0xe C:/Program Files (x86)/Rowley Associates Limited/CrossWorks for ARM 2.3/lib/libc_v7m_t_le_eabi_small.a(libc2.o)
0x00005830 toupper
*fill* 0x0000583e 0x2 00
0x00005814 0xe C:/Program Files (x86)/Rowley Associates Limited/CrossWorks for ARM 2.3/lib/libc_v7m_t_le_eabi_small.a(libc2.o)
0x00005814 toupper
*fill* 0x00005822 0x2 00
.text.libc.memcpy
0x00005840 0x1c C:/Program Files (x86)/Rowley Associates Limited/CrossWorks for ARM 2.3/lib/libc_v7m_t_le_eabi_small.a(libc2_asm.o)
0x00005840 __aeabi_memcpy
0x00005840 __aeabi_memcpy4
0x00005840 __aeabi_memcpy8
0x00005840 memcpy
0x00005824 0x1c C:/Program Files (x86)/Rowley Associates Limited/CrossWorks for ARM 2.3/lib/libc_v7m_t_le_eabi_small.a(libc2_asm.o)
0x00005824 __aeabi_memcpy
0x00005824 __aeabi_memcpy4
0x00005824 __aeabi_memcpy8
0x00005824 memcpy
.text.libc.memset
0x0000585c 0x14 C:/Program Files (x86)/Rowley Associates Limited/CrossWorks for ARM 2.3/lib/libc_v7m_t_le_eabi_small.a(libc2_asm.o)
0x0000585c memset
0x00005870 __text_end__ = (__text_start__ + SIZEOF (.text))
0x00005870 __text_load_end__ = __text_end__
0x00005840 0x14 C:/Program Files (x86)/Rowley Associates Limited/CrossWorks for ARM 2.3/lib/libc_v7m_t_le_eabi_small.a(libc2_asm.o)
0x00005840 memset
0x00005854 __text_end__ = (__text_start__ + SIZEOF (.text))
0x00005854 __text_load_end__ = __text_end__
.vfp11_veneer 0x00000000 0x0
.vfp11_veneer 0x00000000 0x0 linker stubs
@ -1792,101 +1790,101 @@ Linker script and memory map
.iplt 0x00000000 0x0
.iplt 0x00000000 0x0 THUMB Debug/../../obj/sysctl.o
0x00000001 . = ASSERT (((__text_end__ >= __FLASH_segment_start__) && (__text_end__ <= __FLASH_segment_end__)), error: .text is too large to fit in FLASH memory segment)
0x00005870 __dtors_load_start__ = ALIGN (__text_end__, 0x4)
0x00005854 __dtors_load_start__ = ALIGN (__text_end__, 0x4)
.dtors 0x00005870 0x0
0x00005870 __dtors_start__ = .
.dtors 0x00005854 0x0
0x00005854 __dtors_start__ = .
*(SORT(.dtors.*))
*(.dtors)
*(.fini_array .fini_array.*)
0x00005870 __dtors_end__ = (__dtors_start__ + SIZEOF (.dtors))
0x00005870 __dtors_load_end__ = __dtors_end__
0x00005854 __dtors_end__ = (__dtors_start__ + SIZEOF (.dtors))
0x00005854 __dtors_load_end__ = __dtors_end__
0x00000001 . = ASSERT (((__dtors_end__ >= __FLASH_segment_start__) && (__dtors_end__ <= __FLASH_segment_end__)), error: .dtors is too large to fit in FLASH memory segment)
0x00005870 __ctors_load_start__ = ALIGN (__dtors_end__, 0x4)
0x00005854 __ctors_load_start__ = ALIGN (__dtors_end__, 0x4)
.ctors 0x00005870 0x0
0x00005870 __ctors_start__ = .
.ctors 0x00005854 0x0
0x00005854 __ctors_start__ = .
*(SORT(.ctors.*))
*(.ctors)
*(.init_array .init_array.*)
0x00005870 __ctors_end__ = (__ctors_start__ + SIZEOF (.ctors))
0x00005870 __ctors_load_end__ = __ctors_end__
0x00005854 __ctors_end__ = (__ctors_start__ + SIZEOF (.ctors))
0x00005854 __ctors_load_end__ = __ctors_end__
0x00000001 . = ASSERT (((__ctors_end__ >= __FLASH_segment_start__) && (__ctors_end__ <= __FLASH_segment_end__)), error: .ctors is too large to fit in FLASH memory segment)
0x00005870 __rodata_load_start__ = ALIGN (__ctors_end__, 0x4)
0x00005854 __rodata_load_start__ = ALIGN (__ctors_end__, 0x4)
.rodata 0x00005870 0xc46
0x00005870 __rodata_start__ = .
.rodata 0x00005854 0xc46
0x00005854 __rodata_start__ = .
*(.rodata .rodata.* .gnu.linkonce.r.*)
.rodata.g_pulXtals
0x00005870 0x6c THUMB Debug/../../obj/sysctl.o
0x00005854 0x6c THUMB Debug/../../obj/sysctl.o
.rodata.str1.1
0x000058dc 0x6b THUMB Debug/../../obj/sysctl.o
*fill* 0x00005947 0x1 00
0x000058c0 0x6b THUMB Debug/../../obj/sysctl.o
*fill* 0x0000592b 0x1 00
.rodata.g_pulRCGCRegs
0x00005948 0xc THUMB Debug/../../obj/sysctl.o
0x0000592c 0xc THUMB Debug/../../obj/sysctl.o
.rodata.g_pulSRCRRegs
0x00005954 0xc THUMB Debug/../../obj/sysctl.o
0x00005938 0xc THUMB Debug/../../obj/sysctl.o
.rodata.str1.1
0x00005960 0x69 THUMB Debug/../../obj/gpio.o
0x00005944 0x69 THUMB Debug/../../obj/gpio.o
.rodata.str1.1
0x000059c9 0x6d THUMB Debug/../../obj/flashlib.o
0x000059ad 0x6d THUMB Debug/../../obj/flashlib.o
.rodata.str1.1
0x00005a36 0x6c THUMB Debug/../../obj/uartlib.o
0x00005a1a 0x6c THUMB Debug/../../obj/uartlib.o
.rodata.str1.1
0x00005aa2 0x68 THUMB Debug/../../obj/ssi.o
0x00005a86 0x68 THUMB Debug/../../obj/ssi.o
.rodata.str1.1
0x00005b0a 0x6d THUMB Debug/../../obj/ethernet.o
0x00005aee 0x6d THUMB Debug/../../obj/ethernet.o
.rodata.firmwareFilename
0x00005b77 0x1b THUMB Debug/../../obj/hooks.o
0x00005b5b 0x1b THUMB Debug/../../obj/hooks.o
.rodata.str1.1
0x00005b92 0xd THUMB Debug/../../obj/hooks.o
0x00005b76 0xd THUMB Debug/../../obj/hooks.o
.rodata.str1.1
0x00005b9f 0x85 THUMB Debug/../../obj/vectors.o
0x00005b83 0x85 THUMB Debug/../../obj/vectors.o
.rodata.flashLayout
0x00005c24 0xc0 THUMB Debug/../../obj/flash.o
0x00005c08 0xc0 THUMB Debug/../../obj/flash.o
.rodata.str1.1
0x00005ce4 0x77 THUMB Debug/../../obj/uart.o
0x00005cc8 0x77 THUMB Debug/../../obj/uart.o
.rodata.xcpStationId
0x00005d5b 0x8 THUMB Debug/../../obj/xcp.o
0x00005d3f 0x8 THUMB Debug/../../obj/xcp.o
.rodata.str1.1
0x00005d63 0x1ef THUMB Debug/../../obj/file.o
0x00005d47 0x1ef THUMB Debug/../../obj/file.o
0x1fb (size before relaxing)
.rodata.str1.1
0x00005f52 0x10 THUMB Debug/../../obj/ff.o
.rodata.ExCvt 0x00005f62 0x80 THUMB Debug/../../obj/ff.o
0x00005f36 0x10 THUMB Debug/../../obj/ff.o
.rodata.ExCvt 0x00005f46 0x80 THUMB Debug/../../obj/ff.o
.rodata.LfnOfs
0x00005fe2 0xd THUMB Debug/../../obj/ff.o
*fill* 0x00005fef 0x1 00
0x00005fc6 0xd THUMB Debug/../../obj/ff.o
*fill* 0x00005fd3 0x1 00
.rodata.tbl_lower.3809
0x00005ff0 0x1e0 THUMB Debug/../../obj/unicode.o
.rodata.Tbl 0x000061d0 0x100 THUMB Debug/../../obj/unicode.o
0x00005fd4 0x1e0 THUMB Debug/../../obj/unicode.o
.rodata.Tbl 0x000061b4 0x100 THUMB Debug/../../obj/unicode.o
.rodata.tbl_upper.3810
0x000062d0 0x1e0 THUMB Debug/../../obj/unicode.o
0x000062b4 0x1e0 THUMB Debug/../../obj/unicode.o
.rodata.broadcast_ethaddr
0x000064b0 0x6 THUMB Debug/../../obj/uip_arp.o
0x000064b6 __rodata_end__ = (__rodata_start__ + SIZEOF (.rodata))
0x000064b6 __rodata_load_end__ = __rodata_end__
0x00006494 0x6 THUMB Debug/../../obj/uip_arp.o
0x0000649a __rodata_end__ = (__rodata_start__ + SIZEOF (.rodata))
0x0000649a __rodata_load_end__ = __rodata_end__
.rel.dyn 0x00000000 0x0
.rel.iplt 0x00000000 0x0 THUMB Debug/../../obj/sysctl.o
0x00000001 . = ASSERT (((__rodata_end__ >= __FLASH_segment_start__) && (__rodata_end__ <= __FLASH_segment_end__)), error: .rodata is too large to fit in FLASH memory segment)
0x000064b8 __ARM.exidx_load_start__ = ALIGN (__rodata_end__, 0x4)
0x0000649c __ARM.exidx_load_start__ = ALIGN (__rodata_end__, 0x4)
.ARM.exidx 0x000064b8 0x0
0x000064b8 __ARM.exidx_start__ = .
0x000064b8 __exidx_start = __ARM.exidx_start__
.ARM.exidx 0x0000649c 0x0
0x0000649c __ARM.exidx_start__ = .
0x0000649c __exidx_start = __ARM.exidx_start__
*(.ARM.exidx .ARM.exidx.*)
0x000064b8 __ARM.exidx_end__ = (__ARM.exidx_start__ + SIZEOF (.ARM.exidx))
0x000064b8 __exidx_end = __ARM.exidx_end__
0x000064b8 __ARM.exidx_load_end__ = __ARM.exidx_end__
0x0000649c __ARM.exidx_end__ = (__ARM.exidx_start__ + SIZEOF (.ARM.exidx))
0x0000649c __exidx_end = __ARM.exidx_end__
0x0000649c __ARM.exidx_load_end__ = __ARM.exidx_end__
0x00000001 . = ASSERT (((__ARM.exidx_end__ >= __FLASH_segment_start__) && (__ARM.exidx_end__ <= __FLASH_segment_end__)), error: .ARM.exidx is too large to fit in FLASH memory segment)
0x000064b8 __fast_load_start__ = ALIGN (__ARM.exidx_end__, 0x4)
0x0000649c __fast_load_start__ = ALIGN (__ARM.exidx_end__, 0x4)
.fast 0x20000000 0x0 load address 0x000064b8
.fast 0x20000000 0x0 load address 0x0000649c
0x20000000 __fast_start__ = .
*(.fast .fast.*)
0x20000000 __fast_end__ = (__fast_start__ + SIZEOF (.fast))
0x000064b8 __fast_load_end__ = (__fast_load_start__ + SIZEOF (.fast))
0x0000649c __fast_load_end__ = (__fast_load_start__ + SIZEOF (.fast))
0x00000001 . = ASSERT (((__fast_load_end__ >= __FLASH_segment_start__) && (__fast_load_end__ <= __FLASH_segment_end__)), error: .fast is too large to fit in FLASH memory segment)
.fast_run 0x20000000 0x0
@ -1895,22 +1893,22 @@ Linker script and memory map
0x20000000 __fast_run_end__ = (__fast_run_start__ + SIZEOF (.fast_run))
0x20000000 __fast_run_load_end__ = __fast_run_end__
0x00000001 . = ASSERT (((__fast_run_end__ >= __SRAM_segment_start__) && (__fast_run_end__ <= __SRAM_segment_end__)), error: .fast_run is too large to fit in SRAM memory segment)
0x000064b8 __data_load_start__ = ALIGN ((__fast_load_start__ + SIZEOF (.fast)), 0x4)
0x0000649c __data_load_start__ = ALIGN ((__fast_load_start__ + SIZEOF (.fast)), 0x4)
.data 0x20000000 0x2 load address 0x000064b8
.data 0x20000000 0x2 load address 0x0000649c
0x20000000 __data_start__ = .
*(.data .data.* .gnu.linkonce.d.*)
.data.Stat 0x20000000 0x1 THUMB Debug/../../obj/mmc.o
.data.comActiveInterface
0x20000001 0x1 THUMB Debug/../../obj/com.o
0x20000002 __data_end__ = (__data_start__ + SIZEOF (.data))
0x000064ba __data_load_end__ = (__data_load_start__ + SIZEOF (.data))
0x0000649e __data_load_end__ = (__data_load_start__ + SIZEOF (.data))
.igot.plt 0x00000000 0x0
.igot.plt 0x00000000 0x0 THUMB Debug/../../obj/sysctl.o
0x00000001 . = ASSERT (((__data_load_end__ >= __FLASH_segment_start__) && (__data_load_end__ <= __FLASH_segment_end__)), error: .data is too large to fit in FLASH memory segment)
.data_run 0x20000000 0x2 load address 0x000064b8
.data_run 0x20000000 0x2 load address 0x0000649c
0x20000000 __data_run_start__ = .
0x20000002 . = MAX ((__data_run_start__ + SIZEOF (.data)), .)
*fill* 0x20000000 0x2 00
@ -2075,14 +2073,14 @@ Linker script and memory map
0x20001924 __tbss_end__ = (__tbss_start__ + SIZEOF (.tbss))
0x20001924 __tbss_load_end__ = __tbss_end__
0x00000001 . = ASSERT (((__tbss_end__ >= __SRAM_segment_start__) && (__tbss_end__ <= __SRAM_segment_end__)), error: .tbss is too large to fit in SRAM memory segment)
0x000064bc __tdata_load_start__ = ALIGN ((__data_load_start__ + SIZEOF (.data)), 0x4)
0x000064a0 __tdata_load_start__ = ALIGN ((__data_load_start__ + SIZEOF (.data)), 0x4)
.tdata 0x20001924 0x0 load address 0x000064bc
.tdata 0x20001924 0x0 load address 0x000064a0
0x20001924 __tdata_start__ = .
*(.tdata .tdata.*)
0x20001924 __tdata_end__ = (__tdata_start__ + SIZEOF (.tdata))
0x000064bc __tdata_load_end__ = (__tdata_load_start__ + SIZEOF (.tdata))
0x000064bc __FLASH_segment_used_end__ = (ALIGN ((__data_load_start__ + SIZEOF (.data)), 0x4) + SIZEOF (.tdata))
0x000064a0 __tdata_load_end__ = (__tdata_load_start__ + SIZEOF (.tdata))
0x000064a0 __FLASH_segment_used_end__ = (ALIGN ((__data_load_start__ + SIZEOF (.data)), 0x4) + SIZEOF (.tdata))
0x00000001 . = ASSERT (((__tdata_load_end__ >= __FLASH_segment_start__) && (__tdata_load_end__ <= __FLASH_segment_end__)), error: .tdata is too large to fit in FLASH memory segment)
.tdata_run 0x20001924 0x0
@ -2137,7 +2135,7 @@ LOAD C:/Program Files (x86)/Rowley Associates Limited/CrossWorks for ARM 2.3/lib
END GROUP
OUTPUT(C:/Work/software/OpenBLT/Target/Demo/ARMCM3_LM3S_EK_LM3S6965_Crossworks/Boot/ide/../bin/openbtl_ek_lm3s6965.elf elf32-littlearm)
.debug_frame 0x00000000 0x3c4c
.debug_frame 0x00000000 0x3c44
.debug_frame 0x00000000 0x49c THUMB Debug/../../obj/sysctl.o
.debug_frame 0x0000049c 0x574 THUMB Debug/../../obj/gpio.o
.debug_frame 0x00000a10 0x178 THUMB Debug/../../obj/flashlib.o
@ -2145,31 +2143,31 @@ OUTPUT(C:/Work/software/OpenBLT/Target/Demo/ARMCM3_LM3S_EK_LM3S6965_Crossworks/B
.debug_frame 0x00001114 0x254 THUMB Debug/../../obj/ssi.o
.debug_frame 0x00001368 0x338 THUMB Debug/../../obj/ethernet.o
.debug_frame 0x000016a0 0x198 THUMB Debug/../../obj/mmc.o
.debug_frame 0x00001838 0x80 THUMB Debug/../../obj/netdev.o
.debug_frame 0x000018b8 0xa8 THUMB Debug/../../obj/hooks.o
.debug_frame 0x00001960 0x2c THUMB Debug/../../obj/main.o
.debug_frame 0x0000198c 0x20 THUMB Debug/../../obj/vectors.o
.debug_frame 0x000019ac 0x60 THUMB Debug/../../obj/cpu.o
.debug_frame 0x00001a0c 0x150 THUMB Debug/../../obj/flash.o
.debug_frame 0x00001b5c 0x6c THUMB Debug/../../obj/nvm.o
.debug_frame 0x00001bc8 0x5c THUMB Debug/../../obj/timer.o
.debug_frame 0x00001c24 0x70 THUMB Debug/../../obj/uart.o
.debug_frame 0x00001c94 0x2c THUMB Debug/../../obj/assert.o
.debug_frame 0x00001cc0 0x48 THUMB Debug/../../obj/backdoor.o
.debug_frame 0x00001d08 0x48 THUMB Debug/../../obj/boot.o
.debug_frame 0x00001d50 0xe0 THUMB Debug/../../obj/com.o
.debug_frame 0x00001e30 0x30 THUMB Debug/../../obj/cop.o
.debug_frame 0x00001e60 0x74 THUMB Debug/../../obj/xcp.o
.debug_frame 0x00001ed4 0x13c THUMB Debug/../../obj/file.o
.debug_frame 0x00002010 0x640 THUMB Debug/../../obj/ff.o
.debug_frame 0x00002650 0x30 THUMB Debug/../../obj/unicode.o
.debug_frame 0x00002680 0x194 THUMB Debug/../../obj/uip.o
.debug_frame 0x00002814 0xac THUMB Debug/../../obj/uip_arp.o
.debug_frame 0x000028c0 0x88 THUMB Debug/../../obj/net.o
.debug_frame 0x00002948 0x11e4 C:/Program Files (x86)/Rowley Associates Limited/CrossWorks for ARM 2.3/lib/libc_v7m_t_le_eabi_small.a(libc2.o)
.debug_frame 0x00003b2c 0x120 C:/Program Files (x86)/Rowley Associates Limited/CrossWorks for ARM 2.3/lib/libc_v7m_t_le_eabi_small.a(libc2_asm.o)
.debug_frame 0x00001838 0x7c THUMB Debug/../../obj/netdev.o
.debug_frame 0x000018b4 0xa8 THUMB Debug/../../obj/hooks.o
.debug_frame 0x0000195c 0x2c THUMB Debug/../../obj/main.o
.debug_frame 0x00001988 0x20 THUMB Debug/../../obj/vectors.o
.debug_frame 0x000019a8 0x60 THUMB Debug/../../obj/cpu.o
.debug_frame 0x00001a08 0x150 THUMB Debug/../../obj/flash.o
.debug_frame 0x00001b58 0x6c THUMB Debug/../../obj/nvm.o
.debug_frame 0x00001bc4 0x5c THUMB Debug/../../obj/timer.o
.debug_frame 0x00001c20 0x70 THUMB Debug/../../obj/uart.o
.debug_frame 0x00001c90 0x2c THUMB Debug/../../obj/assert.o
.debug_frame 0x00001cbc 0x48 THUMB Debug/../../obj/backdoor.o
.debug_frame 0x00001d04 0x48 THUMB Debug/../../obj/boot.o
.debug_frame 0x00001d4c 0xe0 THUMB Debug/../../obj/com.o
.debug_frame 0x00001e2c 0x30 THUMB Debug/../../obj/cop.o
.debug_frame 0x00001e5c 0x74 THUMB Debug/../../obj/xcp.o
.debug_frame 0x00001ed0 0x13c THUMB Debug/../../obj/file.o
.debug_frame 0x0000200c 0x640 THUMB Debug/../../obj/ff.o
.debug_frame 0x0000264c 0x30 THUMB Debug/../../obj/unicode.o
.debug_frame 0x0000267c 0x194 THUMB Debug/../../obj/uip.o
.debug_frame 0x00002810 0xac THUMB Debug/../../obj/uip_arp.o
.debug_frame 0x000028bc 0x84 THUMB Debug/../../obj/net.o
.debug_frame 0x00002940 0x11e4 C:/Program Files (x86)/Rowley Associates Limited/CrossWorks for ARM 2.3/lib/libc_v7m_t_le_eabi_small.a(libc2.o)
.debug_frame 0x00003b24 0x120 C:/Program Files (x86)/Rowley Associates Limited/CrossWorks for ARM 2.3/lib/libc_v7m_t_le_eabi_small.a(libc2_asm.o)
.debug_info 0x00000000 0x113e9
.debug_info 0x00000000 0x113a4
.debug_info 0x00000000 0xef6 THUMB Debug/../../obj/sysctl.o
.debug_info 0x00000ef6 0x1b47 THUMB Debug/../../obj/gpio.o
.debug_info 0x00002a3d 0x5ed THUMB Debug/../../obj/flashlib.o
@ -2177,31 +2175,31 @@ OUTPUT(C:/Work/software/OpenBLT/Target/Demo/ARMCM3_LM3S_EK_LM3S6965_Crossworks/B
.debug_info 0x00004731 0xb01 THUMB Debug/../../obj/ssi.o
.debug_info 0x00005232 0xde2 THUMB Debug/../../obj/ethernet.o
.debug_info 0x00006014 0x10f2 THUMB Debug/../../obj/mmc.o
.debug_info 0x00007106 0x53d THUMB Debug/../../obj/netdev.o
.debug_info 0x00007643 0x73c THUMB Debug/../../obj/hooks.o
.debug_info 0x00007d7f 0x157 THUMB Debug/../../obj/main.o
.debug_info 0x00007ed6 0xfd THUMB Debug/../../obj/cstart.o
.debug_info 0x00007fd3 0x13b THUMB Debug/../../obj/vectors.o
.debug_info 0x0000810e 0x1de THUMB Debug/../../obj/cpu.o
.debug_info 0x000082ec 0x89d THUMB Debug/../../obj/flash.o
.debug_info 0x00008b89 0x24f THUMB Debug/../../obj/nvm.o
.debug_info 0x00008dd8 0x14c THUMB Debug/../../obj/timer.o
.debug_info 0x00008f24 0x4e5 THUMB Debug/../../obj/uart.o
.debug_info 0x00009409 0x106 THUMB Debug/../../obj/assert.o
.debug_info 0x0000950f 0x15d THUMB Debug/../../obj/backdoor.o
.debug_info 0x0000966c 0x175 THUMB Debug/../../obj/boot.o
.debug_info 0x000097e1 0x40f THUMB Debug/../../obj/com.o
.debug_info 0x00009bf0 0x96 THUMB Debug/../../obj/cop.o
.debug_info 0x00009c86 0x81d THUMB Debug/../../obj/xcp.o
.debug_info 0x0000a4a3 0x11a0 THUMB Debug/../../obj/file.o
.debug_info 0x0000b643 0x3525 THUMB Debug/../../obj/ff.o
.debug_info 0x0000eb68 0x169 THUMB Debug/../../obj/unicode.o
.debug_info 0x0000ecd1 0xd71 THUMB Debug/../../obj/uip.o
.debug_info 0x0000fa42 0x65f THUMB Debug/../../obj/uip_arp.o
.debug_info 0x000100a1 0x662 THUMB Debug/../../obj/net.o
.debug_info 0x00010703 0xce6 C:/Program Files (x86)/Rowley Associates Limited/CrossWorks for ARM 2.3/lib/libc_v7m_t_le_eabi_small.a(libc2.o)
.debug_info 0x00007106 0x537 THUMB Debug/../../obj/netdev.o
.debug_info 0x0000763d 0x73c THUMB Debug/../../obj/hooks.o
.debug_info 0x00007d79 0x157 THUMB Debug/../../obj/main.o
.debug_info 0x00007ed0 0xfd THUMB Debug/../../obj/cstart.o
.debug_info 0x00007fcd 0x13b THUMB Debug/../../obj/vectors.o
.debug_info 0x00008108 0x1de THUMB Debug/../../obj/cpu.o
.debug_info 0x000082e6 0x89d THUMB Debug/../../obj/flash.o
.debug_info 0x00008b83 0x24f THUMB Debug/../../obj/nvm.o
.debug_info 0x00008dd2 0x14c THUMB Debug/../../obj/timer.o
.debug_info 0x00008f1e 0x4e5 THUMB Debug/../../obj/uart.o
.debug_info 0x00009403 0x106 THUMB Debug/../../obj/assert.o
.debug_info 0x00009509 0x15d THUMB Debug/../../obj/backdoor.o
.debug_info 0x00009666 0x175 THUMB Debug/../../obj/boot.o
.debug_info 0x000097db 0x40f THUMB Debug/../../obj/com.o
.debug_info 0x00009bea 0x96 THUMB Debug/../../obj/cop.o
.debug_info 0x00009c80 0x81d THUMB Debug/../../obj/xcp.o
.debug_info 0x0000a49d 0x11a0 THUMB Debug/../../obj/file.o
.debug_info 0x0000b63d 0x3525 THUMB Debug/../../obj/ff.o
.debug_info 0x0000eb62 0x169 THUMB Debug/../../obj/unicode.o
.debug_info 0x0000eccb 0xd71 THUMB Debug/../../obj/uip.o
.debug_info 0x0000fa3c 0x65f THUMB Debug/../../obj/uip_arp.o
.debug_info 0x0001009b 0x623 THUMB Debug/../../obj/net.o
.debug_info 0x000106be 0xce6 C:/Program Files (x86)/Rowley Associates Limited/CrossWorks for ARM 2.3/lib/libc_v7m_t_le_eabi_small.a(libc2.o)
.debug_abbrev 0x00000000 0x32ae
.debug_abbrev 0x00000000 0x328b
.debug_abbrev 0x00000000 0x227 THUMB Debug/../../obj/sysctl.o
.debug_abbrev 0x00000227 0x182 THUMB Debug/../../obj/gpio.o
.debug_abbrev 0x000003a9 0x203 THUMB Debug/../../obj/flashlib.o
@ -2230,10 +2228,10 @@ OUTPUT(C:/Work/software/OpenBLT/Target/Demo/ARMCM3_LM3S_EK_LM3S6965_Crossworks/B
.debug_abbrev 0x00002902 0xa8 THUMB Debug/../../obj/unicode.o
.debug_abbrev 0x000029aa 0x34b THUMB Debug/../../obj/uip.o
.debug_abbrev 0x00002cf5 0x208 THUMB Debug/../../obj/uip_arp.o
.debug_abbrev 0x00002efd 0x24e THUMB Debug/../../obj/net.o
.debug_abbrev 0x0000314b 0x163 C:/Program Files (x86)/Rowley Associates Limited/CrossWorks for ARM 2.3/lib/libc_v7m_t_le_eabi_small.a(libc2.o)
.debug_abbrev 0x00002efd 0x22b THUMB Debug/../../obj/net.o
.debug_abbrev 0x00003128 0x163 C:/Program Files (x86)/Rowley Associates Limited/CrossWorks for ARM 2.3/lib/libc_v7m_t_le_eabi_small.a(libc2.o)
.debug_loc 0x00000000 0xc94b
.debug_loc 0x00000000 0xc957
.debug_loc 0x00000000 0xcc5 THUMB Debug/../../obj/sysctl.o
.debug_loc 0x00000cc5 0x13fb THUMB Debug/../../obj/gpio.o
.debug_loc 0x000020c0 0x525 THUMB Debug/../../obj/flashlib.o
@ -2241,26 +2239,26 @@ OUTPUT(C:/Work/software/OpenBLT/Target/Demo/ARMCM3_LM3S_EK_LM3S6965_Crossworks/B
.debug_loc 0x00003729 0x88d THUMB Debug/../../obj/ssi.o
.debug_loc 0x00003fb6 0xccc THUMB Debug/../../obj/ethernet.o
.debug_loc 0x00004c82 0x95d THUMB Debug/../../obj/mmc.o
.debug_loc 0x000055df 0xd3 THUMB Debug/../../obj/netdev.o
.debug_loc 0x000056b2 0xcb THUMB Debug/../../obj/hooks.o
.debug_loc 0x0000577d 0x20 THUMB Debug/../../obj/main.o
.debug_loc 0x0000579d 0xc9 THUMB Debug/../../obj/cpu.o
.debug_loc 0x00005866 0x679 THUMB Debug/../../obj/flash.o
.debug_loc 0x00005edf 0xc5 THUMB Debug/../../obj/nvm.o
.debug_loc 0x00005fa4 0x20 THUMB Debug/../../obj/timer.o
.debug_loc 0x00005fc4 0x150 THUMB Debug/../../obj/uart.o
.debug_loc 0x00006114 0x71 THUMB Debug/../../obj/assert.o
.debug_loc 0x00006185 0x40 THUMB Debug/../../obj/backdoor.o
.debug_loc 0x000061c5 0x40 THUMB Debug/../../obj/boot.o
.debug_loc 0x00006205 0x9f THUMB Debug/../../obj/com.o
.debug_loc 0x000062a4 0x362 THUMB Debug/../../obj/xcp.o
.debug_loc 0x00006606 0x919 THUMB Debug/../../obj/file.o
.debug_loc 0x00006f1f 0x41ae THUMB Debug/../../obj/ff.o
.debug_loc 0x0000b0cd 0xdd THUMB Debug/../../obj/unicode.o
.debug_loc 0x0000b1aa 0x683 THUMB Debug/../../obj/uip.o
.debug_loc 0x0000b82d 0x166 THUMB Debug/../../obj/uip_arp.o
.debug_loc 0x0000b993 0x14e THUMB Debug/../../obj/net.o
.debug_loc 0x0000bae1 0xe6a C:/Program Files (x86)/Rowley Associates Limited/CrossWorks for ARM 2.3/lib/libc_v7m_t_le_eabi_small.a(libc2.o)
.debug_loc 0x000055df 0xdf THUMB Debug/../../obj/netdev.o
.debug_loc 0x000056be 0xcb THUMB Debug/../../obj/hooks.o
.debug_loc 0x00005789 0x20 THUMB Debug/../../obj/main.o
.debug_loc 0x000057a9 0xc9 THUMB Debug/../../obj/cpu.o
.debug_loc 0x00005872 0x679 THUMB Debug/../../obj/flash.o
.debug_loc 0x00005eeb 0xc5 THUMB Debug/../../obj/nvm.o
.debug_loc 0x00005fb0 0x20 THUMB Debug/../../obj/timer.o
.debug_loc 0x00005fd0 0x150 THUMB Debug/../../obj/uart.o
.debug_loc 0x00006120 0x71 THUMB Debug/../../obj/assert.o
.debug_loc 0x00006191 0x40 THUMB Debug/../../obj/backdoor.o
.debug_loc 0x000061d1 0x40 THUMB Debug/../../obj/boot.o
.debug_loc 0x00006211 0x9f THUMB Debug/../../obj/com.o
.debug_loc 0x000062b0 0x362 THUMB Debug/../../obj/xcp.o
.debug_loc 0x00006612 0x919 THUMB Debug/../../obj/file.o
.debug_loc 0x00006f2b 0x41ae THUMB Debug/../../obj/ff.o
.debug_loc 0x0000b0d9 0xdd THUMB Debug/../../obj/unicode.o
.debug_loc 0x0000b1b6 0x683 THUMB Debug/../../obj/uip.o
.debug_loc 0x0000b839 0x166 THUMB Debug/../../obj/uip_arp.o
.debug_loc 0x0000b99f 0x14e THUMB Debug/../../obj/net.o
.debug_loc 0x0000baed 0xe6a C:/Program Files (x86)/Rowley Associates Limited/CrossWorks for ARM 2.3/lib/libc_v7m_t_le_eabi_small.a(libc2.o)
.debug_aranges 0x00000000 0x12d0
.debug_aranges
@ -2363,31 +2361,31 @@ OUTPUT(C:/Work/software/OpenBLT/Target/Demo/ARMCM3_LM3S_EK_LM3S6965_Crossworks/B
.debug_line 0x00001e0f 0x45a THUMB Debug/../../obj/ssi.o
.debug_line 0x00002269 0x5c9 THUMB Debug/../../obj/ethernet.o
.debug_line 0x00002832 0x4ab THUMB Debug/../../obj/mmc.o
.debug_line 0x00002cdd 0x329 THUMB Debug/../../obj/netdev.o
.debug_line 0x00003006 0x300 THUMB Debug/../../obj/hooks.o
.debug_line 0x00003306 0x17d THUMB Debug/../../obj/main.o
.debug_line 0x00003483 0x178 THUMB Debug/../../obj/cstart.o
.debug_line 0x000035fb 0x1a2 THUMB Debug/../../obj/vectors.o
.debug_line 0x0000379d 0x17c THUMB Debug/../../obj/cpu.o
.debug_line 0x00003919 0x363 THUMB Debug/../../obj/flash.o
.debug_line 0x00003c7c 0x10f THUMB Debug/../../obj/nvm.o
.debug_line 0x00003d8b 0xf8 THUMB Debug/../../obj/timer.o
.debug_line 0x00003e83 0x2a5 THUMB Debug/../../obj/uart.o
.debug_line 0x00004128 0x127 THUMB Debug/../../obj/assert.o
.debug_line 0x0000424f 0x163 THUMB Debug/../../obj/backdoor.o
.debug_line 0x000043b2 0x165 THUMB Debug/../../obj/boot.o
.debug_line 0x00004517 0x20f THUMB Debug/../../obj/com.o
.debug_line 0x00004726 0xa9 THUMB Debug/../../obj/cop.o
.debug_line 0x000047cf 0x263 THUMB Debug/../../obj/xcp.o
.debug_line 0x00004a32 0x476 THUMB Debug/../../obj/file.o
.debug_line 0x00004ea8 0xe05 THUMB Debug/../../obj/ff.o
.debug_line 0x00005cad 0x182 THUMB Debug/../../obj/unicode.o
.debug_line 0x00005e2f 0x73f THUMB Debug/../../obj/uip.o
.debug_line 0x0000656e 0x28f THUMB Debug/../../obj/uip_arp.o
.debug_line 0x000067fd 0x2d6 THUMB Debug/../../obj/net.o
.debug_line 0x00002cdd 0x331 THUMB Debug/../../obj/netdev.o
.debug_line 0x0000300e 0x300 THUMB Debug/../../obj/hooks.o
.debug_line 0x0000330e 0x17d THUMB Debug/../../obj/main.o
.debug_line 0x0000348b 0x178 THUMB Debug/../../obj/cstart.o
.debug_line 0x00003603 0x1a2 THUMB Debug/../../obj/vectors.o
.debug_line 0x000037a5 0x17c THUMB Debug/../../obj/cpu.o
.debug_line 0x00003921 0x363 THUMB Debug/../../obj/flash.o
.debug_line 0x00003c84 0x10f THUMB Debug/../../obj/nvm.o
.debug_line 0x00003d93 0xf8 THUMB Debug/../../obj/timer.o
.debug_line 0x00003e8b 0x2a5 THUMB Debug/../../obj/uart.o
.debug_line 0x00004130 0x127 THUMB Debug/../../obj/assert.o
.debug_line 0x00004257 0x163 THUMB Debug/../../obj/backdoor.o
.debug_line 0x000043ba 0x165 THUMB Debug/../../obj/boot.o
.debug_line 0x0000451f 0x20f THUMB Debug/../../obj/com.o
.debug_line 0x0000472e 0xa9 THUMB Debug/../../obj/cop.o
.debug_line 0x000047d7 0x263 THUMB Debug/../../obj/xcp.o
.debug_line 0x00004a3a 0x476 THUMB Debug/../../obj/file.o
.debug_line 0x00004eb0 0xe05 THUMB Debug/../../obj/ff.o
.debug_line 0x00005cb5 0x182 THUMB Debug/../../obj/unicode.o
.debug_line 0x00005e37 0x73f THUMB Debug/../../obj/uip.o
.debug_line 0x00006576 0x28f THUMB Debug/../../obj/uip_arp.o
.debug_line 0x00006805 0x2ce THUMB Debug/../../obj/net.o
.debug_line 0x00006ad3 0x5b3 C:/Program Files (x86)/Rowley Associates Limited/CrossWorks for ARM 2.3/lib/libc_v7m_t_le_eabi_small.a(libc2.o)
.debug_str 0x00000000 0x3c4f
.debug_str 0x00000000 0x3c4d
.debug_str 0x00000000 0x693 THUMB Debug/../../obj/sysctl.o
0x6e9 (size before relaxing)
.debug_str 0x00000693 0x411 THUMB Debug/../../obj/gpio.o
@ -2402,49 +2400,49 @@ OUTPUT(C:/Work/software/OpenBLT/Target/Demo/ARMCM3_LM3S_EK_LM3S6965_Crossworks/B
0x419 (size before relaxing)
.debug_str 0x000015d2 0x1c6 THUMB Debug/../../obj/mmc.o
0x34c (size before relaxing)
.debug_str 0x00001798 0xe8 THUMB Debug/../../obj/netdev.o
0x2f3 (size before relaxing)
.debug_str 0x00001880 0x38d THUMB Debug/../../obj/hooks.o
.debug_str 0x00001798 0xe6 THUMB Debug/../../obj/netdev.o
0x2f1 (size before relaxing)
.debug_str 0x0000187e 0x38d THUMB Debug/../../obj/hooks.o
0x4c2 (size before relaxing)
.debug_str 0x00001c0d 0x6d THUMB Debug/../../obj/main.o
.debug_str 0x00001c0b 0x6d THUMB Debug/../../obj/main.o
0x163 (size before relaxing)
.debug_str 0x00001c7a 0xb4 THUMB Debug/../../obj/vectors.o
.debug_str 0x00001c78 0xb4 THUMB Debug/../../obj/vectors.o
0x18c (size before relaxing)
.debug_str 0x00001d2e 0x128 THUMB Debug/../../obj/cpu.o
.debug_str 0x00001d2c 0x128 THUMB Debug/../../obj/cpu.o
0x1fc (size before relaxing)
.debug_str 0x00001e56 0x249 THUMB Debug/../../obj/flash.o
.debug_str 0x00001e54 0x249 THUMB Debug/../../obj/flash.o
0x3ab (size before relaxing)
.debug_str 0x0000209f 0x98 THUMB Debug/../../obj/nvm.o
.debug_str 0x0000209d 0x98 THUMB Debug/../../obj/nvm.o
0x1e2 (size before relaxing)
.debug_str 0x00002137 0xb9 THUMB Debug/../../obj/timer.o
.debug_str 0x00002135 0xb9 THUMB Debug/../../obj/timer.o
0x18e (size before relaxing)
.debug_str 0x000021f0 0x10e THUMB Debug/../../obj/uart.o
.debug_str 0x000021ee 0x10e THUMB Debug/../../obj/uart.o
0x2af (size before relaxing)
.debug_str 0x000022fe 0x95 THUMB Debug/../../obj/assert.o
.debug_str 0x000022fc 0x95 THUMB Debug/../../obj/assert.o
0x182 (size before relaxing)
.debug_str 0x00002393 0xe2 THUMB Debug/../../obj/backdoor.o
.debug_str 0x00002391 0xe2 THUMB Debug/../../obj/backdoor.o
0x1c9 (size before relaxing)
.debug_str 0x00002475 0x95 THUMB Debug/../../obj/boot.o
.debug_str 0x00002473 0x95 THUMB Debug/../../obj/boot.o
0x1a1 (size before relaxing)
.debug_str 0x0000250a 0x1f4 THUMB Debug/../../obj/com.o
.debug_str 0x00002508 0x1f4 THUMB Debug/../../obj/com.o
0x339 (size before relaxing)
.debug_str 0x000026fe 0x6a THUMB Debug/../../obj/cop.o
.debug_str 0x000026fc 0x6a THUMB Debug/../../obj/cop.o
0x133 (size before relaxing)
.debug_str 0x00002768 0x224 THUMB Debug/../../obj/xcp.o
.debug_str 0x00002766 0x224 THUMB Debug/../../obj/xcp.o
0x3e7 (size before relaxing)
.debug_str 0x0000298c 0x366 THUMB Debug/../../obj/file.o
.debug_str 0x0000298a 0x366 THUMB Debug/../../obj/file.o
0x7dd (size before relaxing)
.debug_str 0x00002cf2 0x30e THUMB Debug/../../obj/ff.o
.debug_str 0x00002cf0 0x30e THUMB Debug/../../obj/ff.o
0x74c (size before relaxing)
.debug_str 0x00003000 0x9f THUMB Debug/../../obj/unicode.o
.debug_str 0x00002ffe 0x9f THUMB Debug/../../obj/unicode.o
0x16b (size before relaxing)
.debug_str 0x0000309f 0x406 THUMB Debug/../../obj/uip.o
.debug_str 0x0000309d 0x406 THUMB Debug/../../obj/uip.o
0x5be (size before relaxing)
.debug_str 0x000034a5 0x17e THUMB Debug/../../obj/uip_arp.o
.debug_str 0x000034a3 0x17e THUMB Debug/../../obj/uip_arp.o
0x36e (size before relaxing)
.debug_str 0x00003623 0xbd THUMB Debug/../../obj/net.o
0x3ad (size before relaxing)
.debug_str 0x000036e0 0x56f C:/Program Files (x86)/Rowley Associates Limited/CrossWorks for ARM 2.3/lib/libc_v7m_t_le_eabi_small.a(libc2.o)
.debug_str 0x00003621 0xbd THUMB Debug/../../obj/net.o
0x3a5 (size before relaxing)
.debug_str 0x000036de 0x56f C:/Program Files (x86)/Rowley Associates Limited/CrossWorks for ARM 2.3/lib/libc_v7m_t_le_eabi_small.a(libc2.o)
0x655 (size before relaxing)
.comment 0x00000000 0x4e

View File

@ -51,7 +51,7 @@
<Watches active="0" update="Never" />
</Watch4>
<Files>
<SessionOpenFile useTextEdit="1" useBinaryEdit="0" codecName="Latin1" x="0" debugPath="C:\Work\software\OpenBLT\Target\Demo\ARMCM3_LM3S_EK_LM3S6965_Crossworks\Boot\main.c" y="82" path="C:\Work\software\OpenBLT\Target\Demo\ARMCM3_LM3S_EK_LM3S6965_Crossworks\Boot\main.c" left="18" selected="1" name="unnamed" top="82" />
<SessionOpenFile useTextEdit="1" useBinaryEdit="0" codecName="Latin1" x="0" debugPath="C:\Work\software\OpenBLT\Target\Demo\ARMCM3_LM3S_EK_LM3S6965_Crossworks\Boot\main.c" y="82" path="C:\Work\software\OpenBLT\Target\Demo\ARMCM3_LM3S_EK_LM3S6965_Crossworks\Boot\main.c" left="0" selected="1" name="unnamed" top="82" />
</Files>
<ARMCrossStudioWindow activeProject="openbtl_ek_lm3s6965" autoConnectTarget="Luminary USB Debug" debugSearchFileMap="" fileDialogInitialDirectory="C:\Work\software\OpenBLT\Target\Demo\ARMCM3_LM3S_EK_LM3S6965_Crossworks\Boot\lib\uip" fileDialogDefaultFilter="*.c" autoConnectCapabilities="388991" debugSearchPath="" buildConfiguration="THUMB Debug" />
</session>

View File

@ -62,12 +62,20 @@
/*---------------------------------------------------------------------------*/
void netdev_init(void)
{
blt_int32u ulTemp;
blt_int32u ulLinkTimeOut;
/* enable and reset the ethernet controller. */
SysCtlPeripheralEnable(SYSCTL_PERIPH_ETH);
SysCtlPeripheralReset(SYSCTL_PERIPH_ETH);
}
/*---------------------------------------------------------------------------*/
void netdev_init_mac(void)
{
struct uip_eth_addr macAddress;
unsigned long ulUser0, ulUser1;
blt_int32u ulTemp;
blt_int32u ulLinkTimeOut;
/* enable port F for ethernet LEDs.
* LED0 Bit 3 Output
* LED1 Bit 2 Output
@ -81,7 +89,6 @@ void netdev_init(void)
ETH_INT_RXOF | ETH_INT_TX | ETH_INT_TXER | ETH_INT_RX));
ulTemp = EthernetIntStatus(ETH_BASE, false);
EthernetIntClear(ETH_BASE, ulTemp);
/* initialize the ethernet controller for operation. */
EthernetInitExpClk(ETH_BASE, SysCtlClockGet());
/* configure the ethernet controller for normal operation.
@ -91,6 +98,9 @@ void netdev_init(void)
*/
EthernetConfigSet(ETH_BASE, (ETH_CFG_TX_DPLXEN | ETH_CFG_TX_CRCEN |
ETH_CFG_TX_PADEN));
/* enable the ethernet controller. */
EthernetEnable(ETH_BASE);
/* wait for the link to become active. */
ulTemp = EthernetPHYRead(ETH_BASE, PHY_MR1);
ulLinkTimeOut = TimerGet() + NETDEV_LINKUP_TIMEOUT_MS;
@ -106,16 +116,6 @@ void netdev_init(void)
break;
}
}
/* enable the ethernet controller. */
EthernetEnable(ETH_BASE);
}
/*---------------------------------------------------------------------------*/
void netdev_setmacaddr(void)
{
struct uip_eth_addr macAddress;
unsigned long ulUser0, ulUser1;
/* set the default MAC address */
macAddress.addr[0] = NETDEV_DEFAULT_MACADDR0;

View File

@ -39,8 +39,8 @@
#define __NETDEV_H__
void netdev_init(void);
void netdev_init_mac(void);
unsigned int netdev_read(void);
void netdev_send(void);
void netdev_setmacaddr(void);
#endif /* __NETDEV_H__ */

View File

@ -2201,9 +2201,9 @@ FLASH 0x00008000 0x00038000 xr
Linker script and memory map
0x0000d7b4 __do_debug_operation = __do_debug_operation_mempoll
0x0000cb78 __vfprintf = __vfprintf_int_nwp
0x0000d1d0 __vfscanf = __vfscanf_int
0x0000d7ac __do_debug_operation = __do_debug_operation_mempoll
0x0000cb70 __vfprintf = __vfprintf_int_nwp
0x0000d1c8 __vfscanf = __vfscanf_int
0xe000e000 __CM3_System_Control_Space_segment_start__ = 0xe000e000
0xe000f000 __CM3_System_Control_Space_segment_end__ = 0xe000f000
0x40020000 __Peripherals_segment_start__ = 0x40020000
@ -2254,7 +2254,7 @@ Linker script and memory map
0x00000001 . = ASSERT (((__init_end__ >= __FLASH_segment_start__) && (__init_end__ <= (__FLASH_segment_start__ + 0x40000))), error: .init is too large to fit in FLASH memory segment)
0x0000820c __text_load_start__ = ALIGN (__init_end__, 0x4)
.text 0x0000820c 0x55ec
.text 0x0000820c 0x55e4
0x0000820c __text_start__ = .
*(.text .text.* .glue_7t .glue_7 .gnu.linkonce.t.* .gcc_except_table .ARM.extab* .gnu.linkonce.armextab.*)
.glue_7 0x00000000 0x0 linker stubs
@ -2446,68 +2446,68 @@ Linker script and memory map
0x0000c79c 0x54 THUMB Debug/../../obj/uart.o
0x0000c79c UARTCharGetNonBlocking
.text.netdev_init
0x0000c7f0 0x14c THUMB Debug/../../obj/netdev.o
0x0000c7f0 0x2c THUMB Debug/../../obj/netdev.o
0x0000c7f0 netdev_init
.text.netdev_setmacaddr
0x0000c93c 0xec THUMB Debug/../../obj/netdev.o
0x0000c93c netdev_setmacaddr
.text.netdev_init_mac
0x0000c81c 0x204 THUMB Debug/../../obj/netdev.o
0x0000c81c netdev_init_mac
.text.netdev_read
0x0000ca28 0x6c THUMB Debug/../../obj/netdev.o
0x0000ca28 netdev_read
0x0000ca20 0x6c THUMB Debug/../../obj/netdev.o
0x0000ca20 netdev_read
.text.netdev_send
0x0000ca94 0x2c THUMB Debug/../../obj/netdev.o
0x0000ca94 netdev_send
0x0000ca8c 0x2c THUMB Debug/../../obj/netdev.o
0x0000ca8c netdev_send
.text.libc.memcpy
0x0000cac0 0x48 C:/Program Files (x86)/Rowley Associates Limited/CrossWorks for ARM 2.3/lib/libc_v7m_t_le_eabi.a(libc2_asm.o)
0x0000cac0 __aeabi_memcpy
0x0000cac0 __aeabi_memcpy4
0x0000cac0 __aeabi_memcpy8
0x0000cac0 memcpy
0x0000cab8 0x48 C:/Program Files (x86)/Rowley Associates Limited/CrossWorks for ARM 2.3/lib/libc_v7m_t_le_eabi.a(libc2_asm.o)
0x0000cab8 __aeabi_memcpy
0x0000cab8 __aeabi_memcpy4
0x0000cab8 __aeabi_memcpy8
0x0000cab8 memcpy
.text.libc.memset
0x0000cb08 0x70 C:/Program Files (x86)/Rowley Associates Limited/CrossWorks for ARM 2.3/lib/libc_v7m_t_le_eabi.a(libc2_asm.o)
0x0000cb08 memset
0x0000cb00 0x70 C:/Program Files (x86)/Rowley Associates Limited/CrossWorks for ARM 2.3/lib/libc_v7m_t_le_eabi.a(libc2_asm.o)
0x0000cb00 memset
.text.libc.__vfprintf_int_nwp
0x0000cb78 0x460 C:/Program Files (x86)/Rowley Associates Limited/CrossWorks for ARM 2.3/lib/libc_v7m_t_le_eabi.a(__vfprintf_int_nwp.o)
0x0000cb78 __vfprintf_int_nwp
0x0000cb70 0x460 C:/Program Files (x86)/Rowley Associates Limited/CrossWorks for ARM 2.3/lib/libc_v7m_t_le_eabi.a(__vfprintf_int_nwp.o)
0x0000cb70 __vfprintf_int_nwp
.text.libc.__ungetc
0x0000cfd8 0x20 C:/Program Files (x86)/Rowley Associates Limited/CrossWorks for ARM 2.3/lib/libc_v7m_t_le_eabi.a(__vfscanf_int.o)
0x0000cfd0 0x20 C:/Program Files (x86)/Rowley Associates Limited/CrossWorks for ARM 2.3/lib/libc_v7m_t_le_eabi.a(__vfscanf_int.o)
.text.libc.rd_int
0x0000cff8 0x1d8 C:/Program Files (x86)/Rowley Associates Limited/CrossWorks for ARM 2.3/lib/libc_v7m_t_le_eabi.a(__vfscanf_int.o)
0x0000cff0 0x1d8 C:/Program Files (x86)/Rowley Associates Limited/CrossWorks for ARM 2.3/lib/libc_v7m_t_le_eabi.a(__vfscanf_int.o)
.text.libc.__vfscanf_int
0x0000d1d0 0x504 C:/Program Files (x86)/Rowley Associates Limited/CrossWorks for ARM 2.3/lib/libc_v7m_t_le_eabi.a(__vfscanf_int.o)
0x0000d1d0 __vfscanf_int
0x0000d1c8 0x504 C:/Program Files (x86)/Rowley Associates Limited/CrossWorks for ARM 2.3/lib/libc_v7m_t_le_eabi.a(__vfscanf_int.o)
0x0000d1c8 __vfscanf_int
.text.libc.__getc
0x0000d6d4 0x24 C:/Program Files (x86)/Rowley Associates Limited/CrossWorks for ARM 2.3/lib/libc_v7m_t_le_eabi.a(libc2.o)
0x0000d6d4 __getc
0x0000d6cc 0x24 C:/Program Files (x86)/Rowley Associates Limited/CrossWorks for ARM 2.3/lib/libc_v7m_t_le_eabi.a(libc2.o)
0x0000d6cc __getc
.text.libc.__putc
0x0000d6f8 0x38 C:/Program Files (x86)/Rowley Associates Limited/CrossWorks for ARM 2.3/lib/libc_v7m_t_le_eabi.a(libc2.o)
0x0000d6f8 __putc
0x0000d6f0 0x38 C:/Program Files (x86)/Rowley Associates Limited/CrossWorks for ARM 2.3/lib/libc_v7m_t_le_eabi.a(libc2.o)
0x0000d6f0 __putc
.text.libc.isupper
0x0000d730 0x10 C:/Program Files (x86)/Rowley Associates Limited/CrossWorks for ARM 2.3/lib/libc_v7m_t_le_eabi.a(libc2.o)
0x0000d730 isupper
0x0000d728 0x10 C:/Program Files (x86)/Rowley Associates Limited/CrossWorks for ARM 2.3/lib/libc_v7m_t_le_eabi.a(libc2.o)
0x0000d728 isupper
.text.libc.islower
0x0000d740 0x10 C:/Program Files (x86)/Rowley Associates Limited/CrossWorks for ARM 2.3/lib/libc_v7m_t_le_eabi.a(libc2.o)
0x0000d740 islower
0x0000d738 0x10 C:/Program Files (x86)/Rowley Associates Limited/CrossWorks for ARM 2.3/lib/libc_v7m_t_le_eabi.a(libc2.o)
0x0000d738 islower
.text.libc.isdigit
0x0000d750 0x10 C:/Program Files (x86)/Rowley Associates Limited/CrossWorks for ARM 2.3/lib/libc_v7m_t_le_eabi.a(libc2.o)
0x0000d750 isdigit
0x0000d748 0x10 C:/Program Files (x86)/Rowley Associates Limited/CrossWorks for ARM 2.3/lib/libc_v7m_t_le_eabi.a(libc2.o)
0x0000d748 isdigit
.text.libc.__digit
0x0000d760 0x3c C:/Program Files (x86)/Rowley Associates Limited/CrossWorks for ARM 2.3/lib/libc_v7m_t_le_eabi.a(libc2.o)
0x0000d760 __digit
0x0000d758 0x3c C:/Program Files (x86)/Rowley Associates Limited/CrossWorks for ARM 2.3/lib/libc_v7m_t_le_eabi.a(libc2.o)
0x0000d758 __digit
.text.libc.isspace
0x0000d79c 0x18 C:/Program Files (x86)/Rowley Associates Limited/CrossWorks for ARM 2.3/lib/libc_v7m_t_le_eabi.a(libc2.o)
0x0000d79c isspace
0x0000d794 0x18 C:/Program Files (x86)/Rowley Associates Limited/CrossWorks for ARM 2.3/lib/libc_v7m_t_le_eabi.a(libc2.o)
0x0000d794 isspace
.text.libdebugio.__do_debug_operation_mempoll
0x0000d7b4 0x3c C:/Program Files (x86)/Rowley Associates Limited/CrossWorks for ARM 2.3/lib/libdebugio_v7m_t_le_eabi.a(libdebugio.o)
0x0000d7b4 __do_debug_operation_mempoll
0x0000d7ac 0x3c C:/Program Files (x86)/Rowley Associates Limited/CrossWorks for ARM 2.3/lib/libdebugio_v7m_t_le_eabi.a(libdebugio.o)
0x0000d7ac __do_debug_operation_mempoll
.text.libc.__debug_io_lock
0x0000d7f0 0x4 C:/Program Files (x86)/Rowley Associates Limited/CrossWorks for ARM 2.3/lib/libc_user_libc_v7m_t_le_eabi.a(user_libc.o)
0x0000d7f0 __debug_io_lock
0x0000d7e8 0x4 C:/Program Files (x86)/Rowley Associates Limited/CrossWorks for ARM 2.3/lib/libc_user_libc_v7m_t_le_eabi.a(user_libc.o)
0x0000d7e8 __debug_io_lock
.text.libc.__debug_io_unlock
0x0000d7f4 0x4 C:/Program Files (x86)/Rowley Associates Limited/CrossWorks for ARM 2.3/lib/libc_user_libc_v7m_t_le_eabi.a(user_libc.o)
0x0000d7f4 __debug_io_unlock
0x0000d7f8 __text_end__ = (__text_start__ + SIZEOF (.text))
0x0000d7f8 __text_load_end__ = __text_end__
0x0000d7ec 0x4 C:/Program Files (x86)/Rowley Associates Limited/CrossWorks for ARM 2.3/lib/libc_user_libc_v7m_t_le_eabi.a(user_libc.o)
0x0000d7ec __debug_io_unlock
0x0000d7f0 __text_end__ = (__text_start__ + SIZEOF (.text))
0x0000d7f0 __text_load_end__ = __text_end__
.vfp11_veneer 0x00000000 0x0
.vfp11_veneer 0x00000000 0x0 linker stubs
@ -2518,80 +2518,80 @@ Linker script and memory map
.iplt 0x00000000 0x0
.iplt 0x00000000 0x0 THUMB Debug/../../obj/boot.o
0x00000001 . = ASSERT (((__text_end__ >= __FLASH_segment_start__) && (__text_end__ <= (__FLASH_segment_start__ + 0x40000))), error: .text is too large to fit in FLASH memory segment)
0x0000d7f8 __dtors_load_start__ = ALIGN (__text_end__, 0x4)
0x0000d7f0 __dtors_load_start__ = ALIGN (__text_end__, 0x4)
.dtors 0x0000d7f8 0x0
0x0000d7f8 __dtors_start__ = .
.dtors 0x0000d7f0 0x0
0x0000d7f0 __dtors_start__ = .
*(SORT(.dtors.*))
*(.dtors)
*(.fini_array .fini_array.*)
0x0000d7f8 __dtors_end__ = (__dtors_start__ + SIZEOF (.dtors))
0x0000d7f8 __dtors_load_end__ = __dtors_end__
0x0000d7f0 __dtors_end__ = (__dtors_start__ + SIZEOF (.dtors))
0x0000d7f0 __dtors_load_end__ = __dtors_end__
0x00000001 . = ASSERT (((__dtors_end__ >= __FLASH_segment_start__) && (__dtors_end__ <= (__FLASH_segment_start__ + 0x40000))), error: .dtors is too large to fit in FLASH memory segment)
0x0000d7f8 __ctors_load_start__ = ALIGN (__dtors_end__, 0x4)
0x0000d7f0 __ctors_load_start__ = ALIGN (__dtors_end__, 0x4)
.ctors 0x0000d7f8 0x0
0x0000d7f8 __ctors_start__ = .
.ctors 0x0000d7f0 0x0
0x0000d7f0 __ctors_start__ = .
*(SORT(.ctors.*))
*(.ctors)
*(.init_array .init_array.*)
0x0000d7f8 __ctors_end__ = (__ctors_start__ + SIZEOF (.ctors))
0x0000d7f8 __ctors_load_end__ = __ctors_end__
0x0000d7f0 __ctors_end__ = (__ctors_start__ + SIZEOF (.ctors))
0x0000d7f0 __ctors_load_end__ = __ctors_end__
0x00000001 . = ASSERT (((__ctors_end__ >= __FLASH_segment_start__) && (__ctors_end__ <= (__FLASH_segment_start__ + 0x40000))), error: .ctors is too large to fit in FLASH memory segment)
0x0000d7f8 __rodata_load_start__ = ALIGN (__ctors_end__, 0x4)
0x0000d7f0 __rodata_load_start__ = ALIGN (__ctors_end__, 0x4)
.rodata 0x0000d7f8 0x338
0x0000d7f8 __rodata_start__ = .
.rodata 0x0000d7f0 0x338
0x0000d7f0 __rodata_start__ = .
*(.rodata .rodata.* .gnu.linkonce.r.*)
.rodata.all_zeroes_addr
0x0000d7f8 0x4 THUMB Debug/../../obj/uip.o
0x0000d7f0 0x4 THUMB Debug/../../obj/uip.o
.rodata.broadcast_ethaddr
0x0000d7fc 0x8 THUMB Debug/../../obj/uip_arp.o
0x0000d7f4 0x8 THUMB Debug/../../obj/uip_arp.o
.rodata.broadcast_ipaddr
0x0000d804 0x4 THUMB Debug/../../obj/uip_arp.o
.rodata 0x0000d808 0x70 THUMB Debug/../../obj/ethernet.o
.rodata 0x0000d878 0x6c THUMB Debug/../../obj/flash.o
.rodata 0x0000d8e4 0x6c THUMB Debug/../../obj/gpio.o
0x0000d7fc 0x4 THUMB Debug/../../obj/uip_arp.o
.rodata 0x0000d800 0x70 THUMB Debug/../../obj/ethernet.o
.rodata 0x0000d870 0x6c THUMB Debug/../../obj/flash.o
.rodata 0x0000d8dc 0x6c THUMB Debug/../../obj/gpio.o
.rodata.g_pulSRCRRegs
0x0000d950 0xc THUMB Debug/../../obj/sysctl.o
0x0000d948 0xc THUMB Debug/../../obj/sysctl.o
.rodata.g_pulRCGCRegs
0x0000d95c 0xc THUMB Debug/../../obj/sysctl.o
0x0000d954 0xc THUMB Debug/../../obj/sysctl.o
.rodata.g_pulXtals
0x0000d968 0x5c THUMB Debug/../../obj/sysctl.o
.rodata 0x0000d9c4 0x6c THUMB Debug/../../obj/sysctl.o
.rodata 0x0000da30 0x6c THUMB Debug/../../obj/systick.o
.rodata 0x0000da9c 0x6c THUMB Debug/../../obj/uart.o
0x0000d960 0x5c THUMB Debug/../../obj/sysctl.o
.rodata 0x0000d9bc 0x6c THUMB Debug/../../obj/sysctl.o
.rodata 0x0000da28 0x6c THUMB Debug/../../obj/systick.o
.rodata 0x0000da94 0x6c THUMB Debug/../../obj/uart.o
.rodata.libc.str1.4
0x0000db08 0x8 C:/Program Files (x86)/Rowley Associates Limited/CrossWorks for ARM 2.3/lib/libc_v7m_t_le_eabi.a(__vfprintf_int_nwp.o)
0x0000db00 0x8 C:/Program Files (x86)/Rowley Associates Limited/CrossWorks for ARM 2.3/lib/libc_v7m_t_le_eabi.a(__vfprintf_int_nwp.o)
.rodata.libc.__hex_lc
0x0000db10 0x10 C:/Program Files (x86)/Rowley Associates Limited/CrossWorks for ARM 2.3/lib/libc_v7m_t_le_eabi.a(libc2.o)
0x0000db10 __hex_lc
0x0000db08 0x10 C:/Program Files (x86)/Rowley Associates Limited/CrossWorks for ARM 2.3/lib/libc_v7m_t_le_eabi.a(libc2.o)
0x0000db08 __hex_lc
.rodata.libc.__hex_uc
0x0000db20 0x10 C:/Program Files (x86)/Rowley Associates Limited/CrossWorks for ARM 2.3/lib/libc_v7m_t_le_eabi.a(libc2.o)
0x0000db20 __hex_uc
0x0000db30 __rodata_end__ = (__rodata_start__ + SIZEOF (.rodata))
0x0000db30 __rodata_load_end__ = __rodata_end__
0x0000db18 0x10 C:/Program Files (x86)/Rowley Associates Limited/CrossWorks for ARM 2.3/lib/libc_v7m_t_le_eabi.a(libc2.o)
0x0000db18 __hex_uc
0x0000db28 __rodata_end__ = (__rodata_start__ + SIZEOF (.rodata))
0x0000db28 __rodata_load_end__ = __rodata_end__
.rel.dyn 0x00008000 0x0
.rel.iplt 0x00000000 0x0 THUMB Debug/../../obj/boot.o
0x00000001 . = ASSERT (((__rodata_end__ >= __FLASH_segment_start__) && (__rodata_end__ <= (__FLASH_segment_start__ + 0x40000))), error: .rodata is too large to fit in FLASH memory segment)
0x0000db30 __ARM.exidx_load_start__ = ALIGN (__rodata_end__, 0x4)
0x0000db28 __ARM.exidx_load_start__ = ALIGN (__rodata_end__, 0x4)
.ARM.exidx 0x0000db30 0x0
0x0000db30 __ARM.exidx_start__ = .
0x0000db30 __exidx_start = __ARM.exidx_start__
.ARM.exidx 0x0000db28 0x0
0x0000db28 __ARM.exidx_start__ = .
0x0000db28 __exidx_start = __ARM.exidx_start__
*(.ARM.exidx .ARM.exidx.*)
0x0000db30 __ARM.exidx_end__ = (__ARM.exidx_start__ + SIZEOF (.ARM.exidx))
0x0000db30 __exidx_end = __ARM.exidx_end__
0x0000db30 __ARM.exidx_load_end__ = __ARM.exidx_end__
0x0000db28 __ARM.exidx_end__ = (__ARM.exidx_start__ + SIZEOF (.ARM.exidx))
0x0000db28 __exidx_end = __ARM.exidx_end__
0x0000db28 __ARM.exidx_load_end__ = __ARM.exidx_end__
0x00000001 . = ASSERT (((__ARM.exidx_end__ >= __FLASH_segment_start__) && (__ARM.exidx_end__ <= (__FLASH_segment_start__ + 0x40000))), error: .ARM.exidx is too large to fit in FLASH memory segment)
0x0000db30 __fast_load_start__ = ALIGN (__ARM.exidx_end__, 0x4)
0x0000db28 __fast_load_start__ = ALIGN (__ARM.exidx_end__, 0x4)
.fast 0x20000000 0x0 load address 0x0000db30
.fast 0x20000000 0x0 load address 0x0000db28
0x20000000 __fast_start__ = .
*(.fast .fast.*)
0x20000000 __fast_end__ = (__fast_start__ + SIZEOF (.fast))
0x0000db30 __fast_load_end__ = (__fast_load_start__ + SIZEOF (.fast))
0x0000db28 __fast_load_end__ = (__fast_load_start__ + SIZEOF (.fast))
0x00000001 . = ASSERT ((((__fast_load_start__ + SIZEOF (.fast)) >= __FLASH_segment_start__) && ((__fast_load_start__ + SIZEOF (.fast)) <= (__FLASH_segment_start__ + 0x40000))), error: .fast is too large to fit in FLASH memory segment)
.fast_run 0x20000000 0x0
@ -2600,13 +2600,13 @@ Linker script and memory map
0x20000000 __fast_run_end__ = (__fast_run_start__ + SIZEOF (.fast_run))
0x20000000 __fast_run_load_end__ = __fast_run_end__
0x00000001 . = ASSERT (((__fast_run_end__ >= __SRAM_segment_start__) && (__fast_run_end__ <= (__SRAM_segment_start__ + 0x10000))), error: .fast_run is too large to fit in SRAM memory segment)
0x0000db30 __data_load_start__ = ALIGN ((__fast_load_start__ + SIZEOF (.fast)), 0x4)
0x0000db28 __data_load_start__ = ALIGN ((__fast_load_start__ + SIZEOF (.fast)), 0x4)
.data 0x20000000 0x0 load address 0x0000db30
.data 0x20000000 0x0 load address 0x0000db28
0x20000000 __data_start__ = .
*(.data .data.* .gnu.linkonce.d.*)
0x20000000 __data_end__ = (__data_start__ + SIZEOF (.data))
0x0000db30 __data_load_end__ = (__data_load_start__ + SIZEOF (.data))
0x0000db28 __data_load_end__ = (__data_load_start__ + SIZEOF (.data))
.igot.plt 0x00000000 0x0
.igot.plt 0x00000000 0x0 THUMB Debug/../../obj/boot.o
@ -2758,14 +2758,14 @@ Linker script and memory map
0x20000900 __tbss_end__ = (__tbss_start__ + SIZEOF (.tbss))
0x20000900 __tbss_load_end__ = __tbss_end__
0x00000001 . = ASSERT (((__tbss_end__ >= __SRAM_segment_start__) && (__tbss_end__ <= (__SRAM_segment_start__ + 0x10000))), error: .tbss is too large to fit in SRAM memory segment)
0x0000db30 __tdata_load_start__ = ALIGN ((__data_load_start__ + SIZEOF (.data)), 0x4)
0x0000db28 __tdata_load_start__ = ALIGN ((__data_load_start__ + SIZEOF (.data)), 0x4)
.tdata 0x20000900 0x0 load address 0x0000db30
.tdata 0x20000900 0x0 load address 0x0000db28
0x20000900 __tdata_start__ = .
*(.tdata .tdata.*)
0x20000900 __tdata_end__ = (__tdata_start__ + SIZEOF (.tdata))
0x0000db30 __tdata_load_end__ = (__tdata_load_start__ + SIZEOF (.tdata))
0x0000db30 __FLASH_segment_used_end__ = (ALIGN ((__data_load_start__ + SIZEOF (.data)), 0x4) + SIZEOF (.tdata))
0x0000db28 __tdata_load_end__ = (__tdata_load_start__ + SIZEOF (.tdata))
0x0000db28 __FLASH_segment_used_end__ = (ALIGN ((__data_load_start__ + SIZEOF (.data)), 0x4) + SIZEOF (.tdata))
0x00000001 . = ASSERT ((((__tdata_load_start__ + SIZEOF (.tdata)) >= __FLASH_segment_start__) && ((__tdata_load_start__ + SIZEOF (.tdata)) <= (__FLASH_segment_start__ + 0x40000))), error: .tdata is too large to fit in FLASH memory segment)
.tdata_run 0x20000900 0x0
@ -2823,7 +2823,7 @@ LOAD C:/Program Files (x86)/Rowley Associates Limited/CrossWorks for ARM 2.3/lib
END GROUP
OUTPUT(C:/Work/software/OpenBLT/Target/Demo/ARMCM3_LM3S_EK_LM3S6965_Crossworks/Prog/ide/../bin/demoprog_ek_lm3s6965.elf elf32-littlearm)
.debug_frame 0x00000000 0x43a4
.debug_frame 0x00000000 0x439c
.debug_frame 0x00000000 0xac THUMB Debug/../../obj/boot.o
.debug_frame 0x000000ac 0x7c THUMB Debug/../../obj/irq.o
.debug_frame 0x00000128 0x60 THUMB Debug/../../obj/led.o
@ -2841,15 +2841,15 @@ OUTPUT(C:/Work/software/OpenBLT/Target/Demo/ARMCM3_LM3S_EK_LM3S6965_Crossworks/P
.debug_frame 0x000016bc 0x6d0 THUMB Debug/../../obj/sysctl.o
.debug_frame 0x00001d8c 0x14c THUMB Debug/../../obj/systick.o
.debug_frame 0x00001ed8 0x718 THUMB Debug/../../obj/uart.o
.debug_frame 0x000025f0 0xb8 THUMB Debug/../../obj/netdev.o
.debug_frame 0x000026a8 0x120 C:/Program Files (x86)/Rowley Associates Limited/CrossWorks for ARM 2.3/lib/libc_v7m_t_le_eabi.a(libc2_asm.o)
.debug_frame 0x000027c8 0x40 C:/Program Files (x86)/Rowley Associates Limited/CrossWorks for ARM 2.3/lib/libc_v7m_t_le_eabi.a(__vfprintf_int_nwp.o)
.debug_frame 0x00002808 0x8c C:/Program Files (x86)/Rowley Associates Limited/CrossWorks for ARM 2.3/lib/libc_v7m_t_le_eabi.a(__vfscanf_int.o)
.debug_frame 0x00002894 0x12e0 C:/Program Files (x86)/Rowley Associates Limited/CrossWorks for ARM 2.3/lib/libc_v7m_t_le_eabi.a(libc2.o)
.debug_frame 0x00003b74 0x790 C:/Program Files (x86)/Rowley Associates Limited/CrossWorks for ARM 2.3/lib/libdebugio_v7m_t_le_eabi.a(libdebugio.o)
.debug_frame 0x00004304 0xa0 C:/Program Files (x86)/Rowley Associates Limited/CrossWorks for ARM 2.3/lib/libc_user_libc_v7m_t_le_eabi.a(user_libc.o)
.debug_frame 0x000025f0 0xb0 THUMB Debug/../../obj/netdev.o
.debug_frame 0x000026a0 0x120 C:/Program Files (x86)/Rowley Associates Limited/CrossWorks for ARM 2.3/lib/libc_v7m_t_le_eabi.a(libc2_asm.o)
.debug_frame 0x000027c0 0x40 C:/Program Files (x86)/Rowley Associates Limited/CrossWorks for ARM 2.3/lib/libc_v7m_t_le_eabi.a(__vfprintf_int_nwp.o)
.debug_frame 0x00002800 0x8c C:/Program Files (x86)/Rowley Associates Limited/CrossWorks for ARM 2.3/lib/libc_v7m_t_le_eabi.a(__vfscanf_int.o)
.debug_frame 0x0000288c 0x12e0 C:/Program Files (x86)/Rowley Associates Limited/CrossWorks for ARM 2.3/lib/libc_v7m_t_le_eabi.a(libc2.o)
.debug_frame 0x00003b6c 0x790 C:/Program Files (x86)/Rowley Associates Limited/CrossWorks for ARM 2.3/lib/libdebugio_v7m_t_le_eabi.a(libdebugio.o)
.debug_frame 0x000042fc 0xa0 C:/Program Files (x86)/Rowley Associates Limited/CrossWorks for ARM 2.3/lib/libc_user_libc_v7m_t_le_eabi.a(user_libc.o)
.debug_info 0x00000000 0x57ec
.debug_info 0x00000000 0x57e7
.debug_info 0x00000000 0x105 THUMB Debug/../../obj/boot.o
.debug_info 0x00000105 0xd6 THUMB Debug/../../obj/cstart.o
.debug_info 0x000001db 0x80 THUMB Debug/../../obj/irq.o
@ -2868,12 +2868,12 @@ OUTPUT(C:/Work/software/OpenBLT/Target/Demo/ARMCM3_LM3S_EK_LM3S6965_Crossworks/P
.debug_info 0x00002fb6 0x844 THUMB Debug/../../obj/sysctl.o
.debug_info 0x000037fa 0x130 THUMB Debug/../../obj/systick.o
.debug_info 0x0000392a 0x967 THUMB Debug/../../obj/uart.o
.debug_info 0x00004291 0x185 THUMB Debug/../../obj/netdev.o
.debug_info 0x00004416 0x37 C:/Program Files (x86)/Rowley Associates Limited/CrossWorks for ARM 2.3/lib/libc_v7m_t_le_eabi.a(__vfprintf_int_nwp.o)
.debug_info 0x0000444d 0x68 C:/Program Files (x86)/Rowley Associates Limited/CrossWorks for ARM 2.3/lib/libc_v7m_t_le_eabi.a(__vfscanf_int.o)
.debug_info 0x000044b5 0xd02 C:/Program Files (x86)/Rowley Associates Limited/CrossWorks for ARM 2.3/lib/libc_v7m_t_le_eabi.a(libc2.o)
.debug_info 0x000051b7 0x55f C:/Program Files (x86)/Rowley Associates Limited/CrossWorks for ARM 2.3/lib/libdebugio_v7m_t_le_eabi.a(libdebugio.o)
.debug_info 0x00005716 0xd6 C:/Program Files (x86)/Rowley Associates Limited/CrossWorks for ARM 2.3/lib/libc_user_libc_v7m_t_le_eabi.a(user_libc.o)
.debug_info 0x00004291 0x180 THUMB Debug/../../obj/netdev.o
.debug_info 0x00004411 0x37 C:/Program Files (x86)/Rowley Associates Limited/CrossWorks for ARM 2.3/lib/libc_v7m_t_le_eabi.a(__vfprintf_int_nwp.o)
.debug_info 0x00004448 0x68 C:/Program Files (x86)/Rowley Associates Limited/CrossWorks for ARM 2.3/lib/libc_v7m_t_le_eabi.a(__vfscanf_int.o)
.debug_info 0x000044b0 0xd02 C:/Program Files (x86)/Rowley Associates Limited/CrossWorks for ARM 2.3/lib/libc_v7m_t_le_eabi.a(libc2.o)
.debug_info 0x000051b2 0x55f C:/Program Files (x86)/Rowley Associates Limited/CrossWorks for ARM 2.3/lib/libdebugio_v7m_t_le_eabi.a(libdebugio.o)
.debug_info 0x00005711 0xd6 C:/Program Files (x86)/Rowley Associates Limited/CrossWorks for ARM 2.3/lib/libc_user_libc_v7m_t_le_eabi.a(user_libc.o)
.debug_abbrev 0x00000000 0x13c5
.debug_abbrev 0x00000000 0xa4 THUMB Debug/../../obj/boot.o
@ -2901,7 +2901,7 @@ OUTPUT(C:/Work/software/OpenBLT/Target/Demo/ARMCM3_LM3S_EK_LM3S6965_Crossworks/P
.debug_abbrev 0x0000135f 0x3e C:/Program Files (x86)/Rowley Associates Limited/CrossWorks for ARM 2.3/lib/libdebugio_v7m_t_le_eabi.a(libdebugio.o)
.debug_abbrev 0x0000139d 0x28 C:/Program Files (x86)/Rowley Associates Limited/CrossWorks for ARM 2.3/lib/libc_user_libc_v7m_t_le_eabi.a(user_libc.o)
.debug_loc 0x00000000 0x4910
.debug_loc 0x00000000 0x4904
.debug_loc 0x00000000 0xbc THUMB Debug/../../obj/boot.o
.debug_loc 0x000000bc 0x84 THUMB Debug/../../obj/irq.o
.debug_loc 0x00000140 0x64 THUMB Debug/../../obj/led.o
@ -2918,11 +2918,11 @@ OUTPUT(C:/Work/software/OpenBLT/Target/Demo/ARMCM3_LM3S_EK_LM3S6965_Crossworks/P
.debug_loc 0x00001ba8 0x8cc THUMB Debug/../../obj/sysctl.o
.debug_loc 0x00002474 0x1a4 THUMB Debug/../../obj/systick.o
.debug_loc 0x00002618 0x8f8 THUMB Debug/../../obj/uart.o
.debug_loc 0x00002f10 0xd4 THUMB Debug/../../obj/netdev.o
.debug_loc 0x00002fe4 0x2d C:/Program Files (x86)/Rowley Associates Limited/CrossWorks for ARM 2.3/lib/libc_v7m_t_le_eabi.a(__vfprintf_int_nwp.o)
.debug_loc 0x00003011 0x79 C:/Program Files (x86)/Rowley Associates Limited/CrossWorks for ARM 2.3/lib/libc_v7m_t_le_eabi.a(__vfscanf_int.o)
.debug_loc 0x0000308a 0x1092 C:/Program Files (x86)/Rowley Associates Limited/CrossWorks for ARM 2.3/lib/libc_v7m_t_le_eabi.a(libc2.o)
.debug_loc 0x0000411c 0x7f4 C:/Program Files (x86)/Rowley Associates Limited/CrossWorks for ARM 2.3/lib/libdebugio_v7m_t_le_eabi.a(libdebugio.o)
.debug_loc 0x00002f10 0xc8 THUMB Debug/../../obj/netdev.o
.debug_loc 0x00002fd8 0x2d C:/Program Files (x86)/Rowley Associates Limited/CrossWorks for ARM 2.3/lib/libc_v7m_t_le_eabi.a(__vfprintf_int_nwp.o)
.debug_loc 0x00003005 0x79 C:/Program Files (x86)/Rowley Associates Limited/CrossWorks for ARM 2.3/lib/libc_v7m_t_le_eabi.a(__vfscanf_int.o)
.debug_loc 0x0000307e 0x1092 C:/Program Files (x86)/Rowley Associates Limited/CrossWorks for ARM 2.3/lib/libc_v7m_t_le_eabi.a(libc2.o)
.debug_loc 0x00004110 0x7f4 C:/Program Files (x86)/Rowley Associates Limited/CrossWorks for ARM 2.3/lib/libdebugio_v7m_t_le_eabi.a(libdebugio.o)
.debug_aranges 0x00000000 0x1100
.debug_aranges
@ -2999,7 +2999,7 @@ OUTPUT(C:/Work/software/OpenBLT/Target/Demo/ARMCM3_LM3S_EK_LM3S6965_Crossworks/P
.debug_ranges 0x00000d18 0x208 C:/Program Files (x86)/Rowley Associates Limited/CrossWorks for ARM 2.3/lib/libdebugio_v7m_t_le_eabi.a(libdebugio.o)
.debug_ranges 0x00000f20 0x50 C:/Program Files (x86)/Rowley Associates Limited/CrossWorks for ARM 2.3/lib/libc_user_libc_v7m_t_le_eabi.a(user_libc.o)
.debug_line 0x00000000 0x4217
.debug_line 0x00000000 0x4219
.debug_line 0x00000000 0xdb THUMB Debug/../../obj/boot.o
.debug_line 0x000000db 0x10f THUMB Debug/../../obj/cstart.o
.debug_line 0x000001ea 0xb3 THUMB Debug/../../obj/irq.o
@ -3018,14 +3018,14 @@ OUTPUT(C:/Work/software/OpenBLT/Target/Demo/ARMCM3_LM3S_EK_LM3S6965_Crossworks/P
.debug_line 0x000023bb 0x7e1 THUMB Debug/../../obj/sysctl.o
.debug_line 0x00002b9c 0x13c THUMB Debug/../../obj/systick.o
.debug_line 0x00002cd8 0x743 THUMB Debug/../../obj/uart.o
.debug_line 0x0000341b 0x19c THUMB Debug/../../obj/netdev.o
.debug_line 0x000035b7 0x75 C:/Program Files (x86)/Rowley Associates Limited/CrossWorks for ARM 2.3/lib/libc_v7m_t_le_eabi.a(__vfprintf_int_nwp.o)
.debug_line 0x0000362c 0x74 C:/Program Files (x86)/Rowley Associates Limited/CrossWorks for ARM 2.3/lib/libc_v7m_t_le_eabi.a(__vfscanf_int.o)
.debug_line 0x000036a0 0x5b3 C:/Program Files (x86)/Rowley Associates Limited/CrossWorks for ARM 2.3/lib/libc_v7m_t_le_eabi.a(libc2.o)
.debug_line 0x00003c53 0x550 C:/Program Files (x86)/Rowley Associates Limited/CrossWorks for ARM 2.3/lib/libdebugio_v7m_t_le_eabi.a(libdebugio.o)
.debug_line 0x000041a3 0x74 C:/Program Files (x86)/Rowley Associates Limited/CrossWorks for ARM 2.3/lib/libc_user_libc_v7m_t_le_eabi.a(user_libc.o)
.debug_line 0x0000341b 0x19e THUMB Debug/../../obj/netdev.o
.debug_line 0x000035b9 0x75 C:/Program Files (x86)/Rowley Associates Limited/CrossWorks for ARM 2.3/lib/libc_v7m_t_le_eabi.a(__vfprintf_int_nwp.o)
.debug_line 0x0000362e 0x74 C:/Program Files (x86)/Rowley Associates Limited/CrossWorks for ARM 2.3/lib/libc_v7m_t_le_eabi.a(__vfscanf_int.o)
.debug_line 0x000036a2 0x5b3 C:/Program Files (x86)/Rowley Associates Limited/CrossWorks for ARM 2.3/lib/libc_v7m_t_le_eabi.a(libc2.o)
.debug_line 0x00003c55 0x550 C:/Program Files (x86)/Rowley Associates Limited/CrossWorks for ARM 2.3/lib/libdebugio_v7m_t_le_eabi.a(libdebugio.o)
.debug_line 0x000041a5 0x74 C:/Program Files (x86)/Rowley Associates Limited/CrossWorks for ARM 2.3/lib/libc_user_libc_v7m_t_le_eabi.a(user_libc.o)
.debug_str 0x00000000 0x2afb
.debug_str 0x00000000 0x2af9
.debug_str 0x00000000 0x144 THUMB Debug/../../obj/boot.o
0x149 (size before relaxing)
.debug_str 0x00000144 0xa6 THUMB Debug/../../obj/irq.o
@ -3060,17 +3060,17 @@ OUTPUT(C:/Work/software/OpenBLT/Target/Demo/ARMCM3_LM3S_EK_LM3S6965_Crossworks/P
0x183 (size before relaxing)
.debug_str 0x00001bd3 0x38c THUMB Debug/../../obj/uart.o
0x463 (size before relaxing)
.debug_str 0x00001f5f 0xb4 THUMB Debug/../../obj/netdev.o
0x196 (size before relaxing)
.debug_str 0x00002013 0x68 C:/Program Files (x86)/Rowley Associates Limited/CrossWorks for ARM 2.3/lib/libc_v7m_t_le_eabi.a(__vfprintf_int_nwp.o)
.debug_str 0x00001f5f 0xb2 THUMB Debug/../../obj/netdev.o
0x194 (size before relaxing)
.debug_str 0x00002011 0x68 C:/Program Files (x86)/Rowley Associates Limited/CrossWorks for ARM 2.3/lib/libc_v7m_t_le_eabi.a(__vfprintf_int_nwp.o)
0xb1 (size before relaxing)
.debug_str 0x0000207b 0x7c C:/Program Files (x86)/Rowley Associates Limited/CrossWorks for ARM 2.3/lib/libc_v7m_t_le_eabi.a(__vfscanf_int.o)
.debug_str 0x00002079 0x7c C:/Program Files (x86)/Rowley Associates Limited/CrossWorks for ARM 2.3/lib/libc_v7m_t_le_eabi.a(__vfscanf_int.o)
0xc5 (size before relaxing)
.debug_str 0x000020f7 0x57f C:/Program Files (x86)/Rowley Associates Limited/CrossWorks for ARM 2.3/lib/libc_v7m_t_le_eabi.a(libc2.o)
.debug_str 0x000020f5 0x57f C:/Program Files (x86)/Rowley Associates Limited/CrossWorks for ARM 2.3/lib/libc_v7m_t_le_eabi.a(libc2.o)
0x655 (size before relaxing)
.debug_str 0x00002676 0x3b3 C:/Program Files (x86)/Rowley Associates Limited/CrossWorks for ARM 2.3/lib/libdebugio_v7m_t_le_eabi.a(libdebugio.o)
.debug_str 0x00002674 0x3b3 C:/Program Files (x86)/Rowley Associates Limited/CrossWorks for ARM 2.3/lib/libdebugio_v7m_t_le_eabi.a(libdebugio.o)
0x3fc (size before relaxing)
.debug_str 0x00002a29 0xd2 C:/Program Files (x86)/Rowley Associates Limited/CrossWorks for ARM 2.3/lib/libc_user_libc_v7m_t_le_eabi.a(user_libc.o)
.debug_str 0x00002a27 0xd2 C:/Program Files (x86)/Rowley Associates Limited/CrossWorks for ARM 2.3/lib/libc_user_libc_v7m_t_le_eabi.a(user_libc.o)
0x11b (size before relaxing)
.comment 0x00000000 0x4e

View File

@ -51,10 +51,10 @@
<Watches active="0" update="Never" />
</Watch4>
<Files>
<SessionOpenFile useTextEdit="1" useBinaryEdit="0" codecName="Latin1" x="0" debugPath="C:\Work\software\OpenBLT\Target\Demo\ARMCM3_LM3S_EK_LM3S6965_Crossworks\Prog\main.c" y="0" path="C:\Work\software\OpenBLT\Target\Demo\ARMCM3_LM3S_EK_LM3S6965_Crossworks\Prog\main.c" left="0" selected="0" name="unnamed" top="0" />
<SessionOpenFile useTextEdit="1" useBinaryEdit="0" codecName="Latin1" x="55" debugPath="C:\Work\software\OpenBLT\Target\Demo\ARMCM3_LM3S_EK_LM3S6965_Crossworks\Prog\led.c" y="1" path="C:\Work\software\OpenBLT\Target\Demo\ARMCM3_LM3S_EK_LM3S6965_Crossworks\Prog\led.c" left="0" selected="0" name="unnamed" top="0" />
<SessionOpenFile useTextEdit="1" useBinaryEdit="0" codecName="Latin1" x="17" debugPath="C:\Work\software\OpenBLT\Target\Demo\ARMCM3_LM3S_EK_LM3S6965_Crossworks\Prog\net.c" y="8" path="C:\Work\software\OpenBLT\Target\Demo\ARMCM3_LM3S_EK_LM3S6965_Crossworks\Prog\net.c" left="0" selected="1" name="unnamed" top="55" />
<SessionOpenFile useTextEdit="1" useBinaryEdit="0" codecName="Latin1" x="24" debugPath="C:\Work\software\OpenBLT\Target\Demo\ARMCM3_LM3S_EK_LM3S6965_Crossworks\Prog\net.h" y="8" path="C:\Work\software\OpenBLT\Target\Demo\ARMCM3_LM3S_EK_LM3S6965_Crossworks\Prog\net.h" left="0" selected="0" name="unnamed" top="0" />
<SessionOpenFile useTextEdit="1" useBinaryEdit="0" codecName="Latin1" x="0" debugPath="C:\Work\software\OpenBLT\Target\Demo\ARMCM3_LM3S_EK_LM3S6965_Crossworks\Prog\main.c" y="0" path="C:\Work\software\OpenBLT\Target\Demo\ARMCM3_LM3S_EK_LM3S6965_Crossworks\Prog\main.c" left="18" selected="0" name="unnamed" top="0" />
<SessionOpenFile useTextEdit="1" useBinaryEdit="0" codecName="Latin1" x="0" debugPath="C:\Work\software\OpenBLT\Target\Demo\ARMCM3_LM3S_EK_LM3S6965_Crossworks\Prog\led.c" y="1" path="C:\Work\software\OpenBLT\Target\Demo\ARMCM3_LM3S_EK_LM3S6965_Crossworks\Prog\led.c" left="18" selected="0" name="unnamed" top="1" />
<SessionOpenFile useTextEdit="1" useBinaryEdit="0" codecName="Latin1" x="0" debugPath="C:\Work\software\OpenBLT\Target\Demo\ARMCM3_LM3S_EK_LM3S6965_Crossworks\Prog\net.c" y="8" path="C:\Work\software\OpenBLT\Target\Demo\ARMCM3_LM3S_EK_LM3S6965_Crossworks\Prog\net.c" left="18" selected="0" name="unnamed" top="8" />
<SessionOpenFile useTextEdit="1" useBinaryEdit="0" codecName="Latin1" x="0" debugPath="C:\Work\software\OpenBLT\Target\Demo\ARMCM3_LM3S_EK_LM3S6965_Crossworks\Prog\net.h" y="8" path="C:\Work\software\OpenBLT\Target\Demo\ARMCM3_LM3S_EK_LM3S6965_Crossworks\Prog\net.h" left="18" selected="1" name="unnamed" top="8" />
</Files>
<ARMCrossStudioWindow activeProject="demoprog_ek_lm3s6965" autoConnectTarget="Texas Instruments ICDI" debugSearchFileMap="" fileDialogInitialDirectory="C:\Work\software\OpenBLT\Target\Source\third_party\uip\uip" fileDialogDefaultFilter="" autoConnectCapabilities="388991" debugSearchPath="" buildConfiguration="THUMB Debug" />
<ARMCrossStudioWindow activeProject="demoprog_ek_lm3s6965" autoConnectTarget="Texas Instruments ICDI" debugSearchFileMap="" fileDialogInitialDirectory="C:\Work\software\OpenBLT\Target\Source\third_party\uip\uip" fileDialogDefaultFilter="*.c" autoConnectCapabilities="388991" debugSearchPath="" buildConfiguration="THUMB Debug" />
</session>

View File

@ -62,12 +62,20 @@
/*---------------------------------------------------------------------------*/
void netdev_init(void)
{
unsigned long ulTemp;
unsigned long ulLinkTimeOut;
/* enable and reset the ethernet controller. */
SysCtlPeripheralEnable(SYSCTL_PERIPH_ETH);
SysCtlPeripheralReset(SYSCTL_PERIPH_ETH);
}
/*---------------------------------------------------------------------------*/
void netdev_init_mac(void)
{
struct uip_eth_addr macAddress;
unsigned long ulUser0, ulUser1;
unsigned long ulTemp;
unsigned long ulLinkTimeOut;
/* enable port F for ethernet LEDs.
* LED0 Bit 3 Output
* LED1 Bit 2 Output
@ -81,7 +89,6 @@ void netdev_init(void)
ETH_INT_RXOF | ETH_INT_TX | ETH_INT_TXER | ETH_INT_RX));
ulTemp = EthernetIntStatus(ETH_BASE, false);
EthernetIntClear(ETH_BASE, ulTemp);
/* initialize the ethernet controller for operation. */
EthernetInitExpClk(ETH_BASE, SysCtlClockGet());
/* configure the ethernet controller for normal operation.
@ -91,6 +98,9 @@ void netdev_init(void)
*/
EthernetConfigSet(ETH_BASE, (ETH_CFG_TX_DPLXEN | ETH_CFG_TX_CRCEN |
ETH_CFG_TX_PADEN));
/* enable the ethernet controller. */
EthernetEnable(ETH_BASE);
/* wait for the link to become active. */
ulTemp = EthernetPHYRead(ETH_BASE, PHY_MR1);
ulLinkTimeOut = TimeGet() + NETDEV_LINKUP_TIMEOUT_MS;
@ -106,16 +116,6 @@ void netdev_init(void)
break;
}
}
/* enable the ethernet controller. */
EthernetEnable(ETH_BASE);
}
/*---------------------------------------------------------------------------*/
void netdev_setmacaddr(void)
{
struct uip_eth_addr macAddress;
unsigned long ulUser0, ulUser1;
/* set the default MAC address */
macAddress.addr[0] = NETDEV_DEFAULT_MACADDR0;

View File

@ -39,8 +39,8 @@
#define __NETDEV_H__
void netdev_init(void);
void netdev_init_mac(void);
unsigned int netdev_read(void);
void netdev_send(void);
void netdev_setmacaddr(void);
#endif /* __NETDEV_H__ */

View File

@ -71,6 +71,9 @@ void NetInit(void)
/* initialize the network device */
netdev_init();
/* initialize the timer variables */
periodicTimerTimeOut = TimeGet() + NET_UIP_PERIODIC_TIMER_MS;
ARPTimerTimeOut = TimeGet() + NET_UIP_ARP_TIMER_MS;
/* initialize the uIP TCP/IP stack. */
uip_init();
/* set the IP address */
@ -81,13 +84,10 @@ void NetInit(void)
uip_ipaddr(ipaddr, BOOT_COM_NET_NETMASK0, BOOT_COM_NET_NETMASK1, BOOT_COM_NET_NETMASK2,
BOOT_COM_NET_NETMASK3);
uip_setnetmask(ipaddr);
/* set the MAC address */
netdev_setmacaddr();
/* initialize the timer variables */
periodicTimerTimeOut = TimeGet() + NET_UIP_PERIODIC_TIMER_MS;
ARPTimerTimeOut = TimeGet() + NET_UIP_ARP_TIMER_MS;
/* start listening on the configured port for XCP transfers on TCP/IP */
uip_listen(HTONS(BOOT_COM_NET_PORT));
/* initialize the MAC and set the MAC address */
netdev_init_mac();
} /*** end of NetInit ***/

View File

@ -7,38 +7,38 @@ start address 0x00000000
Program Header:
LOAD off 0x00008000 vaddr 0x00000000 paddr 0x00000000 align 2**15
filesz 0x00006074 memsz 0x00006074 flags r-x
LOAD off 0x00010000 vaddr 0x20000000 paddr 0x00006074 align 2**15
filesz 0x00006058 memsz 0x00006058 flags r-x
LOAD off 0x00010000 vaddr 0x20000000 paddr 0x00006058 align 2**15
filesz 0x00000008 memsz 0x000018ac flags rw-
private flags = 5000200: [Version5 EABI] [soft-float ABI]
Sections:
Idx Name Size VMA LMA File off Algn
0 .text 00006074 00000000 00000000 00008000 2**2
0 .text 00006058 00000000 00000000 00008000 2**2
CONTENTS, ALLOC, LOAD, READONLY, CODE
1 .data 00000008 20000000 00006074 00010000 2**2
1 .data 00000008 20000000 00006058 00010000 2**2
CONTENTS, ALLOC, LOAD, DATA
2 .bss 000018a4 20000008 0000607c 00010008 2**2
2 .bss 000018a4 20000008 00006060 00010008 2**2
ALLOC
3 .debug_info 0000f913 00000000 00000000 00010008 2**0
3 .debug_info 0000f8d4 00000000 00000000 00010008 2**0
CONTENTS, READONLY, DEBUGGING
4 .debug_abbrev 0000300e 00000000 00000000 0001f91b 2**0
4 .debug_abbrev 00002feb 00000000 00000000 0001f8dc 2**0
CONTENTS, READONLY, DEBUGGING
5 .debug_loc 0000b63e 00000000 00000000 00022929 2**0
5 .debug_loc 0000b649 00000000 00000000 000228c7 2**0
CONTENTS, READONLY, DEBUGGING
6 .debug_aranges 00000e00 00000000 00000000 0002df67 2**0
6 .debug_aranges 00000e00 00000000 00000000 0002df10 2**0
CONTENTS, READONLY, DEBUGGING
7 .debug_ranges 00000e98 00000000 00000000 0002ed67 2**0
7 .debug_ranges 00000e98 00000000 00000000 0002ed10 2**0
CONTENTS, READONLY, DEBUGGING
8 .debug_line 00004dee 00000000 00000000 0002fbff 2**0
8 .debug_line 00004df8 00000000 00000000 0002fba8 2**0
CONTENTS, READONLY, DEBUGGING
9 .debug_str 00002e30 00000000 00000000 000349ed 2**0
9 .debug_str 00002e2e 00000000 00000000 000349a0 2**0
CONTENTS, READONLY, DEBUGGING
10 .comment 00000030 00000000 00000000 0003781d 2**0
10 .comment 00000030 00000000 00000000 000377ce 2**0
CONTENTS, READONLY
11 .ARM.attributes 00000033 00000000 00000000 0003784d 2**0
11 .ARM.attributes 00000033 00000000 00000000 000377fe 2**0
CONTENTS, READONLY
12 .debug_frame 00002b2c 00000000 00000000 00037880 2**2
12 .debug_frame 00002b1c 00000000 00000000 00037834 2**2
CONTENTS, READONLY, DEBUGGING
SYMBOL TABLE:
00000000 l d .text 00000000 .text
@ -57,9 +57,9 @@ SYMBOL TABLE:
00000000 l df *ABS* 00000000 vectors.c
00000000 l df *ABS* 00000000 cstart.c
0000011c l F .text 00000000 zero_loop2
000054a2 l F .text 00000000 zero_loop
00005486 l F .text 00000000 zero_loop
00000000 l df *ABS* 00000000 hooks.c
00005610 l O .text 0000001b firmwareFilename
000055f4 l O .text 0000001b firmwareFilename
20000008 l O .bss 00000228 logfile
00000000 l df *ABS* 00000000 main.c
00000000 l df *ABS* 00000000 ethernet.c
@ -68,9 +68,9 @@ SYMBOL TABLE:
00000000 l df *ABS* 00000000 flashlib.c
00000000 l df *ABS* 00000000 sysctl.c
0000079c l F .text 00000154 SysCtlPeripheralValid
00005670 l O .text 0000006c g_pulXtals
000056f8 l O .text 0000000c g_pulRCGCRegs
00005704 l O .text 0000000c g_pulSRCRRegs
00005654 l O .text 0000006c g_pulXtals
000056dc l O .text 0000000c g_pulRCGCRegs
000056e8 l O .text 0000000c g_pulSRCRRegs
00000000 l df *ABS* 00000000 gpio.c
00000ce8 l F .text 00000054 GPIOBaseValid
00000000 l df *ABS* 00000000 uartlib.c
@ -94,18 +94,18 @@ SYMBOL TABLE:
20000001 l O .data 00000001 comActiveInterface
20000235 l O .bss 00000040 xcpCtoReqPacket.4412
00000000 l df *ABS* 00000000 xcp.c
00001c9c l F .text 00000014 XcpSetCtoError
00005757 l O .text 00000008 xcpStationId
00001c98 l F .text 00000014 XcpSetCtoError
0000573b l O .text 00000008 xcpStationId
20000278 l O .bss 0000004c xcpInfo
00000000 l df *ABS* 00000000 backdoor.c
200002c4 l O .bss 00000001 backdoorOpen
200002c8 l O .bss 00000004 backdoorOpenTime
00000000 l df *ABS* 00000000 cop.c
00000000 l df *ABS* 00000000 file.c
00001f68 l F .text 0000002c FileLibByteNibbleToChar
00001f94 l F .text 0000001e FileLibByteToHexString
00001fb4 l F .text 00000058 FileLibHexStringToByte
0000200c l F .text 00000038 FileLibLongToIntString.constprop.0
00001f64 l F .text 0000002c FileLibByteNibbleToChar
00001f90 l F .text 0000001e FileLibByteToHexString
00001fb0 l F .text 00000058 FileLibHexStringToByte
00002008 l F .text 00000038 FileLibLongToIntString.constprop.0
200002cc l O .bss 00000040 loggingStr
2000030c l O .bss 00000001 firmwareUpdateState
20000310 l O .bss 00000008 eraseInfo
@ -118,39 +118,39 @@ SYMBOL TABLE:
200008fc l O .bss 00000004 assert_failure_file
20000900 l O .bss 00000004 assert_failure_line
00000000 l df *ABS* 00000000 ff.c
00002758 l F .text 00000012 mem_cpy
0000276a l F .text 0000001e sum_sfn
00002788 l F .text 0000002a validate
000027b2 l F .text 000000ea get_fileinfo
0000289c l F .text 0000001c ld_clust.isra.0
000028b8 l F .text 00000088 check_fs
00002940 l F .text 0000030c chk_mounted
00002c4c l F .text 0000004a sync_window.part.2
00002c96 l F .text 0000000c sync_window
00002ca2 l F .text 0000002e move_window
00002cd0 l F .text 000000b6 sync_fs
00002e6a l F .text 00000084 dir_sdi
00002fe0 l F .text 0000009a create_chain
0000307a l F .text 000000f2 dir_next
0000316c l F .text 0000012c dir_find.part.6
00003298 l F .text 0000026c follow_path
00003504 l F .text 0000004e dir_remove
00003554 l F .text 000000fc dir_read.constprop.8
00003650 l F .text 00000054 remove_chain
00003724 l F .text 000001b0 dir_register
00002744 l F .text 00000012 mem_cpy
00002756 l F .text 0000001e sum_sfn
00002774 l F .text 0000002a validate
0000279e l F .text 000000ea get_fileinfo
00002888 l F .text 0000001c ld_clust.isra.0
000028a4 l F .text 00000088 check_fs
0000292c l F .text 0000030c chk_mounted
00002c38 l F .text 0000004a sync_window.part.2
00002c82 l F .text 0000000c sync_window
00002c8e l F .text 0000002e move_window
00002cbc l F .text 000000b6 sync_fs
00002e56 l F .text 00000084 dir_sdi
00002fcc l F .text 0000009a create_chain
00003066 l F .text 000000f2 dir_next
00003158 l F .text 0000012c dir_find.part.6
00003284 l F .text 0000026c follow_path
000034f0 l F .text 0000004e dir_remove
00003540 l F .text 000000fc dir_read.constprop.8
0000363c l F .text 00000054 remove_chain
00003710 l F .text 000001b0 dir_register
20000904 l O .bss 00000200 LfnBuf
20000b04 l O .bss 00000002 Fsid
0000590a l O .text 00000080 ExCvt
0000598a l O .text 0000000d LfnOfs
000058ee l O .text 00000080 ExCvt
0000596e l O .text 0000000d LfnOfs
20000b08 l O .bss 00000004 FatFs
00000000 l df *ABS* 00000000 unicode.c
00005998 l O .text 000001e0 tbl_lower.4259
00005b78 l O .text 00000100 Tbl
00005c78 l O .text 000001e0 tbl_upper.4260
0000597c l O .text 000001e0 tbl_lower.4259
00005b5c l O .text 00000100 Tbl
00005c5c l O .text 000001e0 tbl_upper.4260
00000000 l df *ABS* 00000000 uip.c
0000411c l F .text 00000038 chksum
00004154 l F .text 0000003c upper_layer_chksum
000041e4 l F .text 0000002c uip_add_rcv_nxt
00004108 l F .text 00000038 chksum
00004140 l F .text 0000003c upper_layer_chksum
000041d0 l F .text 0000002c uip_add_rcv_nxt
20000b0c l O .bss 00000002 tmp16
20000b0e l O .bss 00000002 ipid
20000b10 l O .bss 00000004 iss
@ -158,11 +158,11 @@ SYMBOL TABLE:
20000b1c l O .bss 00000001 c
20000b1d l O .bss 00000001 opt
00000000 l df *ABS* 00000000 uip_arp.c
00004c2c l F .text 000000e4 uip_arp_update.constprop.0
00004c10 l F .text 000000e4 uip_arp_update.constprop.0
20000b1e l O .bss 00000001 i
20000b1f l O .bss 00000001 tmpage
20000b20 l O .bss 00000060 arp_table
00005e58 l O .text 00000006 broadcast_ethaddr
00005e3c l O .text 00000006 broadcast_ethaddr
20000b80 l O .bss 00000001 c
20000b81 l O .bss 00000001 arptime
20000b82 l O .bss 00000004 ipaddr
@ -175,11 +175,11 @@ SYMBOL TABLE:
00000000 l df *ABS* 00000000 timer.c
20000bcc l O .bss 00000004 millisecond_counter
00000000 l df *ABS* 00000000 flash.c
0000512c l F .text 00000034 FlashGetSector
00005160 l F .text 0000004c FlashWriteBlock
000051ac l F .text 00000050 FlashSwitchBlock
000051fc l F .text 00000080 FlashAddToBlock
00005e84 l O .text 000000c0 flashLayout
00005110 l F .text 00000034 FlashGetSector
00005144 l F .text 0000004c FlashWriteBlock
00005190 l F .text 00000050 FlashSwitchBlock
000051e0 l F .text 00000080 FlashAddToBlock
00005e68 l O .text 000000c0 flashLayout
20000bd0 l O .bss 00000204 bootBlockInfo
20000dd4 l O .bss 00000204 blockInfo
00000000 l df *ABS* 00000000 memcpy-stub.c
@ -187,167 +187,166 @@ SYMBOL TABLE:
00000000 l df *ABS* 00000000 ctype_.c
00000000 l df *ABS* 00000000
00000200 l *ABS* 00000000 __STACKSIZE__
00001bb8 g F .text 0000003c ComInit
00005294 g F .text 00000048 FlashWrite
0000401c g F .text 0000004e f_gets
00002740 g F .text 00000018 AssertFailure
00002d9e g F .text 000000cc get_fat
00001bb4 g F .text 0000003c ComInit
00005278 g F .text 00000048 FlashWrite
00004008 g F .text 0000004e f_gets
0000272c g F .text 00000018 AssertFailure
00002d8a g F .text 000000cc get_fat
00000f24 g F .text 00000034 GPIOPinTypeSSI
00005480 g F .text 00000040 reset_handler
00005464 g F .text 00000040 reset_handler
000012dc g F .text 00000028 SSIDataGet
00005100 g F .text 0000001c TimerUpdate
00001cdc g F .text 00000010 XcpPacketTransmitted
00001bf4 g F .text 0000003c ComTask
000050e4 g F .text 0000001c TimerUpdate
00001cd8 g F .text 00000010 XcpPacketTransmitted
00001bf0 g F .text 0000003c ComTask
00001254 g F .text 00000024 SSIEnable
000009e4 g F .text 00000008 SysCtlDelay
00001c8c g F .text 0000000c ComSetConnectEntryState
00001c88 g F .text 0000000c ComSetConnectEntryState
20000fd8 g O .bss 00000002 uip_len
20000b16 g O .bss 00000006 uip_ethaddr
00004190 g F .text 00000054 uip_add32
00001b80 g F .text 0000001e BootInit
000020f0 g F .text 0000003e FileSrecVerifyChecksum
00001f44 g F .text 00000020 BackDoorInit
0000417c g F .text 00000054 uip_add32
00001b7c g F .text 0000001e BootInit
000020ec g F .text 0000003e FileSrecVerifyChecksum
00001f40 g F .text 00000020 BackDoorInit
0000118c g F .text 000000c8 SSIConfigSetExpClk
00001f66 g F .text 00000002 CopService
00006074 g .text 00000000 _etext
00001f62 g F .text 00000002 CopService
00006058 g .text 00000000 _etext
000008f0 g F .text 00000090 SysCtlPeripheralReset
000040f8 g F .text 00000024 ff_wtoupper
000040e4 g F .text 00000024 ff_wtoupper
00000e98 g F .text 00000024 GPIOPinWrite
00001b34 g F .text 00000034 netdev_read
00004280 g F .text 00000980 uip_process
0000546c g F .text 00000006 FlashGetUserProgBaseAddress
000054c8 g F .text 000000a6 memcpy
0000226c g F .text 00000324 FileTask
00001b30 g F .text 00000034 netdev_read
0000426c g F .text 00000980 uip_process
00005450 g F .text 00000006 FlashGetUserProgBaseAddress
000054ac g F .text 000000a6 memcpy
00002268 g F .text 00000324 FileTask
000010e0 g F .text 00000024 UARTSpaceAvail
000050f4 g F .text 0000000c TimerReset
000050d8 g F .text 0000000c TimerReset
000014a4 g F .text 00000228 disk_initialize
20000fdc g O .bss 00000004 uip_sappdata
00001a0c g F .text 00000090 netdev_init
00001a0c g F .text 00000018 netdev_init
20000fe0 g O .bss 00000004 uip_acc32
00004210 g F .text 00000020 uip_ipchksum
000041fc g F .text 00000020 uip_ipchksum
0000112c g F .text 0000002c UARTCharPutNonBlocking
00001b9e g F .text 0000001a BootTask
000053ac g F .text 00000044 FlashWriteChecksum
00001c34 g F .text 00000030 ComTransmitPacket
00001b9a g F .text 0000001a BootTask
00005390 g F .text 00000044 FlashWriteChecksum
00001c30 g F .text 00000030 ComTransmitPacket
00000360 g F .text 0000002c EthernetInitExpClk
000016cc g F .text 00000014 disk_status
00002130 g F .text 0000013c FileSrecParseLine
00004264 g F .text 0000001c uip_listen
00001b68 g F .text 00000018 netdev_send
0000212c g F .text 0000013c FileSrecParseLine
00004250 g F .text 0000001c uip_listen
00001b64 g F .text 00000018 netdev_send
00001824 g F .text 000001e0 disk_ioctl
00002084 g F .text 00000028 FileHandleFirmwareUpdateRequest
00002080 g F .text 00000028 FileHandleFirmwareUpdateRequest
000004d8 g F .text 0000005c EthernetPacketPut
00000980 g F .text 00000064 SysCtlPeripheralEnable
000036a4 g F .text 0000007e gen_numname
00003690 g F .text 0000007e gen_numname
20000fe4 g O .bss 00000001 uip_flags
000001bc g F .text 00000030 FileFirmwareUpdateCompletedHook
00001ccc g F .text 00000010 XcpIsConnected
00003f60 g F .text 000000bc f_unlink
000050b0 g F .text 00000004 NvmInit
0000527c g F .text 00000018 FlashInit
00001cc8 g F .text 00000010 XcpIsConnected
00003f4c g F .text 000000bc f_unlink
00005094 g F .text 00000004 NvmInit
00005260 g F .text 00000018 FlashInit
200016aa g .bss 00000000 _ebss
0000406a g F .text 00000032 f_putc
0000409c g F .text 0000001e f_puts
00005474 g F .text 0000000c UnusedISR
00004056 g F .text 00000032 f_putc
00004088 g F .text 0000001e f_puts
00005458 g F .text 0000000c UnusedISR
00000484 g F .text 00000054 EthernetPacketGetNonBlocking
00001c30 g F .text 00000002 ComFree
00001c2c g F .text 00000002 ComFree
00000ebc g F .text 00000034 GPIOPinTypeEthernetLED
00004fb0 g F .text 00000028 UartInit
00001a9c g F .text 00000098 netdev_setmacaddr
000050b8 g F .text 00000004 NvmErase
00004f94 g F .text 00000028 UartInit
0000509c g F .text 00000004 NvmErase
00001a24 g F .text 0000010c netdev_init_mac
00001104 g F .text 00000028 UARTCharGetNonBlocking
0000129c g F .text 00000040 SSIDataPut
20000008 g .bss 00000000 _bss
00003dd0 g F .text 0000000e f_close
00001cec g F .text 00000214 XcpPacketReceived
00004230 g F .text 00000006 uip_tcpchksum
00003a34 g F .text 00000160 f_read
00005438 g F .text 00000034 FlashDone
00003dbc g F .text 0000000e f_close
00001ce8 g F .text 00000214 XcpPacketReceived
0000421c g F .text 00000006 uip_tcpchksum
00003a20 g F .text 00000160 f_read
0000541c g F .text 00000034 FlashDone
000000f0 g F .text 00000050 EntryFromProg
20000fe8 g O .bss 00000004 uip_appdata
20000fec g O .bss 00000004 uip_conn
20000ff0 g O .bss 00000068 uip_conns
00000658 g F .text 000000e4 FlashProgram
00001a04 g F .text 00000008 get_fattime
00001cb0 g F .text 0000001c XcpInit
00002044 g F .text 0000002c FileInit
00001cac g F .text 0000001c XcpInit
00002040 g F .text 0000002c FileInit
0000056c g F .text 00000028 EthernetIntStatus
00004e18 g F .text 00000144 uip_arp_out
000052dc g F .text 000000d0 FlashErase
00005570 g F .text 0000009e memset
00004dfc g F .text 00000144 uip_arp_out
000052c0 g F .text 000000d0 FlashErase
00005554 g F .text 0000009e memset
000001ec g F .text 00000014 FileFirmwareUpdateErrorHook
00000248 g F .text 0000002c main
00003d26 g F .text 000000aa f_sync
00003d12 g F .text 000000aa f_sync
00000b3c g F .text 000001ac SysCtlClockGet
000020ac g F .text 00000044 FileSrecGetLineType
000020a8 g F .text 00000044 FileSrecGetLineType
00000fdc g F .text 00000034 UARTDisable
000050c0 g F .text 00000012 NvmDone
000050a4 g F .text 00000012 NvmDone
00000444 g F .text 00000040 EthernetEnable
000038d4 g F .text 00000020 f_mount
00004fd8 g F .text 0000006c UartTransmitPacket
000050bc g F .text 00000004 NvmVerifyChecksum
00004f8c g F .text 0000001e CpuMemCopy
00002eee g F .text 000000f2 put_fat
00003dde g F .text 00000138 f_lseek
00004d68 g F .text 000000b0 uip_arp_arpin
00001c78 g F .text 00000014 ComGetActiveInterfaceMaxTxLen
00005044 g F .text 0000006c UartReceivePacket
000038c0 g F .text 00000020 f_mount
00004fbc g F .text 0000006c UartTransmitPacket
000050a0 g F .text 00000004 NvmVerifyChecksum
00004f70 g F .text 0000001e CpuMemCopy
00002eda g F .text 000000f2 put_fat
00003dca g F .text 00000138 f_lseek
00004d4c g F .text 000000b0 uip_arp_arpin
00001c74 g F .text 00000014 ComGetActiveInterfaceMaxTxLen
00005028 g F .text 0000006c UartReceivePacket
0000018c g F .text 00000008 FileGetFirmwareFilenameHook
000003e4 g F .text 00000060 EthernetMACAddrSet
00004d10 g F .text 00000058 uip_arp_timer
00004cf4 g F .text 00000058 uip_arp_timer
20001058 g O .bss 00000002 uip_listenports
2000105a g O .bss 00000004 uip_draddr
20000000 g .data 00000000 _data
000005c8 g F .text 00000040 EthernetPHYRead
00003f18 g F .text 00000048 f_stat
00001f64 g F .text 00000002 CopInit
00004faa g F .text 00000004 CpuReset
00003f04 g F .text 00000048 f_stat
00001f60 g F .text 00000002 CopInit
00004f8e g F .text 00000004 CpuReset
00001278 g F .text 00000024 SSIDisable
000050b4 g F .text 00000004 NvmWrite
00004f5c g F .text 00000030 CpuStartUserProgram
00002d86 g F .text 00000018 clust2sect
00005098 g F .text 00000004 NvmWrite
00004f40 g F .text 00000030 CpuStartUserProgram
00002d72 g F .text 00000018 clust2sect
200018ac g .bss 00000000 _estack
0000038c g F .text 00000058 EthernetConfigSet
000053f0 g F .text 00000048 FlashVerifyChecksum
000025f0 g F .text 0000003c NetTransmitPacket
000053d4 g F .text 00000048 FlashVerifyChecksum
000025ec g F .text 0000003c NetTransmitPacket
20000008 g .data 00000000 _edata
00002070 g F .text 00000014 FileIsIdle
00004c00 g F .text 00000006 htons
00003b94 g F .text 00000192 f_write
0000206c g F .text 00000014 FileIsIdle
00003b80 g F .text 00000192 f_write
00000000 g O .text 000000f0 _vectab
0000073c g F .text 00000060 FlashUserGet
00000f58 g F .text 00000034 GPIOPinTypeUART
000038f4 g F .text 00000140 f_open
000038e0 g F .text 00000140 f_open
00001764 g F .text 000000c0 disk_write
00000ef0 g F .text 00000034 GPIOPinTypeGPIOOutput
00000200 g F .text 00000048 FileFirmwareUpdateLogHook
20000004 g O .data 00000004 __ctype_ptr__
00001c98 g F .text 00000004 ComIsConnected
00001c94 g F .text 00000004 ComIsConnected
00000534 g F .text 00000038 EthernetIntDisable
00005f70 g O .text 00000101 _ctype_
00005f54 g O .text 00000101 _ctype_
00000594 g F .text 00000034 EthernetIntClear
00000154 g F .text 00000038 FileIsFirmwareUpdateRequestedHook
00001158 g F .text 00000020 UARTBusy
00004238 g F .text 0000002c uip_init
00001c64 g F .text 00000014 ComGetActiveInterfaceMaxRxLen
0000262c g F .text 000000b0 NetReceivePacket
00004224 g F .text 0000002c uip_init
00001c60 g F .text 00000014 ComGetActiveInterfaceMaxRxLen
00002628 g F .text 000000a0 NetReceivePacket
00000d3c g F .text 00000058 GPIODirModeSet
000016e0 g F .text 00000084 disk_read
00001f00 g F .text 00000044 BackDoorCheck
00001efc g F .text 00000044 BackDoorCheck
200016aa g .bss 00000000 _stack
2000105e g O .bss 00000004 uip_netmask
20001062 g O .bss 00000004 uip_hostaddr
000040bc g F .text 0000003c ff_convert
0000511c g F .text 00000010 TimerGet
000026dc g F .text 00000064 NetApp
000040a8 g F .text 0000003c ff_convert
00005100 g F .text 00000010 TimerGet
000026c8 g F .text 00000064 NetApp
00001010 g F .text 000000d0 UARTConfigSetExpClk
00002590 g F .text 00000060 NetInit
0000258c g F .text 00000060 NetInit
000009ec g F .text 00000150 SysCtlClockSet
00000d94 g F .text 00000104 GPIOPadConfigSet
000050d4 g F .text 00000020 TimerInit
000050b8 g F .text 00000020 TimerInit
20001066 g O .bss 00000642 uip_buf
00000608 g F .text 00000050 FlashClear
00004c08 g F .text 00000024 uip_send
00004bec g F .text 00000024 uip_send
200016a8 g O .bss 00000002 uip_slen
00000194 g F .text 00000028 FileFirmwareUpdateStartedHook
00000fac g F .text 00000030 UARTEnable

View File

@ -62,12 +62,20 @@
/*---------------------------------------------------------------------------*/
void netdev_init(void)
{
blt_int32u ulTemp;
blt_int32u ulLinkTimeOut;
/* enable and reset the ethernet controller. */
SysCtlPeripheralEnable(SYSCTL_PERIPH_ETH);
SysCtlPeripheralReset(SYSCTL_PERIPH_ETH);
}
/*---------------------------------------------------------------------------*/
void netdev_init_mac(void)
{
struct uip_eth_addr macAddress;
unsigned long ulUser0, ulUser1;
blt_int32u ulTemp;
blt_int32u ulLinkTimeOut;
/* enable port F for ethernet LEDs.
* LED0 Bit 3 Output
* LED1 Bit 2 Output
@ -81,7 +89,6 @@ void netdev_init(void)
ETH_INT_RXOF | ETH_INT_TX | ETH_INT_TXER | ETH_INT_RX));
ulTemp = EthernetIntStatus(ETH_BASE, false);
EthernetIntClear(ETH_BASE, ulTemp);
/* initialize the ethernet controller for operation. */
EthernetInitExpClk(ETH_BASE, SysCtlClockGet());
/* configure the ethernet controller for normal operation.
@ -91,6 +98,9 @@ void netdev_init(void)
*/
EthernetConfigSet(ETH_BASE, (ETH_CFG_TX_DPLXEN | ETH_CFG_TX_CRCEN |
ETH_CFG_TX_PADEN));
/* enable the ethernet controller. */
EthernetEnable(ETH_BASE);
/* wait for the link to become active. */
ulTemp = EthernetPHYRead(ETH_BASE, PHY_MR1);
ulLinkTimeOut = TimerGet() + NETDEV_LINKUP_TIMEOUT_MS;
@ -106,16 +116,6 @@ void netdev_init(void)
break;
}
}
/* enable the ethernet controller. */
EthernetEnable(ETH_BASE);
}
/*---------------------------------------------------------------------------*/
void netdev_setmacaddr(void)
{
struct uip_eth_addr macAddress;
unsigned long ulUser0, ulUser1;
/* set the default MAC address */
macAddress.addr[0] = NETDEV_DEFAULT_MACADDR0;

View File

@ -39,8 +39,8 @@
#define __NETDEV_H__
void netdev_init(void);
void netdev_init_mac(void);
unsigned int netdev_read(void);
void netdev_send(void);
void netdev_setmacaddr(void);
#endif /* __NETDEV_H__ */

View File

@ -18,25 +18,25 @@ Idx Name Size VMA LMA File off Algn
CONTENTS, ALLOC, LOAD, READONLY, CODE
1 .bss 0000086c 20000000 20000000 00010000 2**2
ALLOC
2 .debug_info 000063a5 00000000 00000000 0000b1dc 2**0
2 .debug_info 000063aa 00000000 00000000 0000b1dc 2**0
CONTENTS, READONLY, DEBUGGING
3 .debug_abbrev 000015ac 00000000 00000000 00011581 2**0
3 .debug_abbrev 00001589 00000000 00000000 00011586 2**0
CONTENTS, READONLY, DEBUGGING
4 .debug_loc 000033f7 00000000 00000000 00012b2d 2**0
4 .debug_loc 000033f7 00000000 00000000 00012b0f 2**0
CONTENTS, READONLY, DEBUGGING
5 .debug_aranges 00000920 00000000 00000000 00015f24 2**0
5 .debug_aranges 00000920 00000000 00000000 00015f06 2**0
CONTENTS, READONLY, DEBUGGING
6 .debug_ranges 000007f0 00000000 00000000 00016844 2**0
6 .debug_ranges 000007f0 00000000 00000000 00016826 2**0
CONTENTS, READONLY, DEBUGGING
7 .debug_line 00002481 00000000 00000000 00017034 2**0
7 .debug_line 00002483 00000000 00000000 00017016 2**0
CONTENTS, READONLY, DEBUGGING
8 .debug_str 00001a76 00000000 00000000 000194b5 2**0
8 .debug_str 00001a74 00000000 00000000 00019499 2**0
CONTENTS, READONLY, DEBUGGING
9 .comment 00000030 00000000 00000000 0001af2b 2**0
9 .comment 00000030 00000000 00000000 0001af0d 2**0
CONTENTS, READONLY
10 .ARM.attributes 00000033 00000000 00000000 0001af5b 2**0
10 .ARM.attributes 00000033 00000000 00000000 0001af3d 2**0
CONTENTS, READONLY
11 .debug_frame 00001738 00000000 00000000 0001af90 2**2
11 .debug_frame 00001738 00000000 00000000 0001af70 2**2
CONTENTS, READONLY, DEBUGGING
SYMBOL TABLE:
00008000 l d .text 00000000 .text
@ -121,7 +121,7 @@ SYMBOL TABLE:
000087e4 g F .text 00000052 netdev_read
00009bd4 g F .text 00000fc4 uip_process
200000e4 g O .bss 00000004 uip_sappdata
00008638 g F .text 00000100 netdev_init
00008638 g F .text 00000024 netdev_init
200000e8 g O .bss 00000004 uip_acc32
00009b30 g F .text 0000002c uip_ipchksum
00008988 g F .text 0000003a EthernetInitExpClk
@ -139,7 +139,7 @@ SYMBOL TABLE:
00008624 g F .text 00000010 TimeISRHandler
00009078 g F .text 0000004c GPIOPinTypeEthernetLED
00008400 g F .text 0000015c NetTask
00008738 g F .text 000000ac netdev_setmacaddr
0000865c g F .text 00000188 netdev_init_mac
000099ac g F .text 00000036 UARTCharGetNonBlocking
20000000 g .bss 00000000 _bss
00009b5c g F .text 00000010 uip_tcpchksum

View File

@ -52,13 +52,13 @@ S1138310B173C0F2000398470FE040F24C03C2F27D
S1138320000300221A704FF4A040C4F2020001219D
S113833048F6B173C0F20003984740F24803C2F212
S113834000031C6010BD00BF10B548F23963C0F2D1
S11383500003984749F66D33C0F20003984740F292
S11383602413C2F200034FF6A9621A8043F6137273
S11383705A8040F22013C2F200034FF6FF721A80B3
S113838000225A8048F23973C0F20003984748F239
S11383901964C0F20004A04740F25403C2F200037F
S11383A000F5FA701860A04740F25003C2F20003CF
S11383B000F51C50103018604EF6030049F6A13346
S11383500003984748F21964C0F20004A04740F2B1
S11383605403C2F2000300F5FA701860A04740F20B
S11383705003C2F2000300F51C501030186049F697
S11383806D33C0F20003984740F22413C2F2000395
S11383904FF6A9621A8043F613725A8040F22013F2
S11383A0C2F200034FF6FF721A8000225A804EF682
S11383B0030049F6A133C0F20003984748F25D6315
S11383C0C0F20003984710BD08B540F2EC03C2F2B6
S11383D000031B7813F0400F11D113F0020F0ED0DD
S11383E040F2F003C2F200031B681A79FF2A06D197
@ -98,23 +98,23 @@ S11385F00003984749F26D73C0F20003984749F2AB
S11386008173C0F20003984740F25C03C2F2000396
S113861000221A6008BD00BF40F25C03C2F20003EE
S11386201868704740F25C03C2F200031A68013212
S11386301A607047FEE700BF2DE9F8434FF4A045E8
S1138640C2F21005284649F29124C0F20004A04762
S1138650284649F22923C0F2000398472020C2F299
S11386600000A0474FF4A040C4F202000C2149F2DC
S11386707903C0F2000398474FF40044C4F20404A1
S113868020467F2148F6E933C0F20003984720468C
S1138690002148F63943C0F20003984701462046BA
S11386A048F66D43C0F20003984749F2B143C0F263
S11386B0000398470146204648F68913C0F2000398
S11386C098472046162148F6C513C0F20003984780
S11386D02046012148F6B543C0F2000398470446FA
S11386E048F21963C0F20003984700F59C57083715
S11386F04FF40048C4F204084FF0010948F6B546A7
S1138700C0F2000648F21965C0F2000506E04046D2
S11387104946B0470446A847874202D914F0040FDB
S1138720F5D04FF40040C4F2040048F6AD23C0F283
S113873000039847BDE8F88300B585B008238DF899
S11386301A607047FEE700BF10B54FF4A044C2F2C1
S11386401004204649F29123C0F2000398472046C3
S113865049F22923C0F20003984710BD2DE9F043E5
S113866085B02020C2F2000049F29123C0F2000339
S113867098474FF4A040C4F202000C2149F2790358
S1138680C0F2000398474FF40044C4F204042046A7
S11386907F2148F6E933C0F20003984720460021C1
S11386A048F63943C0F2000398470146204648F68D
S11386B06D43C0F20003984749F2B143C0F200038E
S11386C098470146204648F68913C0F200039847AC
S11386D02046162148F6C513C0F2000398472046E9
S11386E048F6AD23C0F2000398472046012148F61E
S11386F0B543C0F200039847044648F21963C0F238
S11387000003984700F59C5708374FF40048C4F21B
S113871004084FF0010948F6B546C0F2000648F2D5
S11387201965C0F2000506E040464946B0470446D4
S1138730A847874202D914F0040FF5D008238DF816
S1138740083000238DF8093027238DF80A30692377
S11387508DF80B305B238DF80C3045238DF80D30EC
S113876001A8694648F60153C0F200039847019BEB
@ -125,7 +125,7 @@ S11387A00040C4F2040002A948F63523C0F20003D5
S11387B0984740F26C03C2F200039DF808201A7037
S11387C09DF809205A709DF80A209A709DF80B2094
S11387D0DA709DF80C201A719DF80D205A7105B0BD
S11387E05DF804FB38B54FF40044C4F20404204699
S11387E0BDE8F08338B54FF40044C4F204042046D5
S11387F0002148F63943C0F2000398470546204655
S1138800294648F66D43C0F20003984715F0010F5E
S11388100FD04FF40040C4F2040040F22811C2F219

View File

@ -62,12 +62,20 @@
/*---------------------------------------------------------------------------*/
void netdev_init(void)
{
unsigned long ulTemp;
unsigned long ulLinkTimeOut;
/* enable and reset the ethernet controller. */
SysCtlPeripheralEnable(SYSCTL_PERIPH_ETH);
SysCtlPeripheralReset(SYSCTL_PERIPH_ETH);
}
/*---------------------------------------------------------------------------*/
void netdev_init_mac(void)
{
struct uip_eth_addr macAddress;
unsigned long ulUser0, ulUser1;
unsigned long ulTemp;
unsigned long ulLinkTimeOut;
/* enable port F for ethernet LEDs.
* LED0 Bit 3 Output
* LED1 Bit 2 Output
@ -81,7 +89,6 @@ void netdev_init(void)
ETH_INT_RXOF | ETH_INT_TX | ETH_INT_TXER | ETH_INT_RX));
ulTemp = EthernetIntStatus(ETH_BASE, false);
EthernetIntClear(ETH_BASE, ulTemp);
/* initialize the ethernet controller for operation. */
EthernetInitExpClk(ETH_BASE, SysCtlClockGet());
/* configure the ethernet controller for normal operation.
@ -91,6 +98,9 @@ void netdev_init(void)
*/
EthernetConfigSet(ETH_BASE, (ETH_CFG_TX_DPLXEN | ETH_CFG_TX_CRCEN |
ETH_CFG_TX_PADEN));
/* enable the ethernet controller. */
EthernetEnable(ETH_BASE);
/* wait for the link to become active. */
ulTemp = EthernetPHYRead(ETH_BASE, PHY_MR1);
ulLinkTimeOut = TimeGet() + NETDEV_LINKUP_TIMEOUT_MS;
@ -106,16 +116,6 @@ void netdev_init(void)
break;
}
}
/* enable the ethernet controller. */
EthernetEnable(ETH_BASE);
}
/*---------------------------------------------------------------------------*/
void netdev_setmacaddr(void)
{
struct uip_eth_addr macAddress;
unsigned long ulUser0, ulUser1;
/* set the default MAC address */
macAddress.addr[0] = NETDEV_DEFAULT_MACADDR0;

View File

@ -39,8 +39,8 @@
#define __NETDEV_H__
void netdev_init(void);
void netdev_init_mac(void);
unsigned int netdev_read(void);
void netdev_send(void);
void netdev_setmacaddr(void);
#endif /* __NETDEV_H__ */

View File

@ -71,6 +71,9 @@ void NetInit(void)
/* initialize the network device */
netdev_init();
/* initialize the timer variables */
periodicTimerTimeOut = TimeGet() + NET_UIP_PERIODIC_TIMER_MS;
ARPTimerTimeOut = TimeGet() + NET_UIP_ARP_TIMER_MS;
/* initialize the uIP TCP/IP stack. */
uip_init();
/* set the IP address */
@ -81,13 +84,10 @@ void NetInit(void)
uip_ipaddr(ipaddr, BOOT_COM_NET_NETMASK0, BOOT_COM_NET_NETMASK1, BOOT_COM_NET_NETMASK2,
BOOT_COM_NET_NETMASK3);
uip_setnetmask(ipaddr);
/* set the MAC address */
netdev_setmacaddr();
/* initialize the timer variables */
periodicTimerTimeOut = TimeGet() + NET_UIP_PERIODIC_TIMER_MS;
ARPTimerTimeOut = TimeGet() + NET_UIP_ARP_TIMER_MS;
/* start listening on the configured port for XCP transfers on TCP/IP */
uip_listen(HTONS(BOOT_COM_NET_PORT));
/* initialize the MAC and set the MAC address */
netdev_init_mac();
} /*** end of NetInit ***/

File diff suppressed because it is too large Load Diff

View File

@ -19,7 +19,7 @@
<Column0>146</Column0><Column1>27</Column1><Column2>27</Column2><Column3>27</Column3></ColumnWidths>
<Column0>211</Column0><Column1>27</Column1><Column2>27</Column2><Column3>27</Column3></ColumnWidths>
</Workspace>
<Disassembly>
<col-names>
@ -57,14 +57,14 @@
<Pane><Tab><Factory>TextEditor</Factory><Filename>$WS_DIR$\..\blt_conf.h</Filename><XPos>0</XPos><YPos>0</YPos><SelStart>0</SelStart><SelEnd>0</SelEnd><XPos2>0</XPos2><YPos2>73</YPos2><SelStart2>0</SelStart2><SelEnd2>0</SelEnd2></Tab><Tab><Factory>TextEditor</Factory><Filename>$WS_DIR$\..\main.c</Filename><XPos>0</XPos><YPos>0</YPos><SelStart>0</SelStart><SelEnd>0</SelEnd><XPos2>0</XPos2><YPos2>40</YPos2><SelStart2>3038</SelStart2><SelEnd2>3038</SelEnd2></Tab><ActiveTab>1</ActiveTab><Tab><Factory>TextEditor</Factory><Filename>$WS_DIR$\..\..\..\..\Source\backdoor.c</Filename><XPos>0</XPos><YPos>0</YPos><SelStart>0</SelStart><SelEnd>0</SelEnd><XPos2>0</XPos2><YPos2>24</YPos2><SelStart2>2978</SelStart2><SelEnd2>3026</SelEnd2></Tab><Tab><Factory>TextEditor</Factory><Filename>$WS_DIR$\..\lib\uip\netdev.c</Filename><XPos>0</XPos><YPos>0</YPos><SelStart>0</SelStart><SelEnd>0</SelEnd><XPos2>0</XPos2><YPos2>58</YPos2><SelStart2>3802</SelStart2><SelEnd2>3802</SelEnd2></Tab><Tab><Factory>TextEditor</Factory><Filename>$WS_DIR$\..\..\..\..\Source\net.c</Filename><XPos>0</XPos><YPos>0</YPos><SelStart>0</SelStart><SelEnd>0</SelEnd><XPos2>0</XPos2><YPos2>92</YPos2><SelStart2>4500</SelStart2><SelEnd2>4500</SelEnd2></Tab></Pane><ActivePane>0</ActivePane><Sizes><Pane><X>1000000</X><Y>1000000</Y></Pane></Sizes><SplitMode>1</SplitMode></Editor>
<Pane><Tab><Factory>TextEditor</Factory><Filename>$WS_DIR$\..\blt_conf.h</Filename><XPos>0</XPos><YPos>0</YPos><SelStart>0</SelStart><SelEnd>0</SelEnd><XPos2>0</XPos2><YPos2>73</YPos2><SelStart2>4944</SelStart2><SelEnd2>4944</SelEnd2></Tab><Tab><Factory>TextEditor</Factory><Filename>$WS_DIR$\..\main.c</Filename><XPos>0</XPos><YPos>0</YPos><SelStart>0</SelStart><SelEnd>0</SelEnd><XPos2>0</XPos2><YPos2>40</YPos2><SelStart2>3038</SelStart2><SelEnd2>3038</SelEnd2></Tab><ActiveTab>1</ActiveTab><Tab><Factory>TextEditor</Factory><Filename>$WS_DIR$\..\..\..\..\Source\backdoor.c</Filename><XPos>0</XPos><YPos>0</YPos><SelStart>0</SelStart><SelEnd>0</SelEnd><XPos2>0</XPos2><YPos2>24</YPos2><SelStart2>2978</SelStart2><SelEnd2>2978</SelEnd2></Tab><Tab><Factory>TextEditor</Factory><Filename>$WS_DIR$\..\lib\uip\netdev.c</Filename><XPos>0</XPos><YPos>0</YPos><SelStart>0</SelStart><SelEnd>0</SelEnd><XPos2>0</XPos2><YPos2>53</YPos2><SelStart2>2862</SelStart2><SelEnd2>2862</SelEnd2></Tab><Tab><Factory>TextEditor</Factory><Filename>$WS_DIR$\..\..\..\..\Source\net.c</Filename><XPos>0</XPos><YPos>0</YPos><SelStart>0</SelStart><SelEnd>0</SelEnd><XPos2>0</XPos2><YPos2>85</YPos2><SelStart2>5739</SelStart2><SelEnd2>5739</SelEnd2></Tab></Pane><ActivePane>0</ActivePane><Sizes><Pane><X>1000000</X><Y>1000000</Y></Pane></Sizes><SplitMode>1</SplitMode></Editor>
<Positions>
<Top><Row0><Sizes><Toolbar-02beba70><key>iaridepm.enu1</key></Toolbar-02beba70></Sizes></Row0><Row1><Sizes><Toolbar-0b064bc8><key>debuggergui.enu1</key></Toolbar-0b064bc8></Sizes></Row1></Top><Left><Row0><Sizes><Wnd0><Rect><Top>-2</Top><Left>-2</Left><Bottom>597</Bottom><Right>237</Right><x>-2</x><y>-2</y><xscreen>200</xscreen><yscreen>200</yscreen><sizeHorzCX>125000</sizeHorzCX><sizeHorzCY>241546</sizeHorzCY><sizeVertCX>149375</sizeVertCX><sizeVertCY>723430</sizeVertCY></Rect></Wnd0></Sizes></Row0></Left><Right><Row0><Sizes><Wnd4><Rect><Top>-2</Top><Left>-2</Left><Bottom>597</Bottom><Right>165</Right><x>-2</x><y>-2</y><xscreen>167</xscreen><yscreen>164</yscreen><sizeHorzCX>104375</sizeHorzCX><sizeHorzCY>198068</sizeHorzCY><sizeVertCX>104375</sizeVertCX><sizeVertCY>723430</sizeVertCY></Rect></Wnd4></Sizes></Row0></Right><Bottom><Row0><Sizes><Wnd1><Rect><Top>-2</Top><Left>-2</Left><Bottom>162</Bottom><Right>1602</Right><x>-2</x><y>-2</y><xscreen>1604</xscreen><yscreen>164</yscreen><sizeHorzCX>1002500</sizeHorzCX><sizeHorzCY>198068</sizeHorzCY><sizeVertCX>104375</sizeVertCX><sizeVertCY>198068</sizeVertCY></Rect></Wnd1></Sizes></Row0></Bottom><Float><Sizes/></Float></Positions>
<Top><Row0><Sizes><Toolbar-029dba70><key>iaridepm.enu1</key></Toolbar-029dba70></Sizes></Row0><Row1><Sizes><Toolbar-0b55e3d8><key>debuggergui.enu1</key></Toolbar-0b55e3d8></Sizes></Row1></Top><Left><Row0><Sizes><Wnd0><Rect><Top>-2</Top><Left>-2</Left><Bottom>741</Bottom><Right>285</Right><x>-2</x><y>-2</y><xscreen>240</xscreen><yscreen>243</yscreen><sizeHorzCX>125000</sizeHorzCX><sizeHorzCY>241071</sizeHorzCY><sizeVertCX>149479</sizeVertCX><sizeVertCY>737103</sizeVertCY></Rect></Wnd0></Sizes></Row0></Left><Right><Row0><Sizes><Wnd4><Rect><Top>-2</Top><Left>-2</Left><Bottom>741</Bottom><Right>198</Right><x>-2</x><y>-2</y><xscreen>200</xscreen><yscreen>200</yscreen><sizeHorzCX>104167</sizeHorzCX><sizeHorzCY>198413</sizeHorzCY><sizeVertCX>104167</sizeVertCX><sizeVertCY>737103</sizeVertCY></Rect></Wnd4></Sizes></Row0></Right><Bottom><Row0><Sizes><Wnd1><Rect><Top>-2</Top><Left>-2</Left><Bottom>198</Bottom><Right>1922</Right><x>-2</x><y>-2</y><xscreen>1924</xscreen><yscreen>200</yscreen><sizeHorzCX>1002083</sizeHorzCX><sizeHorzCY>198413</sizeHorzCY><sizeVertCX>104167</sizeVertCX><sizeVertCY>198413</sizeVertCY></Rect></Wnd1></Sizes></Row0></Bottom><Float><Sizes/></Float></Positions>
</Desktop>
</Project>

View File

@ -9,7 +9,7 @@ TriggerName=main
LimitSize=0
ByteLimit=50
[DebugChecksum]
Checksum=219067476
Checksum=-789430103
[Exceptions]
StopOnUncaught=_ 0
StopOnThrow=_ 0

View File

@ -12,7 +12,7 @@
<Column0>326</Column0><Column1>27</Column1><Column2>27</Column2><Column3>27</Column3></ColumnWidths>
<Column0>235</Column0><Column1>27</Column1><Column2>27</Column2><Column3>27</Column3></ColumnWidths>
</Workspace>
<Build><PreferedWindows><Position>1</Position><ScreenPosX>0</ScreenPosX><ScreenPosY>0</ScreenPosY><Windows><Window><Factory>Find-All-References</Factory></Window></Windows></PreferedWindows><ColumnWidth0>20</ColumnWidth0><ColumnWidth1>1155</ColumnWidth1><ColumnWidth2>308</ColumnWidth2><ColumnWidth3>77</ColumnWidth3></Build><Find-in-Files><PreferedWindows><Position>3</Position><ScreenPosX>0</ScreenPosX><ScreenPosY>0</ScreenPosY><Windows/></PreferedWindows><ColumnWidth0>552</ColumnWidth0><ColumnWidth1>78</ColumnWidth1><ColumnWidth2>946</ColumnWidth2></Find-in-Files><TerminalIO/><PROJECT_GUI_CALL_GRAPH><PreferedWindows><Position>3</Position><ScreenPosX>0</ScreenPosX><ScreenPosY>0</ScreenPosY><Windows/></PreferedWindows><col-names><item>File</item><item>Function</item><item>Line</item></col-names><col-widths><item>200</item><item>700</item><item>100</item></col-widths></PROJECT_GUI_CALL_GRAPH><Select-Ambiguous-Definitions><PreferedWindows><Position>3</Position><ScreenPosX>0</ScreenPosX><ScreenPosY>0</ScreenPosY><Windows><Window><Factory>Build</Factory></Window><Window><Factory>Find-in-Files</Factory></Window><Window><Factory>Find-All-References</Factory></Window></Windows></PreferedWindows><ColumnWidth0>664</ColumnWidth0><ColumnWidth1>94</ColumnWidth1><ColumnWidth2>1138</ColumnWidth2></Select-Ambiguous-Definitions><Find-All-References><PreferedWindows><Position>1</Position><ScreenPosX>0</ScreenPosX><ScreenPosY>0</ScreenPosY><Windows><Window><Factory>Build</Factory></Window></Windows></PreferedWindows><ColumnWidth0>664</ColumnWidth0><ColumnWidth1>94</ColumnWidth1><ColumnWidth2>1138</ColumnWidth2></Find-All-References></Static>
<Windows>
@ -35,14 +35,14 @@
<Pane><Tab><Factory>TextEditor</Factory><Filename>$WS_DIR$\..\blt_conf.h</Filename><XPos>0</XPos><YPos>0</YPos><SelStart>0</SelStart><SelEnd>0</SelEnd><XPos2>0</XPos2><YPos2>73</YPos2><SelStart2>0</SelStart2><SelEnd2>0</SelEnd2></Tab><Tab><Factory>TextEditor</Factory><Filename>$WS_DIR$\..\main.c</Filename><XPos>0</XPos><YPos>0</YPos><SelStart>0</SelStart><SelEnd>0</SelEnd><XPos2>0</XPos2><YPos2>40</YPos2><SelStart2>3038</SelStart2><SelEnd2>3038</SelEnd2></Tab><ActiveTab>1</ActiveTab><Tab><Factory>TextEditor</Factory><Filename>$WS_DIR$\..\..\..\..\Source\backdoor.c</Filename><XPos>0</XPos><YPos>0</YPos><SelStart>0</SelStart><SelEnd>0</SelEnd><XPos2>0</XPos2><YPos2>24</YPos2><SelStart2>2978</SelStart2><SelEnd2>3026</SelEnd2></Tab><Tab><Factory>TextEditor</Factory><Filename>$WS_DIR$\..\lib\uip\netdev.c</Filename><XPos>0</XPos><YPos>0</YPos><SelStart>0</SelStart><SelEnd>0</SelEnd><XPos2>0</XPos2><YPos2>58</YPos2><SelStart2>3802</SelStart2><SelEnd2>3802</SelEnd2></Tab><Tab><Factory>TextEditor</Factory><Filename>$WS_DIR$\..\..\..\..\Source\net.c</Filename><XPos>0</XPos><YPos>0</YPos><SelStart>0</SelStart><SelEnd>0</SelEnd><XPos2>0</XPos2><YPos2>92</YPos2><SelStart2>4500</SelStart2><SelEnd2>4500</SelEnd2></Tab></Pane><ActivePane>0</ActivePane><Sizes><Pane><X>1000000</X><Y>1000000</Y></Pane></Sizes><SplitMode>1</SplitMode></Editor>
<Pane><Tab><Factory>TextEditor</Factory><Filename>$WS_DIR$\..\blt_conf.h</Filename><XPos>0</XPos><YPos>0</YPos><SelStart>0</SelStart><SelEnd>0</SelEnd><XPos2>0</XPos2><YPos2>73</YPos2><SelStart2>4944</SelStart2><SelEnd2>4944</SelEnd2></Tab><Tab><Factory>TextEditor</Factory><Filename>$WS_DIR$\..\main.c</Filename><XPos>0</XPos><YPos>0</YPos><SelStart>0</SelStart><SelEnd>0</SelEnd><XPos2>0</XPos2><YPos2>40</YPos2><SelStart2>3038</SelStart2><SelEnd2>3038</SelEnd2></Tab><ActiveTab>1</ActiveTab><Tab><Factory>TextEditor</Factory><Filename>$WS_DIR$\..\..\..\..\Source\backdoor.c</Filename><XPos>0</XPos><YPos>0</YPos><SelStart>0</SelStart><SelEnd>0</SelEnd><XPos2>0</XPos2><YPos2>24</YPos2><SelStart2>2978</SelStart2><SelEnd2>2978</SelEnd2></Tab><Tab><Factory>TextEditor</Factory><Filename>$WS_DIR$\..\lib\uip\netdev.c</Filename><XPos>0</XPos><YPos>0</YPos><SelStart>0</SelStart><SelEnd>0</SelEnd><XPos2>0</XPos2><YPos2>53</YPos2><SelStart2>2862</SelStart2><SelEnd2>2862</SelEnd2></Tab><Tab><Factory>TextEditor</Factory><Filename>$WS_DIR$\..\..\..\..\Source\net.c</Filename><XPos>0</XPos><YPos>0</YPos><SelStart>0</SelStart><SelEnd>0</SelEnd><XPos2>0</XPos2><YPos2>85</YPos2><SelStart2>5739</SelStart2><SelEnd2>5739</SelEnd2></Tab></Pane><ActivePane>0</ActivePane><Sizes><Pane><X>1000000</X><Y>1000000</Y></Pane></Sizes><SplitMode>1</SplitMode></Editor>
<Positions>
<Top><Row0><Sizes><Toolbar-02beba70><key>iaridepm.enu1</key></Toolbar-02beba70></Sizes></Row0><Row1><Sizes/></Row1><Row2><Sizes/></Row2></Top><Left><Row0><Sizes><Wnd0><Rect><Top>-2</Top><Left>-2</Left><Bottom>446</Bottom><Right>417</Right><x>-2</x><y>-2</y><xscreen>310</xscreen><yscreen>290</yscreen><sizeHorzCX>193750</sizeHorzCX><sizeHorzCY>350242</sizeHorzCY><sizeVertCX>261875</sizeVertCX><sizeVertCY>541063</sizeVertCY></Rect></Wnd0><Wnd3><Rect><Top>0</Top><Left>0</Left><Bottom>0</Bottom><Right>7</Right><x>-2</x><y>444</y><xscreen>215</xscreen><yscreen>195</yscreen><sizeHorzCX>134375</sizeHorzCX><sizeHorzCY>235507</sizeHorzCY><sizeVertCX>261875</sizeVertCX><sizeVertCY>409420</sizeVertCY></Rect></Wnd3></Sizes></Row0></Left><Right><Row0><Sizes/></Row0></Right><Bottom><Row0><Sizes/></Row0></Bottom><Float><Sizes/></Float></Positions>
<Top><Row0><Sizes><Toolbar-029dba70><key>iaridepm.enu1</key></Toolbar-029dba70></Sizes></Row0><Row1><Sizes/></Row1><Row2><Sizes/></Row2></Top><Left><Row0><Sizes><Wnd0><Rect><Top>-2</Top><Left>-2</Left><Bottom>563</Bottom><Right>326</Right><x>-2</x><y>-2</y><xscreen>372</xscreen><yscreen>353</yscreen><sizeHorzCX>193750</sizeHorzCX><sizeHorzCY>350198</sizeHorzCY><sizeVertCX>170833</sizeVertCX><sizeVertCY>560516</sizeVertCY></Rect></Wnd0><Wnd3><Rect><Top>0</Top><Left>0</Left><Bottom>0</Bottom><Right>7</Right><x>-2</x><y>561</y><xscreen>258</xscreen><yscreen>237</yscreen><sizeHorzCX>134375</sizeHorzCX><sizeHorzCY>235119</sizeHorzCY><sizeVertCX>170833</sizeVertCX><sizeVertCY>398810</sizeVertCY></Rect></Wnd3></Sizes></Row0></Left><Right><Row0><Sizes/></Row0></Right><Bottom><Row0><Sizes/></Row0></Bottom><Float><Sizes/></Float></Positions>
</Desktop>
</Workspace>

View File

@ -62,12 +62,20 @@
/*---------------------------------------------------------------------------*/
void netdev_init(void)
{
blt_int32u ulTemp;
blt_int32u ulLinkTimeOut;
/* enable and reset the ethernet controller. */
SysCtlPeripheralEnable(SYSCTL_PERIPH_ETH);
SysCtlPeripheralReset(SYSCTL_PERIPH_ETH);
}
/*---------------------------------------------------------------------------*/
void netdev_init_mac(void)
{
struct uip_eth_addr macAddress;
unsigned long ulUser0, ulUser1;
blt_int32u ulTemp;
blt_int32u ulLinkTimeOut;
/* enable port F for ethernet LEDs.
* LED0 Bit 3 Output
* LED1 Bit 2 Output
@ -81,7 +89,6 @@ void netdev_init(void)
ETH_INT_RXOF | ETH_INT_TX | ETH_INT_TXER | ETH_INT_RX));
ulTemp = EthernetIntStatus(ETH_BASE, false);
EthernetIntClear(ETH_BASE, ulTemp);
/* initialize the ethernet controller for operation. */
EthernetInitExpClk(ETH_BASE, SysCtlClockGet());
/* configure the ethernet controller for normal operation.
@ -91,6 +98,9 @@ void netdev_init(void)
*/
EthernetConfigSet(ETH_BASE, (ETH_CFG_TX_DPLXEN | ETH_CFG_TX_CRCEN |
ETH_CFG_TX_PADEN));
/* enable the ethernet controller. */
EthernetEnable(ETH_BASE);
/* wait for the link to become active. */
ulTemp = EthernetPHYRead(ETH_BASE, PHY_MR1);
ulLinkTimeOut = TimerGet() + NETDEV_LINKUP_TIMEOUT_MS;
@ -106,16 +116,6 @@ void netdev_init(void)
break;
}
}
/* enable the ethernet controller. */
EthernetEnable(ETH_BASE);
}
/*---------------------------------------------------------------------------*/
void netdev_setmacaddr(void)
{
struct uip_eth_addr macAddress;
unsigned long ulUser0, ulUser1;
/* set the default MAC address */
macAddress.addr[0] = NETDEV_DEFAULT_MACADDR0;

View File

@ -39,8 +39,8 @@
#define __NETDEV_H__
void netdev_init(void);
void netdev_init_mac(void);
unsigned int netdev_read(void);
void netdev_send(void);
void netdev_setmacaddr(void);
#endif /* __NETDEV_H__ */

View File

@ -302,13 +302,13 @@ S11392A470B800002807002044B0000080B2010A0E
S11392B451EA002080B27047E80600205C070020D1
S11392C456070020500700205D07002044070020B3
S11392D45B0700204C0700200000002052070020F8
S11392E480B500F0C7F8FEF7A8FF4FF6A960ADF803
S11392F4000043F61370ADF802005448BDF80010A2
S113930401805248BDF8021041804FF6FF70ADF859
S113931400000020ADF802004D48BDF800100180A3
S11393244B48BDF80210418000F0E2F800F074F9F3
S113933410F5FA704749086000F06EF900F51C5006
S11393441030454908604EF60300FEF7A3FF01BD43
S11392E480B500F0C7F800F097F910F5FA70574903
S11392F4086000F091F900F51C50103054490860DE
S1139304FEF79BFF4FF6A960ADF8000043F6137017
S1139314ADF802004F48BDF8001001804D48BDF877
S1139324021041804FF6FF70ADF800000020ADF844
S113933402004948BDF8001001804748BDF80210F6
S113934441804EF60300FEF7A5FF00F09BF801BD33
S113935480B54248007840060ED44048007880071F
S11393640AD53F480068001D0178FF2904D14078DC
S1139374002801D100F05CF901BD10B500F00CF92E
@ -318,24 +318,24 @@ S11393A43048008800281BD000F0D9FA00F009F9ED
S11393B42C480021018013E040F60600FFF776FFF5
S11393C42949898980B281420AD100F062FA254888
S11393D40088002804D000F0F4F822480021018019
S11393E400F01AF91B49096888421ED31948006819
S11393F410F5FA7017490860002414E01E201B4974
S11393E400F01AF91949096888421ED3174800681D
S11393F410F5FA7015490860002414E01E201B4976
S113940400FB04101A4908600220FEF793FF154874
S11394140088002806D000F0A2FA00F0D2F811481F
S113942400210180641C002CE8D000F0F5F80A49FE
S11394340968884208D30848006800F51C501030B5
S11394440549086000F05AF910BD000028070020FF
S1139454300700201C070020200700205B070020A1
S113942400210180641C002CE8D000F0F5F8084900
S11394340968884208D30648006800F51C501030B7
S11394440349086000F05AF910BD00001C0700200D
S11394542007002028070020300700205B07002095
S1139464340700204C07002000000020E8060020F8
S11394743C07002038B5574800F039FC554800F043
S1139484FAFB554800F033FC0C21544801F00FF862
S11394947F21534801F09FF90021514801F0B3F9A9
S11394A4040021004E4801F0C0F900F0F9FC010069
S11394B44B4801F03BF81621494801F04BF80121CF
S11394C4474801F0C8F9040000F0A6F800F59855DF
S11394D48835600708D40121414801F0BCF904002F
S11394E400F09AF8A842F4D33D4801F087F831BD5E
S11394F400B585B008208DF8000000208DF8010027
S11394743C07002080B5574800F039FC554800F0FB
S1139484FAFB01BD30B585B0534800F030FC0C2123
S1139494524801F00CF87F21514801F09CF9002155
S11394A44F4801F0B0F9040021004D4801F0BDF922
S11394B400F0F6FC01004A4801F038F81621484847
S11394C401F048F8464801F099F80121444801F0B4
S11394D4C2F9040000F0A0F800F598558835600737
S11394E408D401213E4801F0B6F9040000F094F8D0
S11394F4A842F4D308208DF8000000208DF8010060
S113950427208DF8020069208DF803005B208DF874
S1139514040045208DF8050002A903A801F0C0F950
S1139524039810F1010F19D0029810F1010F15D00E
@ -345,7 +345,7 @@ S11395548DF804000298000C8DF8050000A9204839
S113956401F022F81F489DF8001001701D489DF871
S1139574011041701B489DF80210817019489DF830
S11395840310C17017489DF80410017115489DF823
S11395940510417105B000BD10B50021104801F05B
S11395940510417105B030BD10B50021104801F02B
S11395A432F9040021000E4801F03FF9E00706D522
S11395B440F242620C490A4801F082F800E00020BB
S11395C410BD80B5094802880749054801F0E0F850

File diff suppressed because it is too large Load Diff

View File

@ -12,7 +12,7 @@
<Column0>223</Column0><Column1>27</Column1><Column2>27</Column2><Column3>27</Column3></ColumnWidths>
<Column0>283</Column0><Column1>27</Column1><Column2>27</Column2><Column3>27</Column3></ColumnWidths>
</Workspace>
<Build>
<PreferedWindows>
@ -35,7 +35,7 @@
<Windows>
<Wnd0>
<Wnd1>
<Tabs>
<Tab>
<Identity>TabID-27300-28131</Identity>
@ -47,20 +47,20 @@
</Tab>
</Tabs>
<SelectedTab>0</SelectedTab></Wnd0><Wnd2><Tabs><Tab><Identity>TabID-32469-16784</Identity><TabName>Build</TabName><Factory>Build</Factory><Session/></Tab></Tabs><SelectedTab>0</SelectedTab></Wnd2></Windows>
<SelectedTab>0</SelectedTab></Wnd1><Wnd3><Tabs><Tab><Identity>TabID-32469-16784</Identity><TabName>Build</TabName><Factory>Build</Factory><Session/></Tab></Tabs><SelectedTab>0</SelectedTab></Wnd3></Windows>
<Editor>
<Pane><Tab><Factory>TextEditor</Factory><Filename>$WS_DIR$\..\led.c</Filename><XPos>0</XPos><YPos>0</YPos><SelStart>0</SelStart><SelEnd>0</SelEnd><XPos2>0</XPos2><YPos2>45</YPos2><SelStart2>3072</SelStart2><SelEnd2>3072</SelEnd2></Tab><Tab><Factory>TextEditor</Factory><Filename>$WS_DIR$\..\boot.c</Filename><XPos>0</XPos><YPos>0</YPos><SelStart>0</SelStart><SelEnd>0</SelEnd><XPos2>0</XPos2><YPos2>45</YPos2><SelStart2>1098</SelStart2><SelEnd2>1098</SelEnd2></Tab><Tab><Factory>TextEditor</Factory><Filename>$WS_DIR$\..\main.c</Filename><XPos>0</XPos><YPos>0</YPos><SelStart>0</SelStart><SelEnd>0</SelEnd><XPos2>0</XPos2><YPos2>49</YPos2><SelStart2>3128</SelStart2><SelEnd2>3128</SelEnd2></Tab><ActiveTab>2</ActiveTab><Tab><Factory>TextEditor</Factory><Filename>$WS_DIR$\..\lib\uip\netdev.c</Filename><XPos>0</XPos><YPos>0</YPos><SelStart>0</SelStart><SelEnd>0</SelEnd><XPos2>0</XPos2><YPos2>60</YPos2><SelStart2>2696</SelStart2><SelEnd2>2696</SelEnd2></Tab></Pane><ActivePane>0</ActivePane><Sizes><Pane><X>1000000</X><Y>1000000</Y></Pane></Sizes><SplitMode>1</SplitMode></Editor>
<Pane><Tab><Factory>TextEditor</Factory><Filename>$WS_DIR$\..\led.c</Filename><XPos>0</XPos><YPos>0</YPos><SelStart>0</SelStart><SelEnd>0</SelEnd><XPos2>0</XPos2><YPos2>45</YPos2><SelStart2>3072</SelStart2><SelEnd2>3072</SelEnd2></Tab><Tab><Factory>TextEditor</Factory><Filename>$WS_DIR$\..\boot.c</Filename><XPos>0</XPos><YPos>0</YPos><SelStart>0</SelStart><SelEnd>0</SelEnd><XPos2>0</XPos2><YPos2>45</YPos2><SelStart2>1098</SelStart2><SelEnd2>1098</SelEnd2></Tab><Tab><Factory>TextEditor</Factory><Filename>$WS_DIR$\..\main.c</Filename><XPos>0</XPos><YPos>0</YPos><SelStart>0</SelStart><SelEnd>0</SelEnd><XPos2>0</XPos2><YPos2>49</YPos2><SelStart2>3128</SelStart2><SelEnd2>3128</SelEnd2></Tab><Tab><Factory>TextEditor</Factory><Filename>$WS_DIR$\..\lib\uip\netdev.c</Filename><XPos>0</XPos><YPos>0</YPos><SelStart>0</SelStart><SelEnd>0</SelEnd><XPos2>0</XPos2><YPos2>84</YPos2><SelStart2>4509</SelStart2><SelEnd2>4509</SelEnd2></Tab><ActiveTab>3</ActiveTab><Tab><Factory>TextEditor</Factory><Filename>$WS_DIR$\..\net.c</Filename><XPos>0</XPos><YPos>0</YPos><SelStart>0</SelStart><SelEnd>0</SelEnd><XPos2>0</XPos2><YPos2>68</YPos2><SelStart2>4367</SelStart2><SelEnd2>4367</SelEnd2></Tab></Pane><ActivePane>0</ActivePane><Sizes><Pane><X>1000000</X><Y>1000000</Y></Pane></Sizes><SplitMode>1</SplitMode></Editor>
<Positions>
<Top><Row0><Sizes><Toolbar-02acba70><key>iaridepm.enu1</key></Toolbar-02acba70></Sizes></Row0></Top><Left><Row0><Sizes><Wnd0><Rect><Top>-2</Top><Left>-2</Left><Bottom>621</Bottom><Right>297</Right><x>-2</x><y>-2</y><xscreen>155</xscreen><yscreen>168</yscreen><sizeHorzCX>96875</sizeHorzCX><sizeHorzCY>202899</sizeHorzCY><sizeVertCX>186875</sizeVertCX><sizeVertCY>752415</sizeVertCY></Rect></Wnd0></Sizes></Row0></Left><Right><Row0><Sizes/></Row0></Right><Bottom><Row0><Sizes><Wnd2><Rect><Top>-2</Top><Left>-2</Left><Bottom>162</Bottom><Right>1602</Right><x>-2</x><y>-2</y><xscreen>1604</xscreen><yscreen>164</yscreen><sizeHorzCX>1002500</sizeHorzCX><sizeHorzCY>198068</sizeHorzCY><sizeVertCX>104375</sizeVertCX><sizeVertCY>198068</sizeVertCY></Rect></Wnd2></Sizes></Row0></Bottom><Float><Sizes/></Float></Positions>
<Top><Row0><Sizes><Toolbar-02adba70><key>iaridepm.enu1</key></Toolbar-02adba70></Sizes></Row0></Top><Left><Row0><Sizes><Wnd1><Rect><Top>-2</Top><Left>-2</Left><Bottom>765</Bottom><Right>357</Right><x>-2</x><y>-2</y><xscreen>186</xscreen><yscreen>205</yscreen><sizeHorzCX>96875</sizeHorzCX><sizeHorzCY>203373</sizeHorzCY><sizeVertCX>186979</sizeVertCX><sizeVertCY>760913</sizeVertCY></Rect></Wnd1></Sizes></Row0></Left><Right><Row0><Sizes/></Row0></Right><Bottom><Row0><Sizes><Wnd3><Rect><Top>-2</Top><Left>-2</Left><Bottom>198</Bottom><Right>1922</Right><x>-2</x><y>-2</y><xscreen>1924</xscreen><yscreen>200</yscreen><sizeHorzCX>1002083</sizeHorzCX><sizeHorzCY>198413</sizeHorzCY><sizeVertCX>104167</sizeVertCX><sizeVertCY>198413</sizeVertCY></Rect></Wnd3></Sizes></Row0></Bottom><Float><Sizes/></Float></Positions>
</Desktop>
</Workspace>

View File

@ -62,12 +62,20 @@
/*---------------------------------------------------------------------------*/
void netdev_init(void)
{
unsigned long ulTemp;
unsigned long ulLinkTimeOut;
/* enable and reset the ethernet controller. */
SysCtlPeripheralEnable(SYSCTL_PERIPH_ETH);
SysCtlPeripheralReset(SYSCTL_PERIPH_ETH);
}
/*---------------------------------------------------------------------------*/
void netdev_init_mac(void)
{
struct uip_eth_addr macAddress;
unsigned long ulUser0, ulUser1;
unsigned long ulTemp;
unsigned long ulLinkTimeOut;
/* enable port F for ethernet LEDs.
* LED0 Bit 3 Output
* LED1 Bit 2 Output
@ -81,7 +89,6 @@ void netdev_init(void)
ETH_INT_RXOF | ETH_INT_TX | ETH_INT_TXER | ETH_INT_RX));
ulTemp = EthernetIntStatus(ETH_BASE, false);
EthernetIntClear(ETH_BASE, ulTemp);
/* initialize the ethernet controller for operation. */
EthernetInitExpClk(ETH_BASE, SysCtlClockGet());
/* configure the ethernet controller for normal operation.
@ -91,6 +98,9 @@ void netdev_init(void)
*/
EthernetConfigSet(ETH_BASE, (ETH_CFG_TX_DPLXEN | ETH_CFG_TX_CRCEN |
ETH_CFG_TX_PADEN));
/* enable the ethernet controller. */
EthernetEnable(ETH_BASE);
/* wait for the link to become active. */
ulTemp = EthernetPHYRead(ETH_BASE, PHY_MR1);
ulLinkTimeOut = TimeGet() + NETDEV_LINKUP_TIMEOUT_MS;
@ -106,16 +116,6 @@ void netdev_init(void)
break;
}
}
/* enable the ethernet controller. */
EthernetEnable(ETH_BASE);
}
/*---------------------------------------------------------------------------*/
void netdev_setmacaddr(void)
{
struct uip_eth_addr macAddress;
unsigned long ulUser0, ulUser1;
/* set the default MAC address */
macAddress.addr[0] = NETDEV_DEFAULT_MACADDR0;

View File

@ -39,8 +39,8 @@
#define __NETDEV_H__
void netdev_init(void);
void netdev_init_mac(void);
unsigned int netdev_read(void);
void netdev_send(void);
void netdev_setmacaddr(void);
#endif /* __NETDEV_H__ */

View File

@ -71,6 +71,9 @@ void NetInit(void)
/* initialize the network device */
netdev_init();
/* initialize the timer variables */
periodicTimerTimeOut = TimeGet() + NET_UIP_PERIODIC_TIMER_MS;
ARPTimerTimeOut = TimeGet() + NET_UIP_ARP_TIMER_MS;
/* initialize the uIP TCP/IP stack. */
uip_init();
/* set the IP address */
@ -81,13 +84,10 @@ void NetInit(void)
uip_ipaddr(ipaddr, BOOT_COM_NET_NETMASK0, BOOT_COM_NET_NETMASK1, BOOT_COM_NET_NETMASK2,
BOOT_COM_NET_NETMASK3);
uip_setnetmask(ipaddr);
/* set the MAC address */
netdev_setmacaddr();
/* initialize the timer variables */
periodicTimerTimeOut = TimeGet() + NET_UIP_PERIODIC_TIMER_MS;
ARPTimerTimeOut = TimeGet() + NET_UIP_ARP_TIMER_MS;
/* start listening on the configured port for XCP transfers on TCP/IP */
uip_listen(HTONS(BOOT_COM_NET_PORT));
/* initialize the MAC and set the MAC address */
netdev_init_mac();
} /*** end of NetInit ***/

View File

@ -39,6 +39,13 @@
#include "netdev.h"
#include "uip.h"
#include "uip_arp.h"
#include "inc/hw_memmap.h"
#include "inc/hw_types.h"
#include "inc/hw_ethernet.h"
#include "driverlib/sysctl.h"
#include "driverlib/gpio.h"
#include "driverlib/ethernet.h"
#include "driverlib/flashlib.h"
#endif
@ -97,6 +104,9 @@ void NetInit(void)
/* initialize the network device */
netdev_init();
/* initialize the timer variables */
periodicTimerTimeOut = TimerGet() + NET_UIP_PERIODIC_TIMER_MS;
ARPTimerTimeOut = TimerGet() + NET_UIP_ARP_TIMER_MS;
/* initialize the uIP TCP/IP stack. */
uip_init();
/* set the IP address */
@ -117,13 +127,10 @@ void NetInit(void)
BOOT_COM_NET_NETMASK3);
#endif
uip_setnetmask(ipaddr);
/* set the MAC address */
netdev_setmacaddr();
/* initialize the timer variables */
periodicTimerTimeOut = TimerGet() + NET_UIP_PERIODIC_TIMER_MS;
ARPTimerTimeOut = TimerGet() + NET_UIP_ARP_TIMER_MS;
/* start listening on the configured port for XCP transfers on TCP/IP */
uip_listen(HTONS(BOOT_COM_NET_PORT));
/* initialize the MAC and set the MAC address */
netdev_init_mac();
} /*** end of NetInit ***/