Skip to main content
Explorer
November 5, 2023
Solved

Need Help with RX ETH using HAL

  • November 5, 2023
  • 1 reply
  • 1263 views

Hi!!!

Need assist. 2 boards with stm32F439 (Nucleo boards) direct connect

1 board send packet (every 1 sec) using function:

HAL_ETH_Transmit(&heth, &txConfig, HAL_MAX_DELAY);

ok. packed succes captured and verified with WireShark, no errors.

Try receive this packet with 2nd board.

When i receive RX_COMPLETE Callback what i need to do?

I was try HAL_ETH_ReadData(heth,&ptp_frame_incoming);

But it filled 0x00 and after 4 frames (ETH_RX_DESC_CNT) i have ERROR_Callback  with DMA errors;( with every next incoming frames.

Please help to receive frames from ethernet with HAL

    This topic has been closed for replies.
    Best answer by User25

    Please close. Problem was found and fixed.

    void MY_ETH_RxAllocCallback (uint8_t **buffer),

    void MY_ETH_RxLinkCallback(void **pStart, void **pEnd, uint8_t *buff,uint16_t Length)

    need process for data receiving.

    1 reply

    User25AuthorAnswer
    Explorer
    November 5, 2023

    Please close. Problem was found and fixed.

    void MY_ETH_RxAllocCallback (uint8_t **buffer),

    void MY_ETH_RxLinkCallback(void **pStart, void **pEnd, uint8_t *buff,uint16_t Length)

    need process for data receiving.