---
title: "Ethernet"
canonical_url: https://developer.repebble.com/pebbleos/docs/drivers/ethernet/
last_updated: 2026-12-02
sdk_version: 4.44
---
# Ethernet

Source: https://developer.repebble.com/pebbleos/docs/drivers/ethernet/

An Ethernet controller with its PHY. Frames go in and out by copy: the user hands a frame to send in pieces, which the driver gathers into buffers of its own, and receives each frame into a buffer of the user’s, so the controller’s DMA memory never leaves the driver. Frames exclude the preamble and the FCS, which the controller adds and checks.

The driver checks each received frame before handing it out, and drops those with a receive error, a bad FCS, a length out of range or spread over several buffers: what reaches the user is a whole frame of a sane length.

The controller says frames are waiting, or that room to send came back, from its interrupt; the user receives and sends from a thread. It reports the link coming up or going down once it matches the speed and duplex of the PHY.

A controller may offload work, as its capabilities say: one with `PBL_ETH_CAP_TX_CSUM` inserts the IPv4 header checksum and the TCP, UDP, ICMP or ICMPv6 checksum of IP packets without extension headers, sent with `PBL_ETH_TX_CSUM` and those checksums left zero.

The MAC address is the one the driver gives, or else is derived from the microcontroller’s unique ID: a locally administered address that stays the same across boots.

| 

 | 

 |
| --- | --- |
| 

Directory

 | 

`drivers/net/ethernet`

 |
| 

Header

 | 

`pbl/drivers/net/ethernet.h`

 |
| 

Kconfig

 | 

`CONFIG_ETHERNET`

 |
| 

Role

 | 

`ethernet`

 |
| 

API

 | 

[API reference](https://developer.repebble.com/pebbleos/apidoc/d5/dc4/group __drivers__ ethernet.html)

 |

## Drivers

| 

Driver

 | 

Compatible

 | 

Kconfig

 |
| --- | --- | --- |
| 

DesignWare Ethernet QoS, STM32

 | 

`st,stm32-dwmac`

 | 

`CONFIG_ETH_DWMAC_STM32`

 |

The DesignWare Ethernet QoS driver keeps its descriptors in memory the data cache does not hold, and a buffer of a whole frame per descriptor, `CONFIG_ETH_DWMAC_RX_BUFS` to receive and `CONFIG_ETH_DWMAC_TX_BUFS` to send. It inserts the checksums of the frames sent with `PBL_ETH_TX_CSUM`. DMA bursts are as long as `snps,pbl` says, 8 by default, in units of 8 beats unless `snps,no-pbl-x8` is set. Each SoC adds its glue around the MAC: on the STM32 it selects the interface to the PHY in SYSCFG, and keeps the system out of Stop while started, as the MAC clocks stop there.

Generated from PebbleOS [f1984a001](https://github.com/coredevices/pebbleos/commit/f1984a001b27aa6a2517856e76850da6994c27cd). This page is maintained in the pebbleos repository: [docs/drivers/ethernet.md](https://github.com/coredevices/pebbleos/blob/f1984a001b27aa6a2517856e76850da6994c27cd/docs/drivers/ethernet.md).
