6 years, 5 months ago.

Ethernet support for ARM_CM3DS_MPS2?

I'm trying to build a simple example with Ethernet support on the MPS2+ board, using both the online compiler and MBed CLI.

In both cases, I get the following error:

Link: arm-none-eabi-gcc @./BUILD/ARM_CM3DS_MPS2/GCC_ARM/.link_files.txt
[DEBUG] Return: 1
[DEBUG] Errors: b"BUILD/ARM_CM3DS_MPS2/GCC_ARM/main.o: In function `__static_initialization_and_destruction_0':"
[DEBUG] Errors: b"./main.cpp:5: undefined reference to `EMAC::get_default_instance()'"
[DEBUG] Errors: b"./main.cpp:5: undefined reference to `OnboardNetworkStack::get_default_instance()'"
[DEBUG] Errors: b'collect2: error: ld returned 1 exit status'

main.cpp is below:

#include "mbed.h"
#include "TCPSocket.h"
#include "EthernetInterface.h"

EthernetInterface eth;
TCPSocket socket;

int main()
{
}

Do I need to include additional libraries, or am I responsible for adding code to the EMAC and OnboardNetworkStack classes to make Ethernet work on this board?

1 Answer

6 years, 5 months ago.

Hello Marc,

I don't believe that particular board has any ethernet drivers (ctrl F "ARM_CM3DS_MPS2"):

https://github.com/ARMmbed/mbed-os/releases/tag/mbed-os-5.9.0

That code you've written should compile fine on ethernet supported boards. If you have any more questions, let us know!

-Karen, team Mbed

If this solved your question, please make sure to click the "Thanks" link below!