Skip to content

Compile Error with STM32F407VET #32

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
andy-hopkins opened this issue Nov 7, 2019 · 6 comments
Closed

Compile Error with STM32F407VET #32

andy-hopkins opened this issue Nov 7, 2019 · 6 comments

Comments

@andy-hopkins
Copy link

andy-hopkins commented Nov 7, 2019

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 ... #23 (comment)
... 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
Copy link
Member

fpistm commented Nov 7, 2019

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
Copy link

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
Copy link
Member

fpistm commented Nov 7, 2019

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

@oguzhandalgic
Copy link

oguzhandalgic commented Nov 7, 2019

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
Copy link
Author

andy-hopkins commented Nov 8, 2019

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
Copy link
Member

fpistm commented Nov 8, 2019

Welcome. My fault

@fpistm fpistm closed this as completed Nov 8, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants