WIZnet-MbedEthernet/WIZnetInterface

Mbed 5.15.4 build problem

Opened this issue · 0 comments

PLATFORM: ST STM32 (8.1.0) > STM32F103C8 (20k RAM. 64k Flash)
HARDWARE: STM32F103C8T6 72MHz, 20KB RAM, 64KB Flash
DEBUG: Current (stlink) External (blackmagic, jlink, stlink)
PACKAGES:

  • framework-mbed 6.51504.200716 (5.15.4)
  • toolchain-gccarmnoneeabi 1.90201.191206 (9.2.1)

we use WIZnetInterface github last version on main.c

`#include "mbed.h"
//#include "MQTTClient.h"
#include "WIZnetInterface.h"

//NetworkInterface *net;

int main()
{

while (true)
{

}

}`

we got some error from WIZnetInterface . it seem TCPSocket api version change. how can we fix it?

debug output
.pio\libdeps\genericSTM32F103C8\WIZnetInterface\TESTS\net\tcp_echo\main.cpp:60:24: warning: 'TCPSocket::TCPSocket(S*) [with S = WIZnetInterface]' is deprecated: The TCPSocket(S *stack) constructor is deprecated.It discards the open() call return value.Use another constructor and call open() explicitly, instead. [since mbed-os-5.11] [-Wdeprecated-declarations]
60 | TCPSocket sock(&net);
| ^
In file included from D:/PROJECT/PlatformIO/PlatformIO_Home/packages/framework-mbed/features/netsocket/nsapi.h:41,
from D:/PROJECT/PlatformIO/platformio_home/packages/framework-mbed/mbed.h:26,
from .pio\libdeps\genericSTM32F103C8\WIZnetInterface\TESTS\net\tcp_echo\main.cpp:1:
D:/PROJECT/PlatformIO/PlatformIO_Home/packages/framework-mbed/features/netsocket/TCPSocket.h:54:5: note: declared here
54 | TCPSocket(S *stack)
| ^~~~~~~~~
In file included from .pio/libdeps/genericSTM32F103C8/WIZnetInterface/WIZnet/wiznet.h:15,
from .pio\libdeps\genericSTM32F103C8\WIZnetInterface\TESTS\net\connectivity../../../WIZnetInterface.h:24,
from .pio\libdeps\genericSTM32F103C8\WIZnetInterface\TESTS\net\connectivity\main.cpp:6:
.pio/libdeps/genericSTM32F103C8/WIZnetInterface/WIZnet/W5500.h:12: warning: "TEST_ASSERT" redefined
12 | #define TEST_ASSERT(A) while(!(A)){debug("\n\n%s@%d %s ASSERT!\n\n",PRETTY_FUNCTION,LINE,#A);exit(1);};
|
In file included from .pio\libdeps\genericSTM32F103C8\WIZnetInterface\TESTS\net\connectivity\main.cpp:3:
D:/PROJECT/PlatformIO/PlatformIO_Home/packages/framework-mbed/features/frameworks/unity/unity/unity.h:92: note: this is the location of the previous definition
92 | #define TEST_ASSERT(condition) UNITY_TEST_ASSERT( (condition), LINE, " Expression Evaluated To FALSE")
|
*** [.pio\build\genericSTM32F103C8\lib2ea\WIZnetInterface\TESTS\net\tcp_echo\main.o] Error 1