2018-03-23 03:30 AM
CubeMX4.25 + STM32H743 + LwIP2.03
2018-03-23 05:38 AM
The first thing is to find what's limiting the speed ...
2018-03-23 06:45 AM
Profiling the code, and instrumenting the IRQ handler might provide insight.
I'd presume there is a lot of serialized mentality in the examples. Look for examples using threaded execution and that can handle a lot of inflight packets efficiently.
You might also try other stacks.
Note that 192.168.xxx.xxx addresses are LOCAL, millions of people use these same address ranges in there local networks and on routers, they aren't secret or accessible from the greater internet.
2018-03-23 06:56 AM
Clive One wrote:
You might also try other stacks.
Indeed.
Remember that the 'Lw' in
Lw
IP stands for Lightweight. So the key focus of this stack is on code economy - not necessarily on performance...EDIT
Also remember that LwIP is an independent 3rd-party tool - nothing specifically to do with ST.
For LwIP info & support, see:
https://savannah.nongnu.org/projects/lwip/
It is widely used - so some general googling may reveal potential optimisations not related to ST ...
2018-03-24 05:10 PM
The first thing you should tune in lwipopts.h is the conservative MTU size and the appropiate parameters.
I modified the CubeMX xml file to have the right values for every new project.
2018-06-28 04:16 AM
Joerg Wagner wrote:
The first thing you should tune in lwipopts.h is the conservative MTU size and the appropiate parameters.
I modified the CubeMX xml file to have the right values for every new project.
What are the basic parameters that you tune in CubeMX to increase speed ? Can you share your settings or give an advice for CubeMX lwIP parameters?
2018-06-28 06:59 AM
Thank you for your reply. I adjusted some parameters and the speed is much better.
2018-06-28 07:13 AM
If you remember could you give some trick about which parameters i must adjust ?