[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lwip-users] initialisation of lwIP
From: |
franz keuner |
Subject: |
[lwip-users] initialisation of lwIP |
Date: |
Thu, 23 Dec 2004 15:45:05 +0100 (MET) |
Hello,
I tried the proposed values but the result is always the same. (Assertion
"mem_malloc: !lfree->used" failed; "mem_malloc: allocated memory not above
ram_end.""mem_malloc: allocated memory properly aligned.")
>> #define MEM_SIZE 2000U
>Maybe this is too small, try 3000U.
>> #define PBUF_POOL_SIZE 24U
>> #define PBUF_POOL_BUFSIZE 500U
>This is too small, try at least 590U. This is chosen to fit
>the minimum packet size an IP host must handle! (plus MAC frame)
I also changed my makefile and tried different build orders. The makefile
order I`m using at the moment is listed below.
The environment is Tasking Embedded Development Environment (EDE) v.2.7r5,
Selected Toolchain
Tasking Tools for C166/ST10 v7.5r5.
I couldn`t find any information concerning lwIP, the Tasking linker and my
problem.
I list a few settiings I made in the Tasking EDE. Maybe there`s something
not appropriate.
EDE -> CPU Configuration -> Advanced -> Syscon: 0004h
EDE -> C Compiler options -> Code Generation (Memory Modell) -> Small
EDE -> Linker Locator Options -> Format Options -> 16hex record
EDE -> Linker Locator Options -> Memory -> ROM areas-> 0h-0DFFFh,
010000h-03FFFFh
EDE -> Linker Locator Options -> Memory -> RAM areas-> 200000h-27FFFFh
I tried different settiings but the board either responds always with the
described messages or the linking process isn't executable.
The board phyCORE-167 HS/E:
Infineon C167CS
Cirrus Logic CS8900A Ethernet controller
512 KB SRAM
256 KB Flash
16-Bit multiplexed mode
I took the values of the BUSCON/ADDRSEL registers from the manual.
So i always get the same messages whatever I tried so far...
Regrards and thanks,
Franz
tasking makefile (abridged) :
# TASKING EDE (Windows based integrated Embedded Development Environment)
# This makefile has been generated by TASKING EDE
# Toolchain: TASKING Tools for C166/ST10 v7.5 r5
BINDIR = d:\bin\c166\bin
INCDIR =
d:\bin\c166\include;c:\scr_lwip\c16x\include;c:\scr_lwip\lwip\src\include;c:\scr_lwip\lwip\src\include\ipv4
LIBDIR = d:\bin\c166\lib
M166INC =
d:\bin\c166\include;c:\scr_lwip\c16x\include;c:\scr_lwip\lwip\src\include;c:\scr_lwip\lwip\src\include\ipv4
export M166INC
CC166BIN = d:\bin\c166\bin
export CC166BIN
OPT_IHEX=-i16
PROJ = lwip
PROJDIR = c:\scr_lwip\tasking
PRODDIR = d:\bin\c166
OUTDIR =
OPT_CC = -Wcp-I"d:\bin\c166\include" -Wcp-I"c:\scr_lwip\c16x\include"
-Wcp-I"c:\scr_lwip\lwip\src\include"
-Wcp-I"c:\scr_lwip\lwip\src\include\ipv4" -Wc-I"d:\bin\c166\include"
-Wc-I"c:\scr_lwip\c16x\include" -Wc-I"c:\scr_lwip\lwip\src\include"
-Wc-I"c:\scr_lwip\lwip\src\include\ipv4" -Wc-xmifp -DCPUTYPE=0x167 -Ms
-Wc-FSC -noc++ -Wc-OB -Wc-OE -Wc-zautobitastruct-4 -Wc-zautobita-0
-Wc-zswitch_tabmem_default -Wc-s -tmp -Wc-g -Wc-zvolatile_union -Wc-A1
-Wc-O1 -WaPR -WaPL(60) -WaPW(132) -WaTA(8) -WaWA(1) -WaEXTEND -WaNOM166
-WaSN(reg167.def)
OPT_MPP = @'_lwip.inc' WA(1)
OPT_LC = "_lwip.ilo" -cf -trap -libfmtiol -Ms -xmifp
all : $(PROJ).hex
start.src
mem.obj
memp.obj
pbuf.obj
netif.obj
etharp.obj
cs8900if.obj
inet.obj
stats.obj
sys.obj
ip.obj
ip_addr.obj
icmp.obj
tcp.obj
tcp_in.obj
tcp_out.obj
udp.obj
serio.obj
main.obj
$(PROJ).out : start.obj mem.obj memp.obj pbuf.obj netif.obj etharp.obj
cs8900if.obj inet.obj
$(PROJ).out : stats.obj sys.obj ip.obj ip_addr.obj icmp.obj tcp.obj
tcp_in.obj tcp_out.obj udp.obj
$(PROJ).out : serio.obj main.obj _lwip.ilo
$(PROJ).hex : $(PROJ).out
--
+++ Sparen Sie mit GMX DSL +++ http://www.gmx.net/de/go/dsl
AKTION für Wechsler: DSL-Tarife ab 3,99 EUR/Monat + Startguthaben