I recently purchased my first arduino (Arduino Leonardo Eth) and have made great progress on my project for ultrasonically reading the level of the water in my rain water collection pit. I succeeded in reading the distance and displaying it on the tft screen I purchased.
The goal of the project is to be able to read the water level through the ethernet port.
I'm having trouble running the sample programs (eg. DhcpAddressPrinter). It fails on the command Ethernet.begin(mac).
The code runs up to the command Ethernet.begin, and then freezes the arduino.
I have tried quite a few things, but have come to the point where I don't know where to look further.
I have found the sources of the ethernet library and would like to start debugging to find at which point it freezes
Is there a way debug the Ethernet library source code? (such as Serial.println)
Many thanks in advance for your time!