stm32duino / STM32Ethernet

Arduino library to support Ethernet for STM32 based board
156 stars 43 forks source link

Compile Error with STM32F407VET #32

Closed andy-hopkins closed 4 years ago

andy-hopkins commented 4 years ago

Hi all,

I've just downloaded and installed into my Arduino 1.8.9 IDE, the Arduino_Core_STM32 per the "Getting Started Instructions", and the STM32Ethernet library.

I'm using an STM32F407VET6 Black, so I've selected the "Generic STM32F4 Series" board and the "Black 407VE" sub-option (also tried the FK407M1 SMT32F407VET and DIYMORE SMT32F407VGT with the same results)

Next, I've opened the ChatServer example program. When I click verify and it gets as far as "Compiling library "STM32duino_STM32Ethernet"", the errors the attached "Errors.txt" come up

I've also implemented the solution here ... https://github.com/stm32duino/STM32Ethernet/issues/23#issuecomment-514665499 ... to overcome a bunch of other errors.

I'm still pretty green with C/C++ so I'm a bit reluctant to dive in and start changing things like stimer_t to timer_t, I have no idea of the implications.

Can anyone throw any light on my issue.

Errors.txt

fpistm commented 4 years ago

Hi @andy-hopkins Right, this is normal. In fact I do not release yet the updated version of the lib for the new HardwareTimer implementation. To fix that, download the repo as a zip and install it with Arduino IDE. This will fix your issue.

oguzhandalgic commented 4 years ago

Hi @fpistm I was facing the same issue with @andy-hopkins and tried the method you have recommended yet now there is another error,

/Documents/Arduino/libraries/STM32Ethernet-master/src/utility/stm32_eth.h:47:10: fatal error: lwip/ip_addr.h: No such file or directory

include "lwip/ip_addr.h"

      ^~~~~~~~~~~~~~~~

compilation terminated.

fpistm commented 4 years ago

You need to install LwIP library... as described here: https://github.com/stm32duino/STM32Ethernet#dependency

oguzhandalgic commented 4 years ago

It is already installed, I installed it using the library manager of Arduino IDE

EDIT

Ok, my bad. I reinstalled the library and it is compiled without any errors. Thanks!

andy-hopkins commented 4 years ago

Hi andy-hopkins Right, this is normal. In fact I do not release yet the updated version of the lib for the new HardwareTimer implementation. To fix that, download the repo as a zip and install it with Arduino IDE. This will fix your issue.

@fpistm Many thanks - all fixed!!

fpistm commented 4 years ago

Welcome. My fault