Trying to get a DHCP to work in anSTM32CubeIDE project – strange error
Hi,
Backgorund: I am struggling with getting DHCP to work through a W5500 ethernet controller, and have been searching for working examples with limited luck. The SPI connection works fine, and my router can (usually) see the W5500, including the MAC address. DHCP works, at least partially, because my device gets an IP address from the router. However, I cannot connect to the controller from a piece of software. (I get network error 10060)
So – I have been spending some days trying to find a working DHCP example, so I might be able to figure out what I am doing wrong. And I just thought that I found one. A complete CubeIDE project for an STM32F103 by @SGatt.1, designed for a W5500. Thanks.
However, when I try to build it, I get weird errors from the... linker?
e:\program files\stm32cubeide_1.12.1\stm32cubeide\plugins\com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.10.3-2021.10.win32_1.0.200.202301161003\tools\arm-none-eabi\bin\ld.exe: e:/program files/stm32cubeide_1.12.1/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.10.3-2021.10.win32_1.0.200.202301161003/tools/bin/../lib/gcc/arm-none-eabi/10.3.1/../../../../arm-none-eabi/lib/thumb/v7-m/nofp\libc_nano.a(lib_a-abort.o): in function `abort':
abort.c:(.text.abort+0xa): undefined reference to `_exit'
This goes on with nine more similar "complaints" about missing stuff.
When doing a search, I find no 'abort.c' file, no 'abort' function and no reference to '_exit' in the project. Can someone see what is going on here?
And – if anyone has a working W5500 project for STM32CubeIDE, I would be thrilled.
