stm32duino / STM32Ethernet

Arduino library to support Ethernet for STM32 based board
151 stars 42 forks source link

STM32H743ZI2 Ethernet not working. #68

Closed VASAPOL closed 1 year ago

VASAPOL commented 1 year ago

Error is .pio/libdeps/nucleo_h743zi/STM32Ethernet/src/utility/ethernetif.cpp:80:48: error: 'ETH_RXBUFNB' was not declared in this scope 80 | ALIGN_BEGIN ETH_DMADescTypeDef DMARxDscrTab[ETH_RXBUFNB] __ALIGN_END;/ Ethernet Rx MA Descriptor / | ^~~ .pio/libdeps/nucleo_h743zi/STM32Ethernet/src/utility/ethernetif.cpp:85:48: error: 'ETH_TXBUFNB' was not declared in this scope 85 | ALIGN_BEGIN ETH_DMADescTypeDef DMATxDscrTab[ETH_TXBUFNB] ALIGN_END;/ Ethernet Tx DMA Descriptor / | ^~~ .pio/libdeps/nucleo_h743zi/STM32Ethernet/src/utility/ethernetif.cpp:90:31: error: 'ETH_RXBUFNB' was not declared in this scope 90 | __ALIGN_BEGIN uint8_t Rx_Buff[ETH_RXBUFNB][ETH_RX_BUF_SIZE] ALIGN_END; / Ethernet Receive Buffer / | ^~~ .pio/libdeps/nucleo_h743zi/STM32Ethernet/src/utility/ethernetif.cpp:90:44: error: 'ETH_RX_BUF_SIZE' was not declared in this scope 90 | ALIGN_BEGIN uint8_t Rx_Buff[ETH_RXBUFNB][ETH_RX_BUF_SIZE] __ALIGN_END; / Ethernet Receive Buffer / | ^~~~~~~ .pio/libdeps/nucleo_h743zi/STM32Ethernet/src/utility/ethernetif.cpp:95:31: error: 'ETH_TXBUFNB' was not declared in this scope 95 | ALIGN_BEGIN uint8_t Tx_Buff[ETH_TXBUFNB][ETH_TX_BUF_SIZE] ALIGN_END; / Ethernet Transmit Buffer / | ^~~ .pio/libdeps/nucleo_h743zi/STM32Ethernet/src/utility/ethernetif.cpp:95:44: error: 'ETH_TX_BUF_SIZE' was not declared in this scope 95 | __ALIGN_BEGIN uint8_t Tx_Buff[ETH_TXBUFNB][ETH_TX_BUF_SIZE] ALIGN_END; / Ethernet Transmit Buffer / | ^~~~~~~ .pio/libdeps/nucleo_h743zi/STM32Ethernet/src/utility/ethernetif.cpp:99:34: error: 'MAC_ADDR0' was not declared in this scope; did you mean 'GW_ADDR0'? 99 | static uint8_t macaddress[6] = { MAC_ADDR0, MAC_ADDR1, MAC_ADDR2, MAC_ADDR3, MAC_ADDR4, MAC_ADDR5 }; | ^~~~~ | GW_ADDR0 .pio/libdeps/nucleo_h743zi/STM32Ethernet/src/utility/ethernetif.cpp:99:45: error: 'MAC_ADDR1' was not declared in this scope; did you mean 'GW_ADDR1'? 99 | static uint8_t macaddress[6] = { MAC_ADDR0, MAC_ADDR1, MAC_ADDR2, MAC_ADDR3, MAC_ADDR4, MAC_ADDR5 }; | ^~~~~ | GW_ADDR1 .pio/libdeps/nucleo_h743zi/STM32Ethernet/src/utility/ethernetif.cpp:99:56: error: 'MAC_ADDR2' was not declared in this scope; did you mean 'IP_ADDR2'? 99 | static uint8_t macaddress[6] = { MAC_ADDR0, MAC_ADDR1, MAC_ADDR2, MAC_ADDR3, MAC_ADDR4, MAC_ADDR5 }; | ^~~~~ | IP_ADDR2 .pio/libdeps/nucleo_h743zi/STM32Ethernet/src/utility/ethernetif.cpp:99:67: error: 'MAC_ADDR3' was not declared in this scope; did you mean 'GW_ADDR3'? 99 | static uint8_t macaddress[6] = { MAC_ADDR0, MAC_ADDR1, MAC_ADDR2, MAC_ADDR3, MAC_ADDR4, MAC_ADDR5 }; | ^~~~~ | GW_ADDR3 .pio/libdeps/nucleo_h743zi/STM32Ethernet/src/utility/ethernetif.cpp:99:78: error: 'MAC_ADDR4' was not declared in this scope; did you mean 'IP_ADDR4'? 99 | static uint8_t macaddress[6] = { MAC_ADDR0, MAC_ADDR1, MAC_ADDR2, MAC_ADDR3, MAC_ADDR4, MAC_ADDR5 }; | ^~~~~ | IP_ADDR4 .pio/libdeps/nucleo_h743zi/STM32Ethernet/src/utility/ethernetif.cpp:99:89: error: 'MAC_ADDR5' was not declared in this scope 99 | static uint8_t macaddress[6] = { MAC_ADDR0, MAC_ADDR1, MAC_ADDR2, MAC_ADDR3, MAC_ADDR4, MAC_ADDR5 }; | ^~~~~ Archiving .pio/build/nucleo_h743zi/lib051/libSTM32duino LwIP.a .pio/libdeps/nucleo_h743zi/STM32Ethernet/src/utility/ethernetif.cpp: In function 'void HAL_ETH_MspInit(ETH_HandleTypeDef)': .pio/libdeps/nucleo_h743zi/STM32Ethernet/src/utility/ethernetif.cpp:151:3: error: 'HAL_RCC_ETH_CLK_ENABLE' was not declared in this scope 151 | HAL_RCC_ETH_CLK_ENABLE(); | ^~~~~~~~ .pio/libdeps/nucleo_h743zi/STM32Ethernet/src/utility/ethernetif.cpp: In function 'void low_level_init(netif)': .pio/libdeps/nucleo_h743zi/STM32Ethernet/src/utility/ethernetif.cpp:170:18: error: 'struct ETH_InitTypeDef' has no member named 'AutoNegotiation' 170 | EthHandle.Init.AutoNegotiation = ETH_AUTONEGOTIATION_ENABLE; | ^~~~~~~ Compiling .pio/build/nucleo_h743zi/FrameworkArduino/USBSerial.cpp.o .pio/libdeps/nucleo_h743zi/STM32Ethernet/src/utility/ethernetif.cpp:170:36: error: 'ETH_AUTONEGOTIATION_ENABLE' was not declared in this scope 170 | EthHandle.Init.AutoNegotiation = ETH_AUTONEGOTIATION_ENABLE; | ^~~~~~ .pio/libdeps/nucleo_h743zi/STM32Ethernet/src/utility/ethernetif.cpp:171:18: error: 'struct ETH_InitTypeDef' has no member named 'Speed' 171 | EthHandle.Init.Speed = ETH_SPEED_100M; | ^~~~~ .pio/libdeps/nucleo_h743zi/STM32Ethernet/src/utility/ethernetif.cpp:172:18: error: 'struct ETH_InitTypeDef' has no member named 'DuplexMode' 172 | EthHandle.Init.DuplexMode = ETH_MODE_FULLDUPLEX; | ^~~~~~ Indexing .pio/build/nucleo_h743zi/lib051/libSTM32duino LwIP.a .pio/libdeps/nucleo_h743zi/STM32Ethernet/src/utility/ethernetif.cpp:172:31: error: 'ETH_MODE_FULLDUPLEX' was not declared in this scope; did you mean 'IS_I2S_FULLDUPLEX'? 172 | EthHandle.Init.DuplexMode = ETH_MODE_FULLDUPLEX; | ^~~~~~~ | IS_I2S_FULLDUPLEX Compiling .pio/build/nucleo_h743zi/FrameworkArduino/VirtIOSerial.cpp.o Compiling .pio/build/nucleo_h743zi/FrameworkArduino/WInterrupts.cpp.o Compiling .pio/build/nucleo_h743zi/FrameworkArduino/WMath.cpp.o .pio/libdeps/nucleo_h743zi/STM32Ethernet/src/utility/ethernetif.cpp:174:35: error: 'ETH_MEDIA_INTERFACE_RMII' was not declared in this scope 174 | EthHandle.Init.MediaInterface = ETH_MEDIA_INTERFACE_RMII; | ^~~~~~~~ .pio/libdeps/nucleo_h743zi/STM32Ethernet/src/utility/ethernetif.cpp:181:18: error: 'struct ETH_InitTypeDef' has no member named 'RxMode' 181 | EthHandle.Init.RxMode = ETH_RXPOLLING_MODE; | ^~ .pio/libdeps/nucleo_h743zi/STM32Ethernet/src/utility/ethernetif.cpp:181:27: error: 'ETH_RXPOLLING_MODE' was not declared in this scope 181 | EthHandle.Init.RxMode = ETH_RXPOLLING_MODE; | ^~~~~~ .pio/libdeps/nucleo_h743zi/STM32Ethernet/src/utility/ethernetif.cpp:183:18: error: 'struct ETH_InitTypeDef' has no member named 'ChecksumMode' 183 | EthHandle.Init.ChecksumMode = ETH_CHECKSUM_BY_HARDWARE; | ^~~~ Compiling .pio/build/nucleo_h743zi/FrameworkArduino/WSerial.cpp.o Compiling .pio/build/nucleo_h743zi/FrameworkArduino/WString.cpp.o .pio/libdeps/nucleo_h743zi/STM32Ethernet/src/utility/ethernetif.cpp:183:33: error: 'ETH_CHECKSUM_BY_HARDWARE' was not declared in this scope; did you mean 'CHECKSUM_BY_HARDWARE'? 183 | EthHandle.Init.ChecksumMode = ETH_CHECKSUM_BY_HARDWARE; | ^~~~~~~~ | CHECKSUM_BY_HARDWARE .pio/libdeps/nucleo_h743zi/STM32Ethernet/src/utility/ethernetif.cpp:184:18: error: 'struct ETH_InitTypeDef' has no member named 'PhyAddress' 184 | EthHandle.Init.PhyAddress = LAN8742A_PHY_ADDRESS; | ^~~~~~ .pio/libdeps/nucleo_h743zi/STM32Ethernet/src/utility/ethernetif.cpp:184:31: error: 'LAN8742A_PHY_ADDRESS' was not declared in this scope 184 | EthHandle.Init.PhyAddress = LAN8742A_PHY_ADDRESS; | ^~~~~~~~ .pio/libdeps/nucleo_h743zi/STM32Ethernet/src/utility/ethernetif.cpp:193:41: error: 'DMATxDscrTab' was not declared in this scope 193 | HAL_ETH_DMATxDescListInit(&EthHandle, DMATxDscrTab, &Tx_Buff[0][0], ETH_TXBUFNB); | ^~~~ .pio/libdeps/nucleo_h743zi/STM32Ethernet/src/utility/ethernetif.cpp:193:56: error: 'Tx_Buff' was not declared in this scope 193 | HAL_ETH_DMATxDescListInit(&EthHandle, DMATxDscrTab, &Tx_Buff[0][0], ETH_TXBUFNB); | ^~~ Compiling .pio/build/nucleo_h743zi/FrameworkArduino/abi.cpp.o .pio/libdeps/nucleo_h743zi/STM32Ethernet/src/utility/ethernetif.cpp:193:71: error: 'ETH_TXBUFNB' was not declared in this scope 193 | HAL_ETH_DMATxDescListInit(&EthHandle, DMATxDscrTab, &Tx_Buff[0][0], ETH_TXBUFNB); | ^~~ Compiling .pio/build/nucleo_h743zi/FrameworkArduino/avr/dtostrf.c.o Compiling .pio/build/nucleo_h743zi/FrameworkArduino/board.c.o .pio/libdeps/nucleo_h743zi/STM32Ethernet/src/utility/ethernetif.cpp:193:3: error: 'HAL_ETH_DMATxDescListInit' was not declared in this scope 193 | HAL_ETH_DMATxDescListInit(&EthHandle, DMATxDscrTab, &Tx_Buff[0][0], ETH_TXBUFNB); | ^~~~~~~~~ .pio/libdeps/nucleo_h743zi/STM32Ethernet/src/utility/ethernetif.cpp:196:41: error: 'DMARxDscrTab' was not declared in this scope 196 | HAL_ETH_DMARxDescListInit(&EthHandle, DMARxDscrTab, &Rx_Buff[0][0], ETH_RXBUFNB); | ^~~~ Compiling .pio/build/nucleo_h743zi/FrameworkArduino/hooks.c.o .pio/libdeps/nucleo_h743zi/STM32Ethernet/src/utility/ethernetif.cpp:196:56: error: 'Rx_Buff' was not declared in this scope 196 | HAL_ETH_DMARxDescListInit(&EthHandle, DMARxDscrTab, &Rx_Buff[0][0], ETH_RXBUFNB); | ^~~ .pio/libdeps/nucleo_h743zi/STM32Ethernet/src/utility/ethernetif.cpp:196:71: error: 'ETH_RXBUFNB' was not declared in this scope 196 | HAL_ETH_DMARxDescListInit(&EthHandle, DMARxDscrTab, &Rx_Buff[0][0], ETH_RXBUFNB); | ^~~ Compiling .pio/build/nucleo_h743zi/FrameworkArduino/itoa.c.o Compiling .pio/build/nucleo_h743zi/FrameworkArduino/main.cpp.o Compiling .pio/build/nucleo_h743zi/FrameworkArduino/new.cpp.o Compiling .pio/build/nucleo_h743zi/FrameworkArduino/pins_arduino.c.o .pio/libdeps/nucleo_h743zi/STM32Ethernet/src/utility/ethernetif.cpp:196:3: error: 'HAL_ETH_DMARxDescListInit' was not declared in this scope 196 | HAL_ETH_DMARxDescListInit(&EthHandle, DMARxDscrTab, &Rx_Buff[0][0], ETH_RXBUFNB); | ^~~~~~~~~ .pio/libdeps/nucleo_h743zi/STM32Ethernet/src/utility/ethernetif.cpp:223:39: error: 'PHY_IMR' was not declared in this scope 223 | HAL_ETH_ReadPHYRegister(&EthHandle, PHY_IMR, &regvalue); | ^~~ Compiling .pio/build/nucleo_h743zi/FrameworkArduino/stm32/OpenAMP/libmetal/device.c.o .pio/libdeps/nucleo_h743zi/STM32Ethernet/src/utility/ethernetif.cpp:225:15: error: 'PHY_ISFR_INT4' was not declared in this scope 225 | regvalue |= PHY_ISFR_INT4; | ^~~~~ .pio/libdeps/nucleo_h743zi/STM32Ethernet/src/utility/ethernetif.cpp: In function 'err_t low_level_output(netif, pbuf)': .pio/libdeps/nucleo_h743zi/STM32Ethernet/src/utility/ethernetif.cpp:254:43: error: 'struct ETH_HandleTypeDef' has no member named 'TxDesc'; did you mean 'TxDescList'? 254 | uint8_t buffer = (uint8_t )(EthHandle.TxDesc->Buffer1Addr); | ^~ | TxDescList .pio/libdeps/nucleo_h743zi/STM32Ethernet/src/utility/ethernetif.cpp:263:25: error: 'struct ETH_HandleTypeDef' has no member named 'TxDesc'; did you mean 'TxDescList'? 263 | DmaTxDesc = EthHandle.TxDesc; | ^~ | TxDescList .pio/libdeps/nucleo_h743zi/STM32Ethernet/src/utility/ethernetif.cpp:269:21: error: 'volatile struct ETH_DMADescTypeDef' has no member named 'Status' 269 | if ((DmaTxDesc->Status & ETH_DMATXDESC_OWN) != (uint32_t)RESET) { | ^~ Compiling .pio/build/nucleo_h743zi/FrameworkArduino/stm32/OpenAMP/libmetal/generic/condition.c.o Compiling .pio/build/nucleo_h743zi/FrameworkArduino/stm32/OpenAMP/libmetal/generic/cortexm/sys.c.o .pio/libdeps/nucleo_h743zi/STM32Ethernet/src/utility/ethernetif.cpp:269:30: error: 'ETH_DMATXDESC_OWN' was not declared in this scope; did you mean 'ETH_DMATXCDESC_OWN'? 269 | if ((DmaTxDesc->Status & ETH_DMATXDESC_OWN) != (uint32_t)RESET) { | ^~~~~ | ETH_DMATXCDESC_OWN .pio/libdeps/nucleo_h743zi/STM32Ethernet/src/utility/ethernetif.cpp:279:47: error: 'ETH_TX_BUF_SIZE' was not declared in this scope 279 | while ((byteslefttocopy + bufferoffset) > ETH_TX_BUF_SIZE) { | ^~~~~~~ .pio/libdeps/nucleo_h743zi/STM32Ethernet/src/utility/ethernetif.cpp:284:53: error: 'volatile struct ETH_DMADescTypeDef' has no member named 'Buffer2NextDescAddr' 284 | DmaTxDesc = (ETH_DMADescTypeDef )(DmaTxDesc->Buffer2NextDescAddr); | ^~~~~~~ .pio/libdeps/nucleo_h743zi/STM32Ethernet/src/utility/ethernetif.cpp:287:23: error: 'volatile struct ETH_DMADescTypeDef' has no member named 'Status' 287 | if ((DmaTxDesc->Status & ETH_DMATXDESC_OWN) != (uint32_t)RESET) { | ^~ .pio/libdeps/nucleo_h743zi/STM32Ethernet/src/utility/ethernetif.cpp:287:32: error: 'ETH_DMATXDESC_OWN' was not declared in this scope; did you mean 'ETH_DMATXCDESC_OWN'? 287 | if ((DmaTxDesc->Status & ETH_DMATXDESC_OWN) != (uint32_t)RESET) { | ^~~~~ | ETH_DMATXCDESC_OWN .pio/libdeps/nucleo_h743zi/STM32Ethernet/src/utility/ethernetif.cpp:292:39: error: 'volatile struct ETH_DMADescTypeDef' has no member named 'Buffer1Addr' 292 | buffer = (uint8_t )(DmaTxDesc->Buffer1Addr); | ^~~ Compiling .pio/build/nucleo_h743zi/FrameworkArduino/stm32/OpenAMP/libmetal/generic/generic_device.c.o Compiling .pio/build/nucleo_h743zi/FrameworkArduino/stm32/OpenAMP/libmetal/generic/generic_init.c.o Compiling .pio/build/nucleo_h743zi/FrameworkArduino/stm32/OpenAMP/libmetal/generic/generic_io.c.o .pio/libdeps/nucleo_h743zi/STM32Ethernet/src/utility/ethernetif.cpp:307:3: error: 'HAL_ETH_TransmitFrame' was not declared in this scope; did you mean 'HAL_ETH_Transmit_IT'? 307 | HAL_ETH_TransmitFrame(&EthHandle, framelength); | ^~~~~ | HAL_ETH_Transmit_IT .pio/libdeps/nucleo_h743zi/STM32Ethernet/src/utility/ethernetif.cpp:314:28: error: 'struct ETH_TypeDef' has no member named 'DMASR'; did you mean 'DMAMR'? 314 | if ((EthHandle.Instance->DMASR & ETH_DMASR_TUS) != (uint32_t)RESET) { | ^~~~~ | DMAMR Compiling .pio/build/nucleo_h743zi/FrameworkArduino/stm32/OpenAMP/libmetal/generic/generic_shmem.c.o .pio/libdeps/nucleo_h743zi/STM32Ethernet/src/utility/ethernetif.cpp:314:36: error: 'ETH_DMASR_TUS' was not declared in this scope; did you mean 'ETH_DMADSR_TPS'? 314 | if ((EthHandle.Instance->DMASR & ETH_DMASR_TUS) != (uint32_t)RESET) { | ^~~~~ | ETH_DMADSR_TPS .pio/libdeps/nucleo_h743zi/STM32Ethernet/src/utility/ethernetif.cpp:316:25: error: 'struct ETH_TypeDef' has no member named 'DMASR'; did you mean 'DMAMR'? 316 | EthHandle.Instance->DMASR = ETH_DMASR_TUS; | ^~~~~ | DMAMR .pio/libdeps/nucleo_h743zi/STM32Ethernet/src/utility/ethernetif.cpp:319:25: error: 'struct ETH_TypeDef' has no member named 'DMATPDR' 319 | EthHandle.Instance->DMATPDR = 0; | ^~~ Compiling .pio/build/nucleo_h743zi/FrameworkArduino/stm32/OpenAMP/libmetal/generic/time.c.o Compiling .pio/build/nucleo_h743zi/FrameworkArduino/stm32/OpenAMP/libmetal/init.c.o Compiling .pio/build/nucleo_h743zi/FrameworkArduino/stm32/OpenAMP/libmetal/io.c.o Compiling .pio/build/nucleo_h743zi/FrameworkArduino/stm32/OpenAMP/libmetal/log.c.o Compiling .pio/build/nucleo_h743zi/FrameworkArduino/stm32/OpenAMP/libmetal/shmem.c.o .pio/libdeps/nucleo_h743zi/STM32Ethernet/src/utility/ethernetif.cpp: In function 'pbuf low_level_input(netif)': .pio/libdeps/nucleo_h743zi/STM32Ethernet/src/utility/ethernetif.cpp:346:7: error: 'HAL_ETH_GetReceivedFrame_IT' was not declared in this scope 346 | if (HAL_ETH_GetReceivedFrame_IT(&EthHandle) != HAL_OK) { | ^~~~~~~ .pio/libdeps/nucleo_h743zi/STM32Ethernet/src/utility/ethernetif.cpp:351:19: error: 'struct ETH_HandleTypeDef' has no member named 'RxFrameInfos' 351 | len = EthHandle.RxFrameInfos.length; | ^~~~ .pio/libdeps/nucleo_h743zi/STM32Ethernet/src/utility/ethernetif.cpp:352:33: error: 'struct ETH_HandleTypeDef' has no member named 'RxFrameInfos' 352 | buffer = (uint8_t )EthHandle.RxFrameInfos.buffer; | ^~~~ .pio/libdeps/nucleo_h743zi/STM32Ethernet/src/utility/ethernetif.cpp:360:27: error: 'struct ETH_HandleTypeDef' has no member named 'RxFrameInfos' 360 | dmarxdesc = EthHandle.RxFrameInfos.FSRxDesc; | ^~~~ Compiling .pio/build/nucleo_h743zi/FrameworkArduino/stm32/OpenAMP/mbox_ipcc.c.o Compiling .pio/build/nucleo_h743zi/FrameworkArduino/stm32/OpenAMP/open-amp/remoteproc/remoteproc_virtio.c.o .pio/libdeps/nucleo_h743zi/STM32Ethernet/src/utility/ethernetif.cpp:368:49: error: 'ETH_RX_BUF_SIZE' was not declared in this scope 368 | while ((byteslefttocopy + bufferoffset) > ETH_RX_BUF_SIZE) { | ^~~~~~~ .pio/libdeps/nucleo_h743zi/STM32Ethernet/src/utility/ethernetif.cpp:373:55: error: 'volatile struct ETH_DMADescTypeDef' has no member named 'Buffer2NextDescAddr' 373 | dmarxdesc = (ETH_DMADescTypeDef )(dmarxdesc->Buffer2NextDescAddr); | ^~~~~~~ .pio/libdeps/nucleo_h743zi/STM32Ethernet/src/utility/ethernetif.cpp:374:41: error: 'volatile struct ETH_DMADescTypeDef' has no member named 'Buffer1Addr' 374 | buffer = (uint8_t )(dmarxdesc->Buffer1Addr); | ^~~ .pio/libdeps/nucleo_h743zi/STM32Ethernet/src/utility/ethernetif.cpp:389:25: error: 'struct ETH_HandleTypeDef' has no member named 'RxFrameInfos' 389 | dmarxdesc = EthHandle.RxFrameInfos.FSRxDesc; | ^~~~ .pio/libdeps/nucleo_h743zi/STM32Ethernet/src/utility/ethernetif.cpp:391:29: error: 'struct ETH_HandleTypeDef' has no member named 'RxFrameInfos' 391 | for (i = 0; i < EthHandle.RxFrameInfos.SegCount; i++) { | ^~~~ .pio/libdeps/nucleo_h743zi/STM32Ethernet/src/utility/ethernetif.cpp:392:16: error: 'volatile struct ETH_DMADescTypeDef' has no member named 'Status' 392 | dmarxdesc->Status |= ETH_DMARXDESC_OWN; | ^~ Compiling .pio/build/nucleo_h743zi/FrameworkArduino/stm32/OpenAMP/open-amp/rpmsg/rpmsg.c.o Compiling .pio/build/nucleo_h743zi/FrameworkArduino/stm32/OpenAMP/open-amp/rpmsg/rpmsg_virtio.c.o .pio/libdeps/nucleo_h743zi/STM32Ethernet/src/utility/ethernetif.cpp:392:26: error: 'ETH_DMARXDESC_OWN' was not declared in this scope; did you mean 'ETH_DMARXCDESC_OWN'? 392 | dmarxdesc->Status |= ETH_DMARXDESC_OWN; | ^~~~~ | ETH_DMARXCDESC_OWN .pio/libdeps/nucleo_h743zi/STM32Ethernet/src/utility/ethernetif.cpp:393:51: error: 'volatile struct ETH_DMADescTypeDef' has no member named 'Buffer2NextDescAddr' 393 | dmarxdesc = (ETH_DMADescTypeDef )(dmarxdesc->Buffer2NextDescAddr); | ^~~~~~~ .pio/libdeps/nucleo_h743zi/STM32Ethernet/src/utility/ethernetif.cpp:397:13: error: 'struct ETH_HandleTypeDef' has no member named 'RxFrameInfos' 397 | EthHandle.RxFrameInfos.SegCount = 0; | ^~~~ .pio/libdeps/nucleo_h743zi/STM32Ethernet/src/utility/ethernetif.cpp:400:28: error: 'struct ETH_TypeDef' has no member named 'DMASR'; did you mean 'DMAMR'? 400 | if ((EthHandle.Instance->DMASR & ETH_DMASR_RBUS) != (uint32_t)RESET) { | ^~~~~ | DMAMR Compiling .pio/build/nucleo_h743zi/FrameworkArduino/stm32/OpenAMP/openamp.c.o .pio/libdeps/nucleo_h743zi/STM32Ethernet/src/utility/ethernetif.cpp:400:36: error: 'ETH_DMASR_RBUS' was not declared in this scope; did you mean 'ETH_DMACSR_RBU'? 400 | if ((EthHandle.Instance->DMASR & ETH_DMASR_RBUS) != (uint32_t)RESET) { | ^~~~~~ | ETH_DMACSR_RBU .pio/libdeps/nucleo_h743zi/STM32Ethernet/src/utility/ethernetif.cpp:402:25: error: 'struct ETH_TypeDef' has no member named 'DMASR'; did you mean 'DMAMR'? 402 | EthHandle.Instance->DMASR = ETH_DMASR_RBUS; | ^~~~~ | DMAMR .pio/libdeps/nucleo_h743zi/STM32Ethernet/src/utility/ethernetif.cpp:404:25: error: 'struct ETH_TypeDef' has no member named 'DMARPDR' 404 | EthHandle.Instance->DMARPDR = 0; | ^~~ .pio/libdeps/nucleo_h743zi/STM32Ethernet/src/utility/ethernetif.cpp: In function 'uint8_t ethernetif_is_init()': .pio/libdeps/nucleo_h743zi/STM32Ethernet/src/utility/ethernetif.cpp:449:21: error: 'struct ETH_HandleTypeDef' has no member named 'State'; did you mean 'gState'? 449 | return (EthHandle.State != HAL_ETH_STATE_RESET); | ^~~~~ | gState Compiling .pio/build/nucleo_h743zi/FrameworkArduino/stm32/OpenAMP/rsc_table.c.o .pio/libdeps/nucleo_h743zi/STM32Ethernet/src/utility/ethernetif.cpp: In function 'void ethernetif_set_link(netif)': .pio/libdeps/nucleo_h743zi/STM32Ethernet/src/utility/ethernetif.cpp:509:39: error: 'PHY_ISFR' was not declared in this scope 509 | HAL_ETH_ReadPHYRegister(&EthHandle, PHY_ISFR, &regvalue); | ^~~~ Compiling .pio/build/nucleo_h743zi/FrameworkArduino/stm32/OpenAMP/virt_uart.c.o Compiling .pio/build/nucleo_h743zi/FrameworkArduino/stm32/OpenAMP/virtio/virtio.c.o Compiling .pio/build/nucleo_h743zi/FrameworkArduino/stm32/OpenAMP/virtio/virtqueue.c.o .pio/libdeps/nucleo_h743zi/STM32Ethernet/src/utility/ethernetif.cpp:512:19: error: 'PHY_ISFR_INT4' was not declared in this scope 512 | if ((regvalue & PHY_ISFR_INT4) != (uint16_t)RESET) { | ^~~~~ .pio/libdeps/nucleo_h743zi/STM32Ethernet/src/utility/ethernetif.cpp:516:39: error: 'PHY_BSR' was not declared in this scope 516 | HAL_ETH_ReadPHYRegister(&EthHandle, PHY_BSR, &regvalue); | ^~~ Compiling .pio/build/nucleo_h743zi/FrameworkArduino/stm32/OpenAMP/virtio_buffer.c.o Compiling .pio/build/nucleo_h743zi/FrameworkArduino/stm32/OpenAMP/virtio_log.c.o Compiling .pio/build/nucleo_h743zi/FrameworkArduino/stm32/startup_stm32yyxx.S.o .pio/libdeps/nucleo_h743zi/STM32Ethernet/src/utility/ethernetif.cpp:518:19: error: 'PHY_LINKED_STATUS' was not declared in this scope 518 | if ((regvalue & PHY_LINKED_STATUS) != (uint16_t)RESET) { | ^~~~~ .pio/libdeps/nucleo_h743zi/STM32Ethernet/src/utility/ethernetif.cpp: In function 'void ethernetif_update_config(netif)': .pio/libdeps/nucleo_h743zi/STM32Ethernet/src/utility/ethernetif.cpp:542:24: error: 'struct ETH_InitTypeDef' has no member named 'AutoNegotiation' 542 | if (EthHandle.Init.AutoNegotiation != ETH_AUTONEGOTIATION_DISABLE) { | ^~~~~~~ Compiling .pio/build/nucleo_h743zi/FrameworkArduino/stm32/usb/cdc/cdc_queue.c.o Compiling .pio/build/nucleo_h743zi/FrameworkArduino/stm32/usb/cdc/usbd_cdc.c.o Compiling .pio/build/nucleo_h743zi/FrameworkArduino/stm32/usb/cdc/usbd_cdc_if.c.o Compiling .pio/build/nucleo_h743zi/FrameworkArduino/stm32/usb/hid/usbd_hid_composite.c.o .pio/libdeps/nucleo_h743zi/STM32Ethernet/src/utility/ethernetif.cpp:542:43: error: 'ETH_AUTONEGOTIATION_DISABLE' was not declared in this scope 542 | if (EthHandle.Init.AutoNegotiation != ETH_AUTONEGOTIATION_DISABLE) { | ^~~~~~~ Compiling .pio/build/nucleo_h743zi/FrameworkArduino/stm32/usb/hid/usbd_hid_composite_if.c.o .pio/libdeps/nucleo_h743zi/STM32Ethernet/src/utility/ethernetif.cpp:545:43: error: 'PHY_SR' was not declared in this scope 545 | HAL_ETH_ReadPHYRegister(&EthHandle, PHY_SR, &regvalue); | ^~ Compiling .pio/build/nucleo_h743zi/FrameworkArduino/stm32/usb/usb_device_core.c.o Compiling .pio/build/nucleo_h743zi/FrameworkArduino/stm32/usb/usb_device_ctlreq.c.o .pio/libdeps/nucleo_h743zi/STM32Ethernet/src/utility/ethernetif.cpp:551:23: error: 'PHY_DUPLEX_STATUS' was not declared in this scope 551 | if ((regvalue & PHY_DUPLEX_STATUS) != (uint32_t)RESET) { | ^~~~~ .pio/libdeps/nucleo_h743zi/STM32Ethernet/src/utility/ethernetif.cpp:553:24: error: 'struct ETH_InitTypeDef' has no member named 'DuplexMode' 553 | EthHandle.Init.DuplexMode = ETH_MODE_FULLDUPLEX; | ^~~~~~ Compiling .pio/build/nucleo_h743zi/FrameworkArduino/stm32/usb/usb_device_ioreq.c.o Compiling .pio/build/nucleo_h743zi/FrameworkArduino/stm32/usb/usbd_conf.c.o Compiling .pio/build/nucleo_h743zi/FrameworkArduino/stm32/usb/usbd_desc.c.o .pio/libdeps/nucleo_h743zi/STM32Ethernet/src/utility/ethernetif.cpp:553:37: error: 'ETH_MODE_FULLDUPLEX' was not declared in this scope; did you mean 'IS_I2S_FULLDUPLEX'? 553 | EthHandle.Init.DuplexMode = ETH_MODE_FULLDUPLEX; | ^~~~~~~ | IS_I2S_FULLDUPLEX .pio/libdeps/nucleo_h743zi/STM32Ethernet/src/utility/ethernetif.cpp:556:24: error: 'struct ETH_InitTypeDef' has no member named 'DuplexMode' 556 | EthHandle.Init.DuplexMode = ETH_MODE_HALFDUPLEX; | ^~~~~~ Compiling .pio/build/nucleo_h743zi/FrameworkArduino/stm32/usb/usbd_ep_conf.c.o Compiling .pio/build/nucleo_h743zi/FrameworkArduino/stm32/usb/usbd_if.c.o Compiling .pio/build/nucleo_h743zi/FrameworkArduino/wiring_analog.c.o Compiling .pio/build/nucleo_h743zi/FrameworkArduino/wiring_digital.c.o .pio/libdeps/nucleo_h743zi/STM32Ethernet/src/utility/ethernetif.cpp:556:37: error: 'ETH_MODE_HALFDUPLEX' was not declared in this scope 556 | EthHandle.Init.DuplexMode = ETH_MODE_HALFDUPLEX; | ^~~~~~~ Compiling .pio/build/nucleo_h743zi/FrameworkArduino/wiring_pulse.cpp.o Compiling .pio/build/nucleo_h743zi/FrameworkArduino/wiring_shift.c.o Compiling .pio/build/nucleo_h743zi/FrameworkArduino/wiring_time.c.o .pio/libdeps/nucleo_h743zi/STM32Ethernet/src/utility/ethernetif.cpp:559:22: error: 'PHY_SPEED_STATUS' was not declared in this scope 559 | if (regvalue & PHY_SPEED_STATUS) { | ^~~~ .pio/libdeps/nucleo_h743zi/STM32Ethernet/src/utility/ethernetif.cpp:561:24: error: 'struct ETH_InitTypeDef' has no member named 'Speed' 561 | EthHandle.Init.Speed = ETH_SPEED_10M; | ^~~~~ .pio/libdeps/nucleo_h743zi/STM32Ethernet/src/utility/ethernetif.cpp:564:24: error: 'struct ETH_InitTypeDef' has no member named 'Speed' 564 | EthHandle.Init.Speed = ETH_SPEED_100M; | ^~~~~ .pio/libdeps/nucleo_h743zi/STM32Ethernet/src/utility/ethernetif.cpp:573:44: error: 'PHY_BCR' was not declared in this scope 573 | HAL_ETH_WritePHYRegister(&EthHandle, PHY_BCR, ((uint16_t)(EthHandle.Init.DuplexMode >> 3) | | ^~~ .pio/libdeps/nucleo_h743zi/STM32Ethernet/src/utility/ethernetif.cpp:573:80: error: 'struct ETH_InitTypeDef' has no member named 'DuplexMode' 573 | HAL_ETH_WritePHYRegister(&EthHandle, PHY_BCR, ((uint16_t)(EthHandle.Init.DuplexMode >> 3) | | ^~~~~~ .pio/libdeps/nucleo_h743zi/STM32Ethernet/src/utility/ethernetif.cpp:574:80: error: 'struct ETH_InitTypeDef' has no member named 'Speed' 574 | (uint16_t)(EthHandle.Init.Speed >> 1))); | ^~~~~ .pio/libdeps/nucleo_h743zi/STM32Ethernet/src/utility/ethernetif.cpp:578:36: error: 'ETH_MACInitTypeDef' was not declared in this scope; did you mean 'ETH_InitTypeDef'? 578 | HAL_ETH_ConfigMAC(&EthHandle, (ETH_MACInitTypeDef ) NULL); | ^~~~~~ | ETH_InitTypeDef .pio/libdeps/nucleo_h743zi/STM32Ethernet/src/utility/ethernetif.cpp:578:56: error: expected primary-expression before ')' token 578 | HAL_ETH_ConfigMAC(&EthHandle, (ETH_MACInitTypeDef ) NULL); | ^ .pio/libdeps/nucleo_h743zi/STM32Ethernet/src/utility/ethernetif.cpp:578:5: error: 'HAL_ETH_ConfigMAC' was not declared in this scope 578 | HAL_ETH_ConfigMAC(&EthHandle, (ETH_MACInitTypeDef *) NULL); | ^~~~~ *** [.pio/build/nucleo_h743zi/libe48/STM32Ethernet/utility/ethernetif.cpp.o] Error 1

fpistm commented 1 year ago

See #21

H7 is not yet supported