Skip to main content
Associate
Nov 5, 2023 1:30 PM UTC
Solved

Need Help with RX ETH using HAL

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.
User25Best answer
Associate
Nov 5, 2023 10:56 PM UTC

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

User25AuthorBest answer
Associate
Nov 5, 2023 10:56 PM UTC

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.