The problem is related to an unlucky sequence of machine instructions actually found in pbuf_header's code (!). Removing the data cache or changing the size (diff. from 32 bytes) will help. ALtera does oalso provide a fix.
But; the Altera fix didn't help me for some reason which I don't know. I did remove the cache entirely. If you are able to make thins work after installing the Altera fix, please inform me.
Jan Ulvesten
Senior Software Engineer
SICOM AS
-----Original Message-----
From: Etienne Lanoy [mailto:address@hidden]
Sent: 7. april 2006 08:48
To: Mailing list for lwIP users
Subject: SPAM? [lwip-users] Pbuf assertion failure
Yes I'm using Altera Nios but I have search the patch for the Data cache
bug but
I've not found it.
I'm very desagree because in all my software I do the same action
tcp_write and after
tcp_output. There is no problem. Maybe something is broken in my
software but
I haven't any idea what can produce this assertion failure.
I thank you a lot for your help.
Best regards,
Etienne
Jan Ulvesten a écrit:
Are you running Altera/Nios II?
If yes, check out Altera website and/or niosforum.com. There is a
problem with the Nios II data cache. A patch is available (to the IDE).
Jan Ulvesten
Senior Software Engineer
SICOM AS
Tel +47 72 89 56 55
Fax +47 72 89 56 51
Mob +47 416 62 033
-----Original Message-----
From: Etienne Lanoy [mailto:address@hidden]
Sent: 6. april 2006 14:21
To: address@hidden
Subject: SPAM? [lwip-users] Pbuf assertion failure
Hello,
I've a problem with an assertion in the file pbuf.c :
In the function pbuf_free, the assertion
LWIP_ASSERT("pbuf_free: sane flags",
p->flags == PBUF_FLAG_RAM || p->flags == PBUF_FLAG_ROM ||
p->flags == PBUF_FLAG_REF || p->flags == PBUF_FLAG_POOL);
occur.
Before that I have done a tcp_write and a tcp_output
I've never see it before. Do you know what's happend ?
I use it all arround my software and in my new piece of code I'm writing
fail this assertion...
I don't understand.
I thank you a lot.
Etienne
_______________________________________________
lwip-users mailing list
address@hidden
http://lists.nongnu.org/mailman/listinfo/lwip-users
_______________________________________________
lwip-users mailing list
address@hidden
http://lists.nongnu.org/mailman/listinfo/lwip-users