After further research, we concluded that this issue is not caused by the software within this project. The chip hangs when getting an IP address for the first time using DHCP. This is probably caused by either the DHCP driver within the utilized enc28j60 library, or within the specific hardware chip.
The error occurs when calling the _send function in ethernetUdp.cpp of the utilized EthernetENC libarary. The _send function is called but never finishes. When the DHCP request completes once it will stay working for a long time.
After further research, we concluded that this issue is not caused by the software within this project. The chip hangs when getting an IP address for the first time using DHCP. This is probably caused by either the DHCP driver within the utilized enc28j60 library, or within the specific hardware chip.
The error occurs when calling the _send function in ethernetUdp.cpp of the utilized EthernetENC libarary. The _send function is called but never finishes. When the DHCP request completes once it will stay working for a long time.