Skip to main content
Associate II
May 29, 2025
Question

How to use LWIP Ethernet middelware using freertos on the stm32f769

  • May 29, 2025
  • 3 replies
  • 554 views

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

Andrew Neil
Super User
May 29, 2025
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.
ST Employee
May 29, 2025

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,

Associate II
May 31, 2025

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.