STM32H5 transmit/receive raw IEEE 802.3 ethernet frames
Hi,
Thanks in advance for your attention.
I'm wondering if any examples are available about transmit and receive raw ethernet frames.
The examples in STM32CubeH5 use the TCP/IP stack NetXDuo and transmit packets built on the upper layers of the stack and pass received packets to the upper layers.
How could I transmit/receive single raw ethernet frames to handle a custom layer 2 protocol?
Comparing with what is done by NetXDuo:
- In transmission (as in _nx_driver_hardware_packet_send) I could build the ETH_BufferTypeDef with the next pointer to NULL and send a single buffer?
- In reception (as in _nx_driver_hardware_packet_received) in HAL_ETH_ReadData, the HAL_ETH_RxLinkCallback must be implemented to chain all received packets from the Rx Descriptors? Is not possible to receive and process a single ethernet frame? It's confusing to me... And what is the purpose of HAL_ETH_RxAllocateCallback, should it be implemented?
- An alternative could be handling a custom layer 2 protocol in NetxDuo? Is it possible?
Thanks,
Best Regards.
Luca
