stm32duino / STM32Ethernet

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

stm32_eth.c unknown type name 'stimer_t' #6

Closed gurulator closed 6 years ago

gurulator commented 6 years ago

I am trying to compile ethernet examples for F746-discovery, but there is always the same error shown the picture (Documents\Arduino\libraries\STM32Ethernet-master\src\utility\stm32_eth.c:100:8: error: unknown type name 'stimer_t'). I already installed LwIP-master. I have no idea what's wrong. ethernet_error

fpistm commented 6 years ago

Hi @gurulator , Which core you used?

gurulator commented 6 years ago

ARM® Cortex®-M7 core-based STM32F746NGH6 microcontroller, and the STM32GENERIC implementation. https://github.com/ChrisMicro/STM32GENERIC All the example codes are working well incuded in STM32GENERIC except the ethernet examples. I am able to use the I/O pins and the TFT capacitive screen, but when I include the , the comiler displays the error report shown above. http://www.st.com/content/st_com/en/products/evaluation-tools/product-evaluation-tools/mcu-eval-tools/stm32-mcu-eval-tools/stm32-mcu-discovery-kits/32f746gdiscovery.html

fpistm commented 6 years ago

Ok that's why I thought. The latest version of this library is not compatible with STM32generic core. This library is mainly for the https://github.com/stm32duino/Arduino_Core_STM32 Library now use a timer to call periodically the lwip scheduler for better stability. Ask to @danieleff or @ChrisMicro if they want add wrapper to timer use in this core, here: https://github.com/danieleff/STM32GENERIC/tree/master/STM32/libraries/OfficialCompatibility

gurulator commented 6 years ago

Ok, thanks for help.

gurulator commented 6 years ago

Now i tried it with the First release and it works fine, that was the problem. https://github.com/stm32duino/STM32Ethernet/releases/tag/1.0.0 Thanks one more time!

fpistm commented 6 years ago

No worries ;) It should be fine to unified API. It's planned to extend timer API for https://github.com/stm32duino/Arduino_Core_STM32 We will try to do it as generic as possible.