Re: [lwip-users] fragmentation failure with stm32 if length > 1704

2019-12-18 Thread ranran
Hi,

I've solved this issue after increasing size as was suggested here. Thanks !
(The issue was also posted here:
https://community.st.com/s/question/0D50XBozSc5SQE/ethernet-fragmentation-issues)

Yet, whenever lwip receives (from PC) big packet , above its limit, it gets
into exception as was described above.

This seems like a high security issue.

Any idea how it can be solved ?

Thanks



--
Sent from: http://lwip.100.n7.nabble.com/lwip-users-f3.html

___
lwip-users mailing list
lwip-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/lwip-users

Re: [lwip-users] fragmentation failure with stm32 if length > 1704

2019-12-15 Thread ranran
Hello,

We see the using packets above ~6000 bytes, lwip get into  unaligned access
exception (it first does not respond to the ~6000 packet from PC, and then
after several seconds , or after sending a small packet again, it gets into
this exception:
->lwip_cyclic_timer
->ip_reass_tmr
->ip_reass_free_complete_datagram
->iprh = (struct ip_reass_helper *)p->payload;
Is this functional issue a chip issue or lwip issue ? 

I am using latest CubeH7 (ver 1.5) , which also includes the udp echo
example.

Thing I've tried:
1. CubeH7 1.5 comes with lwip 2.0.3, I've tried to upgrade to lwip 2.1.2,
but it did not change result.
2. I have tried to increase PBUF various size, but it did not help, I am not
sure why.

This issue can very easily be reproduced with eval or nucleo board for
stm32h7.

Thank you for any idea,
Ran 





--
Sent from: http://lwip.100.n7.nabble.com/lwip-users-f3.html

___
lwip-users mailing list
lwip-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/lwip-users

[lwip-users] fragmentation failure with stm32 if length > 1704

2019-12-11 Thread Ranran
Hello,

I use a simple echo udp example for STM32 Hal , with stm32h743 EVAL.
I encounter exception (it shows as unaligned exception, but the
address is not anything we allocated.

This failure happen if I increase the packet size from 1704 to 1744 !

tcip_thread->tcip_timeouts_mbox_fetch->sys_check_timeouts->lwip_cyclic_timer->ip_reass_timr->ip_reass_free_complete_datagram
exception error of type unaligned access.

I tried to increase various  size in lwipopts.h but nothing helps.

Is it stm32 issue ?
Any idea ?

Thanks,
ranran

___
lwip-users mailing list
lwip-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/lwip-users

Re: [lwip-users] udp echo stress test with LWIP - crash LWIP

2019-10-30 Thread Ranran
On Wed, Oct 30, 2019 at 11:55 AM Mário Luzeiro  wrote:
>
> > I noticed that with RTOS lwip get crash
>
> I had some experiences with freeRTOS, it crashed when there is task 
> starvation or it could be some interrupt priority issues.
> Where is it crashing? should be blocked somewhere...

It's seem like only LWIP stack/threads stopped responding, it is not a
crash of freeRTOS, because everything else behaves normally.
As far as I know there is only one thread in my LWIP, named tcpip thread.


>
> Mario Luzeiro
>
> 
> From: lwip-users  on behalf of 
> Ranran 
> Sent: 30 October 2019 07:28
> To: Mailing list for lwIP users
> Subject: [lwip-users] udp echo stress test with LWIP - crash LWIP
>
> Hello,
>
> I am using LWIP with stm32, running udp server echo in my board.
> From pc I run udp client stress test.
> I noticed that with RTOS lwip get crash (it even can't ping anymore,
> after stopping the stress test), but without RTOS it behaves without
> any issues.
> Thing I tried:
> 1. compiled the application with speed optimization
> 2. changing tcpip thread priority from high to realtime.
>
> I can't say what exactly happened to LWIP which caused it to stop
> responding to ping.
>
> Is there any idea what else we can do or how to debug this issue ?
>
> Thanks,
> Ran
>
> ___
> lwip-users mailing list
> lwip-users@nongnu.org
> https://lists.nongnu.org/mailman/listinfo/lwip-users
>
> ___
> lwip-users mailing list
> lwip-users@nongnu.org
> https://lists.nongnu.org/mailman/listinfo/lwip-users

___
lwip-users mailing list
lwip-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/lwip-users

[lwip-users] udp echo stress test with LWIP - crash LWIP

2019-10-30 Thread Ranran
Hello,

I am using LWIP with stm32, running udp server echo in my board.
From pc I run udp client stress test.
I noticed that with RTOS lwip get crash (it even can't ping anymore,
after stopping the stress test), but without RTOS it behaves without
any issues.
Thing I tried:
1. compiled the application with speed optimization
2. changing tcpip thread priority from high to realtime.

I can't say what exactly happened to LWIP which caused it to stop
responding to ping.

Is there any idea what else we can do or how to debug this issue ?

Thanks,
Ran

___
lwip-users mailing list
lwip-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/lwip-users

[lwip-users] using lwip with static memory

2019-04-03 Thread Ranran
Hello,

Is it possible to use lwip with static memory ?
We need to use lwip with safertos (safertos does not support heap).

Is it done by enabling MEM_USE_POOLS=1

Thanks,
ran

___
lwip-users mailing list
lwip-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/lwip-users


[lwip-users] Can we use both NETCONN & SOCKET ?

2019-04-03 Thread Ranran
Hello,

Is it legal to enable both LWIP_NETCONN and LWIP_SOCKET ?

Thanks,
ran

___
lwip-users mailing list
lwip-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/lwip-users


[lwip-users] why ping utility was removed ?

2019-03-27 Thread Ranran
Hello,

Does anyone knows why ping.c utility was removed from lwip ?
I only found it in older lwip versions.

Thank you,
ran

___
lwip-users mailing list
lwip-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/lwip-users


[lwip-users] example for using ping ?

2019-03-03 Thread Ranran
Hello,

Using latest lwip from git, I can't find anymore ping.c application.
How can we send ping with latest version ?

Thanks,
ran

___
lwip-users mailing list
lwip-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/lwip-users


Re: [lwip-users] multiple ports/interfaces

2018-10-07 Thread Ranran
On Sun, Oct 7, 2018 at 11:52 AM goldsimon  wrote:
>
>
>
> Ranran wrote:
> >On Thu, Oct 4, 2018 at 9:28 PM goldsi...@gmx.de 
> >wrote:
> >>
> >> On 04.10.2018 17:14, Ranran wrote:
> >> > Does lwip support using multiple ports (physical interface) ?
> >>
> >> Yes. Do you want a single IP address or each netif with its own IP?
> >> For a single IP address, you need something like a switch (see
> >> bridgeif.c for a start).
> >>
> >
> >I need to have each netif with its own IP.
>
> That's no problem. You only might get routing problems when the two netifs 
> are in the same subnet.
>
> >> > Is there any example showing how we should configure more than one
> >port?
> >>
> >> That depends on the above question.
> >>
> >Is there a simple example for multiple netif each with itw own IP ?
>
> No. Just call netif_add etc. for each netif.
>

I understand.
Should I than do bind to a specific ip address (according to netif),
in order to bind the socket to the netif  interface?

Thank you,
ranran

>
> Simon
>
> ___
> lwip-users mailing list
> lwip-users@nongnu.org
> https://lists.nongnu.org/mailman/listinfo/lwip-users

___
lwip-users mailing list
lwip-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/lwip-users


Re: [lwip-users] multiple ports/interfaces

2018-10-07 Thread Ranran
On Thu, Oct 4, 2018 at 9:28 PM goldsi...@gmx.de  wrote:
>
> On 04.10.2018 17:14, Ranran wrote:
> > Does lwip support using multiple ports (physical interface) ?
>
> Yes. Do you want a single IP address or each netif with its own IP?
> For a single IP address, you need something like a switch (see
> bridgeif.c for a start).
>

I need to have each netif with its own IP.

> > Is there any example showing how we should configure more than one port?
>
> That depends on the above question.
>
Is there a simple example for multiple netif each with itw own IP ?

Thank you very much,
ranran

>
> Simon
>
> ___
> lwip-users mailing list
> lwip-users@nongnu.org
> https://lists.nongnu.org/mailman/listinfo/lwip-users

___
lwip-users mailing list
lwip-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/lwip-users


[lwip-users] multiple ports/interfaces

2018-10-04 Thread Ranran
Hello,

Does lwip support using multiple ports (physical interface) ?

Is there any example showing how we should configure more than one port ?

Thank you,
ranran

___
lwip-users mailing list
lwip-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/lwip-users