An issue with the LWIP UDP RX buffer (STM32H753)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2023-03-20 10:52 AM
Hello, community.
So, we are using STM32F753 and activated the LWIP library from the CubeMx.
We use a UDP socket to send strings (used as commands for our own made CLI protocol).
When reading the Rx buffer in the STM, we see that the strings are sometimes received wrong.
For example, we send the following strings over the UDP (the content itself is not important):
"ver 4d" - Received correctly in the Rx buffer
"pwmgen 100 ef" - Received as "pwer" (some kind of a mix with the previous packet)
This mix causes misreading of the string and therefore the CLI protocol not working.
We hope to find some direction to the solution.
If any more details are needed, I'll be happy to provide them.
Thanks,
Raz
Solved! Go to Solution.
- Labels:
-
Ethernet
-
STM32CubeMX
-
STM32H7 Series
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2023-03-21 1:55 AM
Hello @rLand.2 and welcome to the Community :),
Please follow this article "Ethernet not working on STM32H7x3", it may resolve your problem.
Also, I advise you to take a look at this FAQ: How to create project for STM32H7 with Ethernet and LwIP stack working. This FAQ may help you to configure your project in STM32CubeMX .
I hope this help you!
Kaouthar
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2023-03-20 5:09 PM
Is D cache enabled? Do you flush & invalidate it properly? Search this forum for related threads.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2023-03-21 12:52 AM
Hi Pavel,
Can you elaborate on the D cache thing? where do I enable it and what does it do?
Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2023-03-21 1:08 AM
Your reply indicates that you are new to STM32F7 or Cortex-M7 generally. ST has a Programming Manual for their Cortex-M7 family, there you can find this information.
See also this document, it applies to STM32F7 too.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2023-03-21 1:27 AM
I mistakenly referred to F7, rather than H7 which is our processor.
I guess it doesn't really matter, but just FYI.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2023-03-21 1:55 AM
Hello @rLand.2 and welcome to the Community :),
Please follow this article "Ethernet not working on STM32H7x3", it may resolve your problem.
Also, I advise you to take a look at this FAQ: How to create project for STM32H7 with Ethernet and LwIP stack working. This FAQ may help you to configure your project in STM32CubeMX .
I hope this help you!
Kaouthar
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2023-03-21 5:02 AM
Ok, it seems the address configurations we have set were wrong and it looks better now in a demo.
We are now running the full application with the fix to fully test it and hopefully resolve this ticket :)
Thank you so much!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2023-03-22 3:42 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2023-03-22 3:47 AM
Hi @rLand.2 ,
Glad to know that the issue is already fixed :).
Thank you for your contribution in STCommunity.
Kaouthar
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2023-03-22 10:30 AM
> to fully test it
Regardless of the results the HAL/Cube is an unreliable broken bloatware anyway...
