cancel
Showing results for 
Search instead for 
Did you mean: 

How to use LWIP Ethernet middelware using freertos on the stm32f769

vamshi_kumar
Associate II

Hello Team,

I have configured the lwip middleware but unable to ping with my laptop and when I connect ethernet cable from laptop to the stm32f769 controller I  am getting pbuf error (Assertion "pbuf_free: p->ref > 0").

Is there any need to configure MPU, if so also please let me know how to select base address..

please find the attached screenshots.

could you please help me in configuration when freertos is enabled.

 

Thanks

vamshi kumar

 

 

 

3 REPLIES 3
Andrew Neil
Super User

https://community.st.com/t5/stm32-mcus/how-to-create-a-project-for-stm32h7-with-ethernet-and-lwip-stack/ta-p/49308

https://community.st.com/t5/stm32-mcus/how-to-use-the-lwip-ethernet-middleware-on-the-stm32h5-series/ta-p/691100

A complex system that works is invariably found to have evolved from a simple system that worked.
A complex system designed from scratch never works and cannot be patched up to make it work.
ASEHST
ST Employee

Hello @vamshi_kumar,

Thank you for your report. 

This article might help you: How to create a project for STM32H7 with Ethernet ... - STMicroelectronics Community

you can follow the same steps for your STM32F769. Additionally, you can find examples in the STM32CubeF7 here: STM32CubeF7/Projects/STM32F769I-Discovery/Applications/LwIP at master · STMicroelectronics/STM32CubeF7

 

With Regards,

If your question is answered, please close this topic by clicking "Accept as Solution".
vamshi_kumar
Associate II

Hello Team,

As per the links provided in the above mail I have configured, but still I am getting the issue.

When I am trying to receive the data the controller is entering into infinite  for loop.

 

/* xQueueGenericSendFromISR() should be used instead of xQueueGiveFromISR()

if the item size is not 0. */

configASSERT( pxQueue->uxItemSize == 0 );

 

#define configASSERT( x ) if ((x) == 0) {taskDISABLE_INTERRUPTS(); for( ;; );}

 

please find the attached screenshot.

could you please help me.