STM32 H7 SERIES SUPPORT STM32ETHERNET AND LWIP.H LIB IN ARDUINO CORE #2682
Replies: 1 comment
-
Hi @mucahitboyraz34 |
Beta Was this translation helpful? Give feedback.
0 replies
# for free
to join this conversation on GitHub.
Already have an account?
# to comment
-
I am developing Ethernet code with Arduino for the Nucleo-H743ZI, using the STM32Ethernet and lwip.h libraries. I implemented this on the F407 and F7 series without any issues. However, for the H7 series, I encounter errors during compilation in the ethernetif.cpp file, indicating that certain definitions are missing or not declared in this section, even though all the definitions are present. Does anyone have experience with this issue? I have tried different core versions and libraries, but the problem persists.
output :
c:\Users\mücahit\Documents\Arduino\libraries\STM32duino_STM32Ethernet\src\utility\ethernetif.cpp:83:15: error: 'ETH_DMADescTypeDef' does not name a type; did you mean 'RTC_DateTypeDef'?
83 | __ALIGN_BEGIN ETH_DMADescTypeDef DMARxDscrTab[ETH_RXBUFNB] __ALIGN_END;/* Ethernet Rx MA Descriptor /
| ^~~~~~~~~~~~~~~~~~
| RTC_DateTypeDef
c:\Users\mücahit\Documents\Arduino\libraries\STM32duino_STM32Ethernet\src\utility\ethernetif.cpp:88:15: error: 'ETH_DMADescTypeDef' does not name a type; did you mean 'RTC_DateTypeDef'?
88 | __ALIGN_BEGIN ETH_DMADescTypeDef DMATxDscrTab[ETH_TXBUFNB] __ALIGN_END;/ Ethernet Tx DMA Descriptor /
| ^~~~~~~~~~~~~~~~~~
| RTC_DateTypeDef
c:\Users\mücahit\Documents\Arduino\libraries\STM32duino_STM32Ethernet\src\utility\ethernetif.cpp:93:31: error: 'ETH_RXBUFNB' was not declared in this scope
93 | __ALIGN_BEGIN uint8_t Rx_Buff[ETH_RXBUFNB][ETH_RX_BUF_SIZE] __ALIGN_END; / Ethernet Receive Buffer /
| ^~~~~~~~~~~
c:\Users\mücahit\Documents\Arduino\libraries\STM32duino_STM32Ethernet\src\utility\ethernetif.cpp:93:44: error: 'ETH_RX_BUF_SIZE' was not declared in this scope
93 | __ALIGN_BEGIN uint8_t Rx_Buff[ETH_RXBUFNB][ETH_RX_BUF_SIZE] __ALIGN_END; / Ethernet Receive Buffer /
| ^~~~~~~~~~~~~~~
c:\Users\mücahit\Documents\Arduino\libraries\STM32duino_STM32Ethernet\src\utility\ethernetif.cpp:98:31: error: 'ETH_TXBUFNB' was not declared in this scope
98 | __ALIGN_BEGIN uint8_t Tx_Buff[ETH_TXBUFNB][ETH_TX_BUF_SIZE] __ALIGN_END; / Ethernet Transmit Buffer /
| ^~~~~~~~~~~
c:\Users\mücahit\Documents\Arduino\libraries\STM32duino_STM32Ethernet\src\utility\ethernetif.cpp:98:44: error: 'ETH_TX_BUF_SIZE' was not declared in this scope
98 | __ALIGN_BEGIN uint8_t Tx_Buff[ETH_TXBUFNB][ETH_TX_BUF_SIZE] __ALIGN_END; / Ethernet Transmit Buffer */
| ^~~~~~~~~~~~~~~
c:\Users\mücahit\Documents\Arduino\libraries\STM32duino_STM32Ethernet\src\utility\ethernetif.cpp:100:8: error: 'ETH_HandleTypeDef' does not name a type; did you mean 'RTC_HandleTypeDef'?
100 | static ETH_HandleTypeDef EthHandle;
| ^~~~~~~~~~~~~~~~~
| RTC_HandleTypeDef
c:\Users\mücahit\Documents\Arduino\libraries\STM32duino_STM32Ethernet\src\utility\ethernetif.cpp:102:34: error: 'MAC_ADDR0' was not declared in this scope; did you mean 'GW_ADDR0'?
102 | static uint8_t macaddress[6] = { MAC_ADDR0, MAC_ADDR1, MAC_ADDR2, MAC_ADDR3, MAC_ADDR4, MAC_ADDR5 };
| ^~~~~~~~~
| GW_ADDR0
c:\Users\mücahit\Documents\Arduino\libraries\STM32duino_STM32Ethernet\src\utility\ethernetif.cpp:102:45: error: 'MAC_ADDR1' was not declared in this scope; did you mean 'GW_ADDR1'?
102 | static uint8_t macaddress[6] = { MAC_ADDR0, MAC_ADDR1, MAC_ADDR2, MAC_ADDR3, MAC_ADDR4, MAC_ADDR5 };
| ^~~~~~~~~
| GW_ADDR1
c:\Users\mücahit\Documents\Arduino\libraries\STM32duino_STM32Ethernet\src\utility\ethernetif.cpp:102:56: error: 'MAC_ADDR2' was not declared in this scope; did you mean 'IP_ADDR2'?
102 | static uint8_t macaddress[6] = { MAC_ADDR0, MAC_ADDR1, MAC_ADDR2, MAC_ADDR3, MAC_ADDR4, MAC_ADDR5 };
| ^~~~~~~~~
| IP_ADDR2
c:\Users\mücahit\Documents\Arduino\libraries\STM32duino_STM32Ethernet\src\utility\ethernetif.cpp:102:67: error: 'MAC_ADDR3' was not declared in this scope; did you mean 'GW_ADDR3'?
102 | static uint8_t macaddress[6] = { MAC_ADDR0, MAC_ADDR1, MAC_ADDR2, MAC_ADDR3, MAC_ADDR4, MAC_ADDR5 };
| ^~~~~~~~~
| GW_ADDR3
c:\Users\mücahit\Documents\Arduino\libraries\STM32duino_STM32Ethernet\src\utility\ethernetif.cpp:102:78: error: 'MAC_ADDR4' was not declared in this scope; did you mean 'IP_ADDR4'?
102 | static uint8_t macaddress[6] = { MAC_ADDR0, MAC_ADDR1, MAC_ADDR2, MAC_ADDR3, MAC_ADDR4, MAC_ADDR5 };
| ^~~~~~~~~
| IP_ADDR4
c:\Users\mücahit\Documents\Arduino\libraries\STM32duino_STM32Ethernet\src\utility\ethernetif.cpp:102:89: error: 'MAC_ADDR5' was not declared in this scope
102 | static uint8_t macaddress[6] = { MAC_ADDR0, MAC_ADDR1, MAC_ADDR2, MAC_ADDR3, MAC_ADDR4, MAC_ADDR5 };
| ^~~~~~~~~
c:\Users\mücahit\Documents\Arduino\libraries\STM32duino_STM32Ethernet\src\utility\ethernetif.cpp:119:6: error: variable or field 'HAL_ETH_MspInit' declared void
119 | void HAL_ETH_MspInit(ETH_HandleTypeDef heth)
| ^~~~~~~~~~~~~~~
c:\Users\mücahit\Documents\Arduino\libraries\STM32duino_STM32Ethernet\src\utility\ethernetif.cpp:119:22: error: 'ETH_HandleTypeDef' was not declared in this scope; did you mean 'RTC_HandleTypeDef'?
119 | void HAL_ETH_MspInit(ETH_HandleTypeDef heth)
| ^~~~~~~~~~~~~~~~~
| RTC_HandleTypeDef
c:\Users\mücahit\Documents\Arduino\libraries\STM32duino_STM32Ethernet\src\utility\ethernetif.cpp:119:41: error: 'heth' was not declared in this scope
119 | void HAL_ETH_MspInit(ETH_HandleTypeDef heth)
| ^~~~
c:\Users\mücahit\Documents\Arduino\libraries\STM32duino_STM32Ethernet\src\utility\ethernetif.cpp: In function 'void low_level_init(netif)':
c:\Users\mücahit\Documents\Arduino\libraries\STM32duino_STM32Ethernet\src\utility\ethernetif.cpp:171:3: error: 'EthHandle' was not declared in this scope
171 | EthHandle.Instance = ETH;
| ^~~~~~~~~
c:\Users\mücahit\Documents\Arduino\libraries\STM32duino_STM32Ethernet\src\utility\ethernetif.cpp:173:36: error: 'ETH_AUTONEGOTIATION_ENABLE' was not declared in this scope
173 | EthHandle.Init.AutoNegotiation = ETH_AUTONEGOTIATION_ENABLE;
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
c:\Users\mücahit\Documents\Arduino\libraries\STM32duino_STM32Ethernet\src\utility\ethernetif.cpp:174:26: error: 'ETH_SPEED_100M' was not declared in this scope
174 | EthHandle.Init.Speed = ETH_SPEED_100M;
| ^~~~~~~~~~~~~~
c:\Users\mücahit\Documents\Arduino\libraries\STM32duino_STM32Ethernet\src\utility\ethernetif.cpp:175:31: error: 'ETH_MODE_FULLDUPLEX' was not declared in this scope; did you mean 'IS_I2S_FULLDUPLEX'?
175 | EthHandle.Init.DuplexMode = ETH_MODE_FULLDUPLEX;
| ^~~~~~~~~~~~~~~~~~~
| IS_I2S_FULLDUPLEX
c:\Users\mücahit\Documents\Arduino\libraries\STM32duino_STM32Ethernet\src\utility\ethernetif.cpp:177:35: error: 'ETH_MEDIA_INTERFACE_RMII' was not declared in this scope
177 | EthHandle.Init.MediaInterface = ETH_MEDIA_INTERFACE_RMII;
| ^~~~~~~~~~~~~~~~~~~~~~~~
c:\Users\mücahit\Documents\Arduino\libraries\STM32duino_STM32Ethernet\src\utility\ethernetif.cpp:184:27: error: 'ETH_RXPOLLING_MODE' was not declared in this scope
184 | EthHandle.Init.RxMode = ETH_RXPOLLING_MODE;
| ^~~~~~~~~~~~~~~~~~
c:\Users\mücahit\Documents\Arduino\libraries\STM32duino_STM32Ethernet\src\utility\ethernetif.cpp:186:33: error: 'ETH_CHECKSUM_BY_HARDWARE' was not declared in this scope; did you mean 'CHECKSUM_BY_HARDWARE'?
186 | EthHandle.Init.ChecksumMode = ETH_CHECKSUM_BY_HARDWARE;
| ^~~~~~~~~~~~~~~~~~~~~~~~
| CHECKSUM_BY_HARDWARE
c:\Users\mücahit\Documents\Arduino\libraries\STM32duino_STM32Ethernet\src\utility\ethernetif.cpp:187:31: error: 'LAN8742A_PHY_ADDRESS' was not declared in this scope
187 | EthHandle.Init.PhyAddress = LAN8742A_PHY_ADDRESS;
| ^~~~~~~~~~~~~~~~~~~~
c:\Users\mücahit\Documents\Arduino\libraries\STM32duino_STM32Ethernet\src\utility\ethernetif.cpp:190:7: error: 'HAL_ETH_Init' was not declared in this scope; did you mean 'HAL_RTC_Init'?
190 | if (HAL_ETH_Init(&EthHandle) == HAL_OK) {
| ^~~~~~~~~~~~
| HAL_RTC_Init
c:\Users\mücahit\Documents\Arduino\libraries\STM32duino_STM32Ethernet\src\utility\ethernetif.cpp:196:41: error: 'DMATxDscrTab' was not declared in this scope
196 | HAL_ETH_DMATxDescListInit(&EthHandle, DMATxDscrTab, &Tx_Buff[0][0], ETH_TXBUFNB);
| ^~~~~~~~~~~~
c:\Users\mücahit\Documents\Arduino\libraries\STM32duino_STM32Ethernet\src\utility\ethernetif.cpp:196:56: error: 'Tx_Buff' was not declared in this scope
196 | HAL_ETH_DMATxDescListInit(&EthHandle, DMATxDscrTab, &Tx_Buff[0][0], ETH_TXBUFNB);
| ^~~~~~~
c:\Users\mücahit\Documents\Arduino\libraries\STM32duino_STM32Ethernet\src\utility\ethernetif.cpp:196:71: error: 'ETH_TXBUFNB' was not declared in this scope
196 | HAL_ETH_DMATxDescListInit(&EthHandle, DMATxDscrTab, &Tx_Buff[0][0], ETH_TXBUFNB);
| ^~~~~~~~~~~
c:\Users\mücahit\Documents\Arduino\libraries\STM32duino_STM32Ethernet\src\utility\ethernetif.cpp:196:3: error: 'HAL_ETH_DMATxDescListInit' was not declared in this scope
196 | HAL_ETH_DMATxDescListInit(&EthHandle, DMATxDscrTab, &Tx_Buff[0][0], ETH_TXBUFNB);
| ^~~~~~~~~~~~~~~~~~~~~~~~~
c:\Users\mücahit\Documents\Arduino\libraries\STM32duino_STM32Ethernet\src\utility\ethernetif.cpp:199:41: error: 'DMARxDscrTab' was not declared in this scope
199 | HAL_ETH_DMARxDescListInit(&EthHandle, DMARxDscrTab, &Rx_Buff[0][0], ETH_RXBUFNB);
| ^~~~~~~~~~~~
c:\Users\mücahit\Documents\Arduino\libraries\STM32duino_STM32Ethernet\src\utility\ethernetif.cpp:199:56: error: 'Rx_Buff' was not declared in this scope
199 | HAL_ETH_DMARxDescListInit(&EthHandle, DMARxDscrTab, &Rx_Buff[0][0], ETH_RXBUFNB);
| ^~~~~~~
c:\Users\mücahit\Documents\Arduino\libraries\STM32duino_STM32Ethernet\src\utility\ethernetif.cpp:199:71: error: 'ETH_RXBUFNB' was not declared in this scope
199 | HAL_ETH_DMARxDescListInit(&EthHandle, DMARxDscrTab, &Rx_Buff[0][0], ETH_RXBUFNB);
| ^~~~~~~~~~~
c:\Users\mücahit\Documents\Arduino\libraries\STM32duino_STM32Ethernet\src\utility\ethernetif.cpp:199:3: error: 'HAL_ETH_DMARxDescListInit' was not declared in this scope
199 | HAL_ETH_DMARxDescListInit(&EthHandle, DMARxDscrTab, &Rx_Buff[0][0], ETH_RXBUFNB);
| ^~~~~~~~~~~~~~~~~~~~~~~~~
c:\Users\mücahit\Documents\Arduino\libraries\STM32duino_STM32Ethernet\src\utility\ethernetif.cpp:220:3: error: 'HAL_ETH_Start' was not declared in this scope; did you mean 'HAL_DMA_Start'?
220 | HAL_ETH_Start(&EthHandle);
| ^~~~~~~~~~~~~
| HAL_DMA_Start
c:\Users\mücahit\Documents\Arduino\libraries\STM32duino_STM32Ethernet\src\utility\ethernetif.cpp:226:39: error: 'PHY_IMR' was not declared in this scope
226 | HAL_ETH_ReadPHYRegister(&EthHandle, PHY_IMR, ®value);
| ^~~~~~~
c:\Users\mücahit\Documents\Arduino\libraries\STM32duino_STM32Ethernet\src\utility\ethernetif.cpp:226:3: error: 'HAL_ETH_ReadPHYRegister' was not declared in this scope
226 | HAL_ETH_ReadPHYRegister(&EthHandle, PHY_IMR, ®value);
| ^~~~~~~~~~~~~~~~~~~~~~~
c:\Users\mücahit\Documents\Arduino\libraries\STM32duino_STM32Ethernet\src\utility\ethernetif.cpp:228:15: error: 'PHY_ISFR_INT4' was not declared in this scope
228 | regvalue |= PHY_ISFR_INT4;
| ^~~~~~~~~~~~~
c:\Users\mücahit\Documents\Arduino\libraries\STM32duino_STM32Ethernet\src\utility\ethernetif.cpp:231:3: error: 'HAL_ETH_WritePHYRegister' was not declared in this scope
231 | HAL_ETH_WritePHYRegister(&EthHandle, PHY_IMR, regvalue);
| ^~~~~~~~~~~~~~~~~~~~~~~~
c:\Users\mücahit\Documents\Arduino\libraries\STM32duino_STM32Ethernet\src\utility\ethernetif.cpp: In function 'err_t low_level_output(netif, pbuf)':
c:\Users\mücahit\Documents\Arduino\libraries\STM32duino_STM32Ethernet\src\utility\ethernetif.cpp:257:33: error: 'EthHandle' was not declared in this scope
257 | uint8_t *buffer = (uint8_t *)(EthHandle.TxDesc->Buffer1Addr);
| ^~~~~~~~~
c:\Users\mücahit\Documents\Arduino\libraries\STM32duino_STM32Ethernet\src\utility\ethernetif.cpp:258:8: error: 'ETH_DMADescTypeDef' does not name a type; did you mean 'RTC_DateTypeDef'?
258 | __IO ETH_DMADescTypeDef *DmaTxDesc;
| ^~~~~~~~~~~~~~~~~~
| RTC_DateTypeDef
c:\Users\mücahit\Documents\Arduino\libraries\STM32duino_STM32Ethernet\src\utility\ethernetif.cpp:266:3: error: 'DmaTxDesc' was not declared in this scope
266 | DmaTxDesc = EthHandle.TxDesc;
| ^~~~~~~~~
c:\Users\mücahit\Documents\Arduino\libraries\STM32duino_STM32Ethernet\src\utility\ethernetif.cpp:272:30: error: 'ETH_DMATXDESC_OWN' was not declared in this scope
272 | if ((DmaTxDesc->Status & ETH_DMATXDESC_OWN) != (uint32_t)RESET) {
| ^~~~~~~~~~~~~~~~~
c:\Users\mücahit\Documents\Arduino\libraries\STM32duino_STM32Ethernet\src\utility\ethernetif.cpp:282:47: error: 'ETH_TX_BUF_SIZE' was not declared in this scope
282 | while ((byteslefttocopy + bufferoffset) > ETH_TX_BUF_SIZE) {
| ^~~~~~~~~~~~~~~
c:\Users\mücahit\Documents\Arduino\libraries\STM32duino_STM32Ethernet\src\utility\ethernetif.cpp:287:20: error: 'ETH_DMADescTypeDef' was not declared in this scope; did you mean 'RTC_DateTypeDef'?
287 | DmaTxDesc = (ETH_DMADescTypeDef )(DmaTxDesc->Buffer2NextDescAddr);
| ^~~~~~~~~~~~~~~~~~
| RTC_DateTypeDef
c:\Users\mücahit\Documents\Arduino\libraries\STM32duino_STM32Ethernet\src\utility\ethernetif.cpp:287:40: error: expected primary-expression before ')' token
287 | DmaTxDesc = (ETH_DMADescTypeDef )(DmaTxDesc->Buffer2NextDescAddr);
| ^
c:\Users\mücahit\Documents\Arduino\libraries\STM32duino_STM32Ethernet\src\utility\ethernetif.cpp:290:32: error: 'ETH_DMATXDESC_OWN' was not declared in this scope
290 | if ((DmaTxDesc->Status & ETH_DMATXDESC_OWN) != (uint32_t)RESET) {
| ^~~~~~~~~~~~~~~~~
c:\Users\mücahit\Documents\Arduino\libraries\STM32duino_STM32Ethernet\src\utility\ethernetif.cpp:310:3: error: 'HAL_ETH_TransmitFrame' was not declared in this scope
310 | HAL_ETH_TransmitFrame(&EthHandle, framelength);
| ^~~~~~~~~~~~~~~~~~~~~
c:\Users\mücahit\Documents\Arduino\libraries\STM32duino_STM32Ethernet\src\utility\ethernetif.cpp:317:36: error: 'ETH_DMASR_TUS' was not declared in this scope; did you mean 'ETH_DMACSR_TPS'?
317 | if ((EthHandle.Instance->DMASR & ETH_DMASR_TUS) != (uint32_t)RESET) {
| ^~~~~~~~~~~~~
| ETH_DMACSR_TPS
c:\Users\mücahit\Documents\Arduino\libraries\STM32duino_STM32Ethernet\src\utility\ethernetif.cpp: In function 'pbuf low_level_input(netif)':
c:\Users\mücahit\Documents\Arduino\libraries\STM32duino_STM32Ethernet\src\utility\ethernetif.cpp:341:8: error: 'ETH_DMADescTypeDef' does not name a type; did you mean 'RTC_DateTypeDef'?
341 | __IO ETH_DMADescTypeDef *dmarxdesc;
| ^~~~~~~~~~~~~~~~~~
| RTC_DateTypeDef
c:\Users\mücahit\Documents\Arduino\libraries\STM32duino_STM32Ethernet\src\utility\ethernetif.cpp:349:36: error: 'EthHandle' was not declared in this scope
349 | if (HAL_ETH_GetReceivedFrame_IT(&EthHandle) != HAL_OK) {
| ^~~~~~~~~
c:\Users\mücahit\Documents\Arduino\libraries\STM32duino_STM32Ethernet\src\utility\ethernetif.cpp:349:7: error: 'HAL_ETH_GetReceivedFrame_IT' was not declared in this scope
349 | if (HAL_ETH_GetReceivedFrame_IT(&EthHandle) != HAL_OK) {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
c:\Users\mücahit\Documents\Arduino\libraries\STM32duino_STM32Ethernet\src\utility\ethernetif.cpp:354:9: error: 'EthHandle' was not declared in this scope
354 | len = EthHandle.RxFrameInfos.length;
| ^~~~~~~~~
c:\Users\mücahit\Documents\Arduino\libraries\STM32duino_STM32Ethernet\src\utility\ethernetif.cpp:363:5: error: 'dmarxdesc' was not declared in this scope
363 | dmarxdesc = EthHandle.RxFrameInfos.FSRxDesc;
| ^~~~~~~~~
c:\Users\mücahit\Documents\Arduino\libraries\STM32duino_STM32Ethernet\src\utility\ethernetif.cpp:371:49: error: 'ETH_RX_BUF_SIZE' was not declared in this scope
371 | while ((byteslefttocopy + bufferoffset) > ETH_RX_BUF_SIZE) {
| ^~~~~~~~~~~~~~~
c:\Users\mücahit\Documents\Arduino\libraries\STM32duino_STM32Ethernet\src\utility\ethernetif.cpp:376:22: error: 'ETH_DMADescTypeDef' was not declared in this scope; did you mean 'RTC_DateTypeDef'?
376 | dmarxdesc = (ETH_DMADescTypeDef *)(dmarxdesc->Buffer2NextDescAddr);
| ^~~~~~~~~~~~~~~~~~
| RTC_DateTypeDef
c:\Users\mücahit\Documents\Arduino\libraries\STM32duino_STM32Ethernet\src\utility\ethernetif.cpp:376:42: error: expected primary-expression before ')' token
376 | dmarxdesc = (ETH_DMADescTypeDef *)(dmarxdesc->Buffer2NextDescAddr);
| ^
c:\Users\mücahit\Documents\Arduino\libraries\STM32duino_STM32Ethernet\src\utility\ethernetif.cpp:392:3: error: 'dmarxdesc' was not declared in this scope
392 | dmarxdesc = EthHandle.RxFrameInfos.FSRxDesc;
| ^~~~~~~~~
c:\Users\mücahit\Documents\Arduino\libraries\STM32duino_STM32Ethernet\src\utility\ethernetif.cpp:395:26: error: 'ETH_DMARXDESC_OWN' was not declared in this scope
395 | dmarxdesc->Status |= ETH_DMARXDESC_OWN;
| ^~~~~~~~~~~~~~~~~
c:\Users\mücahit\Documents\Arduino\libraries\STM32duino_STM32Ethernet\src\utility\ethernetif.cpp:396:18: error: 'ETH_DMADescTypeDef' was not declared in this scope; did you mean 'RTC_DateTypeDef'?
396 | dmarxdesc = (ETH_DMADescTypeDef )(dmarxdesc->Buffer2NextDescAddr);
| ^~~~~~~~~~~~~~~~~~
| RTC_DateTypeDef
c:\Users\mücahit\Documents\Arduino\libraries\STM32duino_STM32Ethernet\src\utility\ethernetif.cpp:396:38: error: expected primary-expression before ')' token
396 | dmarxdesc = (ETH_DMADescTypeDef )(dmarxdesc->Buffer2NextDescAddr);
| ^
c:\Users\mücahit\Documents\Arduino\libraries\STM32duino_STM32Ethernet\src\utility\ethernetif.cpp:403:36: error: 'ETH_DMASR_RBUS' was not declared in this scope; did you mean 'ETH_DMACSR_RBU'?
403 | if ((EthHandle.Instance->DMASR & ETH_DMASR_RBUS) != (uint32_t)RESET) {
| ^~~~~~~~~~~~~~
| ETH_DMACSR_RBU
c:\Users\mücahit\Documents\Arduino\libraries\STM32duino_STM32Ethernet\src\utility\ethernetif.cpp: In function 'uint8_t ethernetif_is_init()':
c:\Users\mücahit\Documents\Arduino\libraries\STM32duino_STM32Ethernet\src\utility\ethernetif.cpp:452:11: error: 'EthHandle' was not declared in this scope
452 | return (EthHandle.State != HAL_ETH_STATE_RESET);
| ^~~~~~~~~
c:\Users\mücahit\Documents\Arduino\libraries\STM32duino_STM32Ethernet\src\utility\ethernetif.cpp:452:30: error: 'HAL_ETH_STATE_RESET' was not declared in this scope; did you mean 'HAL_RTC_STATE_RESET'?
452 | return (EthHandle.State != HAL_ETH_STATE_RESET);
| ^~~~~~~~~~~~~~~~~~~
| HAL_RTC_STATE_RESET
c:\Users\mücahit\Documents\Arduino\libraries\STM32duino_STM32Ethernet\src\utility\ethernetif.cpp: In function 'void ethernetif_set_link(netif)':
c:\Users\mücahit\Documents\Arduino\libraries\STM32duino_STM32Ethernet\src\utility\ethernetif.cpp:512:28: error: 'EthHandle' was not declared in this scope
512 | HAL_ETH_ReadPHYRegister(&EthHandle, PHY_ISFR, ®value);
| ^~~~~~~~~
c:\Users\mücahit\Documents\Arduino\libraries\STM32duino_STM32Ethernet\src\utility\ethernetif.cpp:512:39: error: 'PHY_ISFR' was not declared in this scope
512 | HAL_ETH_ReadPHYRegister(&EthHandle, PHY_ISFR, ®value);
| ^~~~~~~~
c:\Users\mücahit\Documents\Arduino\libraries\STM32duino_STM32Ethernet\src\utility\ethernetif.cpp:512:3: error: 'HAL_ETH_ReadPHYRegister' was not declared in this scope
512 | HAL_ETH_ReadPHYRegister(&EthHandle, PHY_ISFR, ®value);
| ^~~~~~~~~~~~~~~~~~~~~~~
c:\Users\mücahit\Documents\Arduino\libraries\STM32duino_STM32Ethernet\src\utility\ethernetif.cpp:515:19: error: 'PHY_ISFR_INT4' was not declared in this scope
515 | if ((regvalue & PHY_ISFR_INT4) != (uint16_t)RESET) {
| ^~~~~~~~~~~~~
c:\Users\mücahit\Documents\Arduino\libraries\STM32duino_STM32Ethernet\src\utility\ethernetif.cpp:519:39: error: 'PHY_BSR' was not declared in this scope
519 | HAL_ETH_ReadPHYRegister(&EthHandle, PHY_BSR, ®value);
| ^~~~~~~
c:\Users\mücahit\Documents\Arduino\libraries\STM32duino_STM32Ethernet\src\utility\ethernetif.cpp:521:19: error: 'PHY_LINKED_STATUS' was not declared in this scope
521 | if ((regvalue & PHY_LINKED_STATUS) != (uint16_t)RESET) {
| ^~~~~~~~~~~~~~~~~
c:\Users\mücahit\Documents\Arduino\libraries\STM32duino_STM32Ethernet\src\utility\ethernetif.cpp: In function 'void ethernetif_update_config(netif)':
c:\Users\mücahit\Documents\Arduino\libraries\STM32duino_STM32Ethernet\src\utility\ethernetif.cpp:545:9: error: 'EthHandle' was not declared in this scope
545 | if (EthHandle.Init.AutoNegotiation != ETH_AUTONEGOTIATION_DISABLE) {
| ^~~~~~~~~
c:\Users\mücahit\Documents\Arduino\libraries\STM32duino_STM32Ethernet\src\utility\ethernetif.cpp:545:43: error: 'ETH_AUTONEGOTIATION_DISABLE' was not declared in this scope
545 | if (EthHandle.Init.AutoNegotiation != ETH_AUTONEGOTIATION_DISABLE) {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
c:\Users\mücahit\Documents\Arduino\libraries\STM32duino_STM32Ethernet\src\utility\ethernetif.cpp:548:43: error: 'PHY_SR' was not declared in this scope
548 | HAL_ETH_ReadPHYRegister(&EthHandle, PHY_SR, ®value);
| ^~~~~~
c:\Users\mücahit\Documents\Arduino\libraries\STM32duino_STM32Ethernet\src\utility\ethernetif.cpp:548:7: error: 'HAL_ETH_ReadPHYRegister' was not declared in this scope
548 | HAL_ETH_ReadPHYRegister(&EthHandle, PHY_SR, ®value);
| ^~~~~~~~~~~~~~~~~~~~~~~
c:\Users\mücahit\Documents\Arduino\libraries\STM32duino_STM32Ethernet\src\utility\ethernetif.cpp:549:23: error: 'PHY_SR_AUTODONE' was not declared in this scope
549 | if ((regvalue & PHY_SR_AUTODONE) != PHY_SR_AUTODONE) {
| ^~~~~~~~~~~~~~~
c:\Users\mücahit\Documents\Arduino\libraries\STM32duino_STM32Ethernet\src\utility\ethernetif.cpp:554:23: error: 'PHY_DUPLEX_STATUS' was not declared in this scope
554 | if ((regvalue & PHY_DUPLEX_STATUS) != (uint32_t)RESET) {
| ^~~~~~~~~~~~~~~~~
c:\Users\mücahit\Documents\Arduino\libraries\STM32duino_STM32Ethernet\src\utility\ethernetif.cpp:556:37: error: 'ETH_MODE_FULLDUPLEX' was not declared in this scope; did you mean 'IS_I2S_FULLDUPLEX'?
556 | EthHandle.Init.DuplexMode = ETH_MODE_FULLDUPLEX;
| ^~~~~~~~~~~~~~~~~~~
| IS_I2S_FULLDUPLEX
c:\Users\mücahit\Documents\Arduino\libraries\STM32duino_STM32Ethernet\src\utility\ethernetif.cpp:559:37: error: 'ETH_MODE_HALFDUPLEX' was not declared in this scope
559 | EthHandle.Init.DuplexMode = ETH_MODE_HALFDUPLEX;
| ^~~~~~~~~~~~~~~~~~~
c:\Users\mücahit\Documents\Arduino\libraries\STM32duino_STM32Ethernet\src\utility\ethernetif.cpp:562:22: error: 'PHY_SPEED_STATUS' was not declared in this scope
562 | if (regvalue & PHY_SPEED_STATUS) {
| ^~~~~~~~~~~~~~~~
c:\Users\mücahit\Documents\Arduino\libraries\STM32duino_STM32Ethernet\src\utility\ethernetif.cpp:564:32: error: 'ETH_SPEED_10M' was not declared in this scope
564 | EthHandle.Init.Speed = ETH_SPEED_10M;
| ^~~~~~~~~~~~~
c:\Users\mücahit\Documents\Arduino\libraries\STM32duino_STM32Ethernet\src\utility\ethernetif.cpp:567:32: error: 'ETH_SPEED_100M' was not declared in this scope
567 | EthHandle.Init.Speed = ETH_SPEED_100M;
| ^~~~~~~~~~~~~~
c:\Users\mücahit\Documents\Arduino\libraries\STM32duino_STM32Ethernet\src\utility\ethernetif.cpp:576:44: error: 'PHY_BCR' was not declared in this scope
576 | HAL_ETH_WritePHYRegister(&EthHandle, PHY_BCR, ((uint16_t)(EthHandle.Init.DuplexMode >> 3) |
| ^~~~~~~
c:\Users\mücahit\Documents\Arduino\libraries\STM32duino_STM32Ethernet\src\utility\ethernetif.cpp:576:7: error: 'HAL_ETH_WritePHYRegister' was not declared in this scope
576 | HAL_ETH_WritePHYRegister(&EthHandle, PHY_BCR, ((uint16_t)(EthHandle.Init.DuplexMode >> 3) |
| ^~~~~~~~~~~~~~~~~~~~~~~~
c:\Users\mücahit\Documents\Arduino\libraries\STM32duino_STM32Ethernet\src\utility\ethernetif.cpp:581:24: error: 'EthHandle' was not declared in this scope
581 | HAL_ETH_ConfigMAC(&EthHandle, (ETH_MACInitTypeDef *) NULL);
| ^~~~~~~~~
c:\Users\mücahit\Documents\Arduino\libraries\STM32duino_STM32Ethernet\src\utility\ethernetif.cpp:581:36: error: 'ETH_MACInitTypeDef' was not declared in this scope; did you mean 'TIM_OC_InitTypeDef'?
581 | HAL_ETH_ConfigMAC(&EthHandle, (ETH_MACInitTypeDef *) NULL);
| ^~~~~~~~~~~~~~~~~~
| TIM_OC_InitTypeDef
c:\Users\mücahit\Documents\Arduino\libraries\STM32duino_STM32Ethernet\src\utility\ethernetif.cpp:581:56: error: expected primary-expression before ')' token
581 | HAL_ETH_ConfigMAC(&EthHandle, (ETH_MACInitTypeDef *) NULL);
| ^
c:\Users\mücahit\Documents\Arduino\libraries\STM32duino_STM32Ethernet\src\utility\ethernetif.cpp:581:5: error: 'HAL_ETH_ConfigMAC' was not declared in this scope
581 | HAL_ETH_ConfigMAC(&EthHandle, (ETH_MACInitTypeDef *) NULL);
| ^~~~~~~~~~~~~~~~~
c:\Users\mücahit\Documents\Arduino\libraries\STM32duino_STM32Ethernet\src\utility\ethernetif.cpp:584:5: error: 'HAL_ETH_Start' was not declared in this scope; did you mean 'HAL_DMA_Start'?
584 | HAL_ETH_Start(&EthHandle);
| ^~~~~~~~~~~~~
| HAL_DMA_Start
c:\Users\mücahit\Documents\Arduino\libraries\STM32duino_STM32Ethernet\src\utility\ethernetif.cpp:587:19: error: 'EthHandle' was not declared in this scope
587 | HAL_ETH_Stop(&EthHandle);
| ^~~~~~~~~
c:\Users\mücahit\Documents\Arduino\libraries\STM32duino_STM32Ethernet\src\utility\ethernetif.cpp:587:5: error: 'HAL_ETH_Stop' was not declared in this scope; did you mean 'HAL_DAC_Stop'?
587 | HAL_ETH_Stop(&EthHandle);
| ^~~~~~~~~~~~
| HAL_DAC_Stop
exit status 1
Compilation error: exit status 1
Beta Was this translation helpful? Give feedback.
All reactions