Hardware resource relating to driver instance is shown in the table below:
| Driver Instance | Hardware Resource |
|---|---|
| Driver_ETH_MAC0 | EMAC |
Descriptor and data buffers location:
Definitions used for compile-time configuration of this driver are shown in the table below:
| Definition | Default value | Value | Description |
|---|---|---|---|
| EMAC_CHECKSUM_OFFLOAD | 1 | 1 | Receive/transmit Checksum offload: enabled |
| 0 | Receive/transmit Checksum offload: disabled | ||
| EMAC_TIME_STAMP | 0 | 1 | IEEE 1588 time stamping (PTP): enabled |
| 0 | IEEE 1588 time stamping (PTP): disabled |
The CMSIS-Driver EMAC requires:
These settings are relevant for this board, for different board please refer to the board schematic for proper configuration.
Link to NUCLEO-H563ZI board schematic.
Required peripherals for the NUCLEO-H563ZI board are listed in the table below:
| Peripheral | Mode | Description |
|---|---|---|
| ETH | RMII | ETH Controller |
| PA1 | Alternate Function Push Pull | ETH REF_CLK Pin |
| PA2 | Alternate Function Push Pull | ETH MDIO Pin |
| PA7 | Alternate Function Push Pull | ETH CRS_DV Pin |
| PB15 | Alternate Function Push Pull | ETH TXD1 Pin |
| PC1 | Alternate Function Push Pull | ETH_MDC Pin |
| PC4 | Alternate Function Push Pull | ETH RXD0 Pin |
| PC5 | Alternate Function Push Pull | ETH RXD1 Pin |
| PG11 | Alternate Function Push Pull | ETH TX_EN Pin |
| PG13 | Alternate Function Push Pull | ETH TXD0 Pin |
| Pin | Functionality |
|---|---|
| PA1 | ETH_REF_CLK |
| PA2 | ETH_MDIO |
| PA7 | ETH_CRS_DV |
| PB15 | ETH TXD1 |
| PC1 | ETH_MDC |
| PC4 | ETH RXD0 |
| PC5 | ETH RXD1 |
| PG11 | ETH TX_EN |
| PG13 | ETH TXD0 |
Under Categories: Connectivity select ETH:
Mode:
Configuration:
| General: Ethernet Configuration | Value |
|---|---|
| Ethernet MAC Address | unused |
| Tx Descriptor Length | 4 |
| Rx Descriptor Length | 4 |
| Rx Buffers Length | 1524 |
| Pin Name | Signal on Pin | Pin Context.. | GPIO output.. | GPIO mode | GPIO Pull-up/Pull.. | Maximum out.. | Fast Mode | User Label |
|---|---|---|---|---|---|---|---|---|
| PA1 | ETH_REF_CLK | n/a | n/a | Alternate Function Push Pull | No pull-up and no.. | High | n/a | . |
| PA2 | ETH_MDIO | n/a | n/a | Alternate Function Push Pull | No pull-up and no.. | High | n/a | . |
| PA7 | ETH_CRS_DV | n/a | n/a | Alternate Function Push Pull | No pull-up and no.. | High | n/a | . |
| PB15 | ETH TXD1 | n/a | n/a | Alternate Function Push Pull | No pull-up and no.. | High | n/a | . |
| PC1 | ETH_MDC | n/a | n/a | Alternate Function Push Pull | No pull-up and no.. | High | n/a | . |
| PC4 | ETH RXD0 | n/a | n/a | Alternate Function Push Pull | No pull-up and no.. | High | n/a | . |
| PC5 | ETH RXD1 | n/a | n/a | Alternate Function Push Pull | No pull-up and no.. | High | n/a | . |
| PG11 | ETH TX_EN | n/a | n/a | Alternate Function Push Pull | No pull-up and no.. | High | n/a | . |
| PG13 | ETH TXD0 | n/a | n/a | Alternate Function Push Pull | No pull-up and no.. | High | n/a | . |
Under Categories: System Core select NVIC:
Configuration:
| NVIC Interrupt Table | Enabled | Preemption Priority | Sub Priority |
|---|---|---|---|
| Ethernet global interrupt | checked | 0 | 0 |
| Ethernet Wakeup global interrupt | checked | 0 | 0 |
| Enabled interrupt table | Select for.. | Generate Enable in.. | Generate IRQ h.. | Call HAL handler |
|---|---|---|---|---|
| Ethernet global interrupt | unchecked | checked | checked | checked |
| Ethernet Wakeup global interrupt | unchecked | checked | checked | checked |
Under Advanced Settings:
Generated Function Calls:
| Generate Code | Function Name | Peripheral Inst.. | Do not generate .. | Visibility (Static) |
|---|---|---|---|---|
| checked | MX_ETH_Init | ETH | checked | checked |
Generate source code by clicking on the GENERATE CODE button on the toolbar.
Results of the CMSIS-Driver Validation for this driver can be found in the EMAC_TestReport.txt file.