Skip to main content
Visitor II
August 11, 2020
Solved

Can somebody provide any tutorial to use the ethernet peripheral on STM32F439 to send raw ethernet frames with no lwIP involved .

  • August 11, 2020
  • 2 replies
  • 946 views

I am trying to learn ether net programming , but i find it very difficult to acquire resources online for ether net programming on stm32 .Please help me out

    This topic has been closed for replies.
    Best answer by Tesla DeLorean

    LwIP simply layers on top of the underlying transport code.

    Look at how it dispatches frames.

    Most of the HAL library is considered self-documenting

    STM32Cube_FW_F4_V1.25.0\Drivers\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_eth.c

    HAL_ETH_TransmitFrame()

    STM32Cube_FW_F4_V1.25.0\Projects\STM324x9I_EVAL\Applications\LwIP\LwIP_IAP\Src\ethernetif.c

    low_level_output(struct netif *netif, struct pbuf *p)

    >>.. i find it very difficult to acquire resources online

    Unfortunately support has no perceived value anymore..

    2 replies

    Graduate II
    August 11, 2020

    LwIP simply layers on top of the underlying transport code.

    Look at how it dispatches frames.

    Most of the HAL library is considered self-documenting

    STM32Cube_FW_F4_V1.25.0\Drivers\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_eth.c

    HAL_ETH_TransmitFrame()

    STM32Cube_FW_F4_V1.25.0\Projects\STM324x9I_EVAL\Applications\LwIP\LwIP_IAP\Src\ethernetif.c

    low_level_output(struct netif *netif, struct pbuf *p)

    >>.. i find it very difficult to acquire resources online

    Unfortunately support has no perceived value anymore..

    Super User
    August 11, 2020

    Find a ST eval. board which has LwIP examples in its Cube package. Pick an example, build it, run it.

    When it works, throw LwIP out.

    Also, get proper tools: wireshark or something better.

    -- pa