2023-10-23 02:31 AM - last edited on 2023-10-23 08:42 AM by Amel NASRI
Hi.
I have a problem while using lwip and freertos.
The board is based on stm32h743vih.
The mpu configuration is done correctly i think.
My problem is after i start udp server and start to send data with udp, everything is ok, but after a while i will enter a loop in xQueueSemaphoreTake an in the configASSERT( pxQueue->uxItemSize == 0 ).
I searched a lot and i saw this:
https://community.st.com/t5/stm32cubemx-mcus/cubemx-lwip-ethernet-link-thread-bug/m-p/126556
I did what it said but this time when it happens im not in the loop but the other tasks get very slow and actually a task with osdelay(1) is executing every 1 second.
What should i do?
2023-10-25 01:59 AM - edited 2023-10-25 02:01 AM
Hello @Arman Ilmak ,
Could you please check the MPU and LWIP configurations, for that I recommend you to take a look to How to create project for STM32H7 with Ethernet an... - STMicroelectronics Community
Also, I advise you to start with an available example. I think this example can help you STM32H7-LwIP-Examples/STM32H743_Nucleo_ETH at main · stm32-hotspot/STM32H7-LwIP-Examples · GitHub.
I hope this help you to solve your issue.
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.
2023-10-30 05:18 AM
Ive done exact the same configuration.
But i see odd behavior.
When i config only eth with rtos and lwip i see hardfault.
But with the same eth configuration and just enabling uart (no other action just hal will call uart init)
i dont see hardfault and everything work fine.
Im really confused.
2023-12-29 09:46 PM
2024-10-07 07:45 PM
I'm also having this issue with my STM32H725ZGT6, but not my STM32H723 Nucleo board, does anyone have any updates on this issue?
2024-10-08 08:00 AM - edited 2024-10-08 08:02 AM
Hello @jackmh and welcome to the Community,
Could you please share FreeRTOSConfig.h file?
Are you use FreeRTOS with CMSIS_V1 or CMSIS_V2?
Could you please create a dedicated thread with a detailed description for your issue.
Thank 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.
2024-10-27 06:38 PM
Sorry for the delayed response, it turned out to simply be not giving the default task enough memory. 512+ Words seems to be needed.