Skip to main content
Explorer
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

 

 

 

    This topic has been closed for replies.

    3 replies

    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,

    Explorer
    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.