STM32H743ZI LWIP TCP/IP EchoClient Example
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2019-06-25 5:26 AM
I am sorry that I am not good at English.
Hi.
I use the stm32h743zi mcu.
I ported stm32h743i-val lwip tcp echo server and client application
server application was well working but client was not working
ping test was not responed.
my firmware flow is this
lwip init -> tcp_echoclient init -> lwip process
i don't use RTOS
- Labels:
-
Ethernet
-
STM32H7 series
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-08-05 4:37 AM
Hi Piranha,
thank You for the answer.
I am trying to implemented recommended changes, but I am not able to do them all. I am using stm32f417 chip. I am generating cubeMX project with RTOS and LWIP with firmware package STM32Cube_FW_F4_V1.25.0 and cubeMX version 5.6.1
from the list You provided:
I have added these modifications:
1.
i added ad the end of function MX_LWIP_Init() in the lwip.c:
ETH->MACIMR = ETH_MACIMR_TSTIM | ETH_MACIMR_PMTIM;
ETH->MMCRIMR = ETH_MMCRIMR_RGUFM | ETH_MMCRIMR_RFAEM | ETH_MMCRIMR_RFCEM;
ETH->MMCTIMR = ETH_MMCTIMR_TGFM | ETH_MMCTIMR_TGFMSCM | ETH_MMCTIMR_TGFSCM;
2.
I added function MPU_Config() and call it at the end of main function inicialization.
void MPU_Config(void)
{
MPU_Region_InitTypeDef MPU_InitStruct;
/* Disables the MPU */
HAL_MPU_Disable();
/**Initializes and configures the Region and the memory to be protected
*/
MPU_InitStruct.Enable = MPU_REGION_ENABLE;
MPU_InitStruct.Number = MPU_REGION_NUMBER2;
...
The rest I am not able to identify what exactly should i change and where.
1.
from the point:
https://community.st.com/s/question/0D50X0000C4Nk4GSQS/bug-missing-compiler-and-cpu-memory-barriers
I cannot locate OWN bit so i do not know where to add __DMB()
2.
this is very confusion, no clue what should be done.
3.
this one is last one applicable for stm32f4
lwIP API related:
- Code made by ST is not thread-safe. When used with RTOS, it generally ignores lwIP requirements described in Common pitfalls and Multithreading. IP stack initialization, Ethernet link status and DHCP processing code are all broken in this regard.
- Improper use of netif up/down status. The meaning of NETIF_FLAG_UP flag changed in v2.0.0, but ST's code is not updated. For a link status NETIF_FLAG_LINK_UP flag must be used.
- Improper use of DHCP client. The code is for an outdated version of DHCP client.
I use fixed IP address, so no DHCP is used.
anybody could help please?
Thank You.
Peter
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-08-06 12:50 AM
Could enyone help please? I really cannot move from this place.
Thank You.
Peter
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-08-07 5:58 AM
Hi ST comunity, could somebody please provide CubeMX file with RTOS and LWIP properly setup for stm32f4* chip ,that will generate project, which i could use for running TCP client?
Thank You.
Peter
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-08-09 6:14 AM
ST Community,
I am stuck at TCP client for STM32f4. Could anybody please give me working example for the STM32f4 chip family?
Thanks a lot!
Peter
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-08-10 1:00 AM

- « Previous
-
- 1
- 2
- Next »